joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x402fc9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x402fd8
pop dword [ebp - 0x10]
mov eax, 0x49dfef8e
sub eax, 0x499fbfb6
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x8378d17a
add dword [ebp - 0x20], 0xcad973d1
mov dword [ebp - 0x1c], 0x2d734b2b
add dword [ebp - 0x1c], 0x4c0011a
mov dword [ebp - 0x18], 0xc7c6ee7a
sub dword [ebp - 0x18], 0x7b7aaa4c
mov dword [ebp - 0x14], 0x6798d5f4
add dword [ebp - 0x14], 0x98672a0c
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x543e15ac
sub dword [ebp - 0x20], 0xdfcbac56
mov dword [ebp - 0x1c], 0xa481a05
add dword [ebp - 0x1c], 0x37244770
mov dword [ebp - 0x18], 0x854f83f8
add dword [ebp - 0x18], 0xde1fe874
mov dword [ebp - 0x14], 0xa9d89ace
sub dword [ebp - 0x14], 0xa9d89ace
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xb5fabdf8
add eax, 0x4a461254
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x390e3
push 0
call eax
mov ecx, 0x326c06a6
sub ecx, 0x326bc082
mov edx, eax
mov esi, 0xa970a3c9
add esi, 0x56d10c37
add esi, dword [ebp - 0x10]
mov ebx, 0x864f8bbd
sub ebx, 0xbd0b8e6c
mov edi, dword [esi]
add edi, ebx
sub dword [ebp - 0xc], 0xee55343a
mov dword [edx], edi
xor dword [ebp - 8], ebx
add edx, 4
add esi, 4
loop 0x4030f5
add eax, 0x10b63
mov ebx, eax
add eax, 0x84e10220
sub eax, 0x84e1021b
mov ecx, 0x33101174
sub ecx, 0x32d01174
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42c0a6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0042b7bf
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0042b80a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042b7bf
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0042b80a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042b7bf
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0042b7fa
wait
inc ebx
rol byte [eax - 0x5335b], 1
inc dword [eax]
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0042b80a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042b7bf
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0042b7fa
add eax, 0xa5804bd2
pushfd
stc
invalid
Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x4459b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x4459ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4459d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4459c0
mov eax, 1
add ebx, ebx
jne 0x4459e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4459f4
jne 0x445a13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x445a13
dec eax
add ebx, ebx
jne 0x445a00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4459d8
add ebx, ebx
jne 0x445a0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x445a65
xor ecx, ecx
sub eax, 3
jb 0x445a2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x445a9a
sar eax, 1
mov ebp, eax
jmp 0x445a36
add ebx, ebx
jne 0x445a36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x445a04
inc ecx
add ebx, ebx
jne 0x445a44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x445a04
add ebx, ebx
jne 0x445a51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x445a46
jne 0x445a62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x445a46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x445a84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x445a76
jmp 0x4459c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x445a84
add edi, ecx
jmp 0x4459c6
pop esi
mov edi, esi
mov ecx, 0x67a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x445aa2
cmp byte [edi], 0xa
jne 0x445aa2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x445aa7
lea edi, [esi + 0x43000]
mov eax, dword [edi]
or eax, eax
je 0x445b16
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x453f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x45444]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x445ad4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4544c]
or eax, eax
je 0x445b10
mov dword [ebx], eax
add ebx, 4
jmp 0x445af1
call dword [esi + 0x45448]
mov ebp, dword [esi + 0x45450]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x445b4a
sub esp, 0xffffff80
jmp 0x4037e9

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Copy file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x4b0
test eax, eax
push ebp
push esi
push edi
je 0x4010ac
mov ebp, dword [esp + 0x4c4]
test ebp, ebp
je 0x4010ac
mov eax, dword [esp + 0x4c8]
test eax, eax
je 0x4010ac
lea eax, [esp + 0x19c]
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x4010ac
lea edi, [esp + 0x19c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x19b], 0x5c
je 0x401092
mov edi, 0x407044
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xc]
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4010bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x4b0
ret 0xc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x4010fe
mov edi, 0x407044
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407038
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xc8
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xd8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x409950]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xd4]
push 0x5c
push edx
call fcn.00401770
add esp, 8
test eax, eax
je 0x401160
mov byte [eax + 1], 0
mov eax, dword [esp + 0x4c0]
lea ecx, [esp + 0xd4]
push eax
push ecx
lea edx, [esp + 0x26c]
push 0x407030
push edx
call fcn.00401700
add esp, 0x10
lea eax, [esp + 0x264]
push eax
call fcn.00401480
lea ecx, [esp + 0xc]
push ebp
push ecx
lea edx, [esp + 0x334]
push 0x407030
push edx
call fcn.00401700
lea eax, [esp + 0xe4]
push ebp
push eax
lea ecx, [esp + 0x40c]
push 0x407030
push ecx
call fcn.00401700
add esp, 0x20
lea edx, [esp + 0x32c]
lea eax, [esp + 0x3f4]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x264]
mov ecx, dword [esp + 0x4c8]
push ecx
push edx
call fcn.00401210
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x4b0
ret 0xc
Function at 0x401910
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40999c]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40192f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x409998], 1
mov byte [0x409994], bl
jne 0x401989
mov ecx, dword [0x40ae70]
test ecx, ecx
je 0x401977
mov esi, dword [0x40ae6c]
sub esi, 4
cmp esi, ecx
jb 0x401977
mov eax, dword [esi]
test eax, eax
je 0x401970
call eax
mov ecx, dword [0x40ae70]
sub esi, 4
cmp esi, ecx
jae 0x401962
push 0x40701c
push 0x407014
call fcn.004019c0
add esp, 8
push 0x407024
push 0x407020
call fcn.004019c0
add esp, 8
test ebx, ebx
jne 0x4019b0
push ebp
mov dword [0x40999c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4019e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4060d0
push 0x4036e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40996c], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x409968], ecx
shl ecx, 8
add ecx, edx
mov dword [0x409964], ecx
shr eax, 0x10
mov dword [0x409960], eax
call fcn.004035b0
test eax, eax
jne 0x401a4a
push 0x1c
call fcn.00401bb0
add esp, 4
mov dword [ebp - 4], 0
call fcn.004033b0
call fcn.004033a0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ae68], eax
call fcn.00402d60
mov dword [0x4099a0], eax
test eax, eax
je 0x401a7d
mov eax, dword [0x40ae68]
test eax, eax
jne 0x401a87
push 0xffffffffffffffff
call fcn.004018d0
add esp, 4
call fcn.00402ab0
call fcn.004029c0
call fcn.004018a0
mov esi, dword [0x40ae68]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401b66
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401ace
test al, al
je 0x401ace
and eax, 0xff
push eax
call fcn.00402960
add esp, 4
test eax, eax
je 0x401aa8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401aa8
cmp byte [esi], 0x22
jne 0x401ad7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401ae7
cmp al, 0x20
ja 0x401ae7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ad7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401b08
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401b0d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004018d0
jmp 0x401b4b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401ad7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401b66
Function at 0x401bb0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4099a8], 1
jne 0x401bbe
call fcn.004037c0
mov eax, dword [esp + 4]
push eax
call fcn.00403800
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402d60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x409ab8]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402da2
call edi
mov esi, eax
test esi, esi
je 0x402d8c
mov eax, 1
jmp 0x402d9d
call ebp
mov ebx, eax
test ebx, ebx
je 0x402eaf
mov eax, 2
mov dword [0x409ab8], eax
cmp eax, 1
jne 0x402e42
test esi, esi
jne 0x402dbb
call edi
mov esi, eax
test esi, esi
je 0x402eaf
cmp word [esi], 0
mov eax, esi
je 0x402dd5
add eax, 2
cmp word [eax], 0
jne 0x402dc3
add eax, 2
cmp word [eax], 0
jne 0x402dc3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x402e34
push edi
call fcn.00403ff0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402e34
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x402e26
push ebx
call fcn.00403fa0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x402eaf
test ebx, ebx
jne 0x402e53
call ebp
mov ebx, eax
test ebx, ebx
je 0x402eaf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x402e6b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402e5b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403ff0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x402e8d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x403800
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x407270
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x403824
add eax, 8
inc ebp
cmp eax, 0x407300
jb 0x403815
cmp ecx, dword [ebp*8 + 0x407270]
jne 0x4039cb
mov eax, dword [0x4099a8]
cmp eax, 1
je 0x40398d
test eax, eax
jne 0x403850
cmp dword [0x4070c4], 1
je 0x40398d
cmp ecx, 0xfc
je 0x4039cb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40388b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4038d4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x406428
add ebx, ecx
push ebx
call fcn.004017a0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406408
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x407274]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00404b60
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40ad60]
test eax, eax
je 0x40399e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4039a8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x407274]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret