joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d72a5
Capabilities:
Encode data using xor

Disassembly:
aam 0xc8
invalid
xor esi, dword [eax + 0x59c8d8e]
stosb byte es:[edi], al
cmp ecx, 0x8be31e0b
cmpsd dword [esi], dword es:[edi]
sub byte [ebx + 0x764231d6], dh
pop edi
mov eax, dword [0x1167473e]
xor word [ebx + 0x50], dx
mov ah, cl
inc dword [ebp + 0x17586fa]
sal ebp, 0x1d
mov al, byte [0x71cdda18]
nop
fcmove st(0), st(5)
jno 0x5d7261
jo 0x5d72a2
ret
lahf
jo 0x5d7327
sub byte [eax], dh
pop edx
sbb esp, esp
jmp 0x36b22203
sbb edx, dword [edx - 0x714050b3]
jns 0x5d72cd
pop ss
jg 0x5d73b0
sbb dword [edi + 0x73], ecx
ljmp 0xeee0
cmc
int3

Function at 0x5e1535
Capabilities:
Encode data using xor

Disassembly:
invalid
xchg eax, esp
loope 0x5e14dc
pop edx
aaa
aad 0x85
xchg ebp, eax
invalid

Function at 0x5e23f5
Capabilities:
Encode data using xor

Disassembly:
sar dword [ecx + 0x5302306c], cl
or al, 0x41
loop 0x5e2432
into
push dword [edi - 0x68]
pop esi
lodsb al, byte [esi]
mov edx, 0x8ea361e1
js 0x5e241e
push esp
cmp eax, 0xee70627d
mov eax, 0x1e7180e
pop ds
dec esp
xor byte [edx + 0xfa6cb54], bl
test bh, 0x1e
fild qword [ecx - 0x7e]
bound ebx, qword [esp + eax*4 + 0x188d30ec]
invalid
or byte [ebp - 0xaf8fb9b], 0xc3
sbb eax, edi
sbb eax, 0xff5fe500
adc ah, cl
inc bx
jae 0x5e23b8
int3
and byte [ecx + 0x712e82b4], bh
mov byte [edx - 0x710d3b0], ch
mov byte [0x194fa890], al
aas
xor cl, byte [edi + 0x70]
xor al, 0x24
push 0xffffffffffffffe0
jle 0x5e2404
push edi
mov eax, dword [0xdfa994cc]
mov ch, byte [edx - 0x75ff69b2]
lds ebp, [ebx + 0x72]
cmpsb byte [esi], byte es:[edi]
jb 0x5e23da
stc
mov bl, 0xdd
push ecx
fidiv word [eax - 0xa]
sbb al, 0xb0
adc ebp, dword [edi + 0x17]
std
shr byte [esi], 0x8f
fild word [ebx - 0x55af7f29]
movlps qword [edx + 0x4ee18cc1], xmm6
fnsave dword [edx + 0x31]
inc ebx
add dword [edi - 0x5040c8dd], edi
mov edx, 0x430e304e
dec esi
cmp byte [eax], ah
sbb eax, 0x4cd950cb
stosd dword es:[edi], eax
call 0xcfced654
movq qword [edi + 0x11], mm1
invalid
Function at 0x624335
Capabilities:
Encode data using xor

Disassembly:
cmp dword [edi + 0x4a3831f7], edx
and al, 0
sub eax, 0x4034ff05
xchg edi, eax
div dword [ecx]
cmp byte [edx + 0x24], cl
add byte [0x4034ff05], ch
adc dword [eax - 0x53], edi
sub dword [ebx - 0x67], esi
nop
cli
in eax, dx
lahf
mov byte [0xc1fdb72b], al
and dword [ecx + 0x4df6bd70], ecx
xor esi, dword [esi]
lcall 0x7858, 0x9929a472
xor byte [eax - 0x7743766], cl
lodsb al, byte [esi]
mov ch, 0x84
push ebp
mov eax, 0x318b19b5
in eax, 0xf6
or ecx, 0xffffff9a
adc dword [esi - 0x792c0ad1], eax
adc eax, 0xf1545ed
pop eax
in eax, dx
test al, 0xa3
jp 0x6242df
push ss
stc
xchg esp, eax
insb byte es:[edi], dx
cmp dh, byte [ebx - 0x32ac3bc7]
enter 0x25d4, 0x56
pop edi
sbb ecx, dword [eax]
inc edi
js 0x624374
loope 0x62438c
inc ebx
xor edi, dword [esi - 0x67]
jge 0x6242e0
stc
pushfd
fmul dword [ebp - 0x64]
mov ebp, 0x64264348
lodsd eax, dword [esi]
je 0x62434b
nop
cmp ch, 0xd8
mov byte [edx + 0x15], ah
outsd dx, dword [esi]
std
adc byte [edx + ebx*2 + 0x18a5c132], ch
cmc
add bh, byte [ecx]
in al, dx
mov edi, 0x142f7bec
mov byte [ebx + 0x45b86ebf], ah
mov dword [0x45b86ebf], eax
adc eax, 0x3300c2bd
xchg esp, eax
mov esi, 0x689290e1
cmc
bound ebx, qword [edx]
rol byte [edi + 0x26], 1
mov ch, 0x19
lea ebx, [edx + esi*8 + 0x40]
test dword [edi + 0x35e652dd], ebp
sbb dh, byte [eax + edi*8]
clc
int1
rol dword [ecx], cl
arpl word [edx], bp
loopne 0x624398
cli
add eax, dword ds:[edi + 0xa1e1985]
inc esi
rcl dword [eax + eax - 0xf4b925c]
salc
popfd
xor ebx, dword [0x88d67521]
cwde
add byte [ebp + eax*4 + 5], 0x16
push ss
shr eax, 1
js 0x6243f6
jne 0x6243bd
sal byte [edi], 1
int 0x5b
adc ebp, dword [ecx]
shr dword [eax + 0x5b], 1
push ebp
stosd dword es:[edi], eax
adc byte [eax], cl
loope 0x6243e3
xchg ebp, eax
test eax, 0x65883981
fst st(4)
mov ebx, 0xd91510e4
inc ebp
loop 0x624440
dec edi
push 0x47
aad 0x2c
jne 0x624455
loop 0x62441c
xchg ebp, eax
out dx, eax
add eax, 0x31429d7c
pop ebp
mov al, byte [0xc660d4c5]
mov al, 0x16
jns 0x6243c2
aam 0x60
invalid
xbegin 0xe5636089
hlt
arpl cx, dx
aad 0x31
add byte [edx + ecx*2 + 0x68], ah
ret
mov bl, ch
or eax, 0xd2df8540
xor al, 0xa2
retf 0x6a71
add al, byte [ebx - 0x2fe6ae74]
xlatb
loop 0x6244ae
add bl, dh
sbb eax, 0x60687358
xchg edx, eax
fxch st(4)
fistp qword [0x537e248a]
mov byte gs:[0xaa90f0e], al
cwde
cmp al, 0xb9
aad 0xbc
mov dword [ebp + 0x2c], ecx
push 0xf98c96b5
pop ss
push eax
and eax, 0x6383e46
stosd dword es:[edi], eax
rcr ecx, cl
insd dword es:[edi], dx
push 0xe3800e22
xlatb
mov cl, 0x2b
int3
push ecx
xchg bp, ax
test eax, 0xd41358a8
adc al, 0xaa
retf
Function at 0x6578fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65f3a8
cmp edx, dword [eax]
je 0x65791f
add eax, 8
inc ecx
cmp eax, 0x65f438
jl 0x657910
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65f3a8]
jne 0x657a4d
mov eax, dword [0xa64d18]
cmp eax, 1
je 0x657a27
test eax, eax
jne 0x657950
cmp dword [0x65f2d4], 1
je 0x657a27
cmp edx, 0xfc
je 0x657a4d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657987
lea eax, [ebp - 0x1a4]
push 0x65c9e8
push eax
call fcn.006582e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658770
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6579ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658770
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65c9e4
push edi
call fcn.0065a640
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65c9c8
push eax
call fcn.006582e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006582f0
lea eax, [ebp - 0xa0]
push 0x65c9c4
push eax
call fcn.006582f0
push dword [esi + 0x65f3ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.006582f0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65c99c
push eax
call fcn.0065a5b4
add esp, 0x2c
pop edi
jmp 0x657a4d
lea eax, [ebp + 8]
lea esi, [esi + 0x65f3ac]
push 0
push eax
push dword [esi]
call fcn.00658770
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1269058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x12691a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x126907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x126906a
add dl, dl
jne 0x1269089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12690dc
xor eax, eax
add dl, dl
jne 0x1269096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x126917d
add dl, dl
jne 0x12690a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12690b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12690bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12690c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x12690d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1269075
mov eax, 1
add dl, dl
jne 0x12690ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12690f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12690e1
sub eax, ebx
mov ebx, 1
jne 0x1269128
mov ecx, 1
add dl, dl
jne 0x126910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1269119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1269105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1269075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x126913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x126914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1269136
cmp eax, 0x7d00
jae 0x126916d
cmp eax, 0x500
jb 0x1269168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1269075
cmp eax, 0x7f
ja 0x1269170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1269075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x126919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1269075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4035f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + ebx + 0x78]
mov ecx, dword [eax + ebx + 0x1c]
add eax, ebx
add ecx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
add ecx, ebx
add edx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
cmp dword [eax + 0x18], edi
jbe 0x4036f8
mov esi, dword [ecx + edi*4]
xor eax, eax
mov cl, byte [esi + ebx]
add esi, ebx
test cl, cl
je 0x403699
cmp cl, 0x30
jl 0x40365a
mov cl, byte [esi]
cmp cl, 0x5a
jg 0x40365a
movsx ecx, cl
mov dl, byte [ecx + 0x428fc0]
jmp 0x40366d
mov dl, byte [esi]
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x40366d
movsx ecx, dl
mov dl, byte [ecx + 0x428fa0]
mov byte [eax + 0x42f238], dl
test al, 1
je 0x403689
mov cl, byte [eax + 0x42f237]
mov byte [eax + 0x42f237], dl
mov byte [eax + 0x42f238], cl
mov cl, byte [esi + 1]
inc esi
inc eax
mov edx, eax
test cl, cl
jne 0x403643
cmp edx, 0x64
jae 0x403701
mov byte [eax + 0x42f238], 0
mov ecx, 0x42f238
mov eax, dword [ebp - 4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4036c8
test dl, dl
je 0x4036c4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4036c8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4036a8
xor eax, eax
jmp 0x4036cd
sbb eax, eax
or eax, 1
test eax, eax
je 0x4036e2
mov eax, dword [ebp - 8]
inc edi
cmp edi, dword [eax + 0x18]
jae 0x4036f8
mov ecx, dword [ebp - 0xc]
jmp 0x403635
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
movzx eax, word [eax + edi*2]
pop edi
pop esi
mov eax, dword [ecx + eax*4]
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00408099
int3

Function at 0x408bc5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408c04
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408c04
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408c04
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408c04
cmp dword [ecx + 0x74], 0xe
jbe 0x408c04
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419265
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4261d8
push 0x4261d0
push str.FlsAlloc
push 0x1f
call fcn.00419124
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419299
push dword [ebp + 8]
mov ecx, esi
call dword [0x423158]
call esi
jmp 0x41929f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4192e3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4261e8
push 0x4261e0
push str.FlsGetValue
push 0x21
call fcn.00419124
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41931a
push dword [ebp + 8]
mov ecx, esi
call dword [0x423158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x419322
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4261f0
push 0x4261e8
push str.FlsSetValue
push 0x22
call fcn.00419124
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41935c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x423158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41a966
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41aa03
push ebx
push esi
call fcn.0041a92f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00417ec4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a9b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41aa02
push edi
push eax
call fcn.0041605e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a9d0
call fcn.00416024
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41aa01
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00417ec4
add esp, 0x20
test eax, eax
jne 0x41a9ef
push edi
call fcn.00416024
jmp 0x41a9f7
push ebx
call fcn.00416024
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41aa06
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41aa17
pop esi
ret
push ebx
push edi
push esi
call fcn.0041a92f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041605e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41aa3f
push ebx
push esi
push edi
call fcn.00408fa0
add esp, 0xc
push 0
call fcn.00416024
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x41ae0f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041aa54
Function at 0x421a30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421a5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421a5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Create process on windows
Get common file path

Disassembly:
push esi
push 0x4067d8
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x406690
push str..inf
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x40668c], eax
jne 0x401045
push 0x10
push str.Error_Message
push str.Inf_file_not_found.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop esi
ret 0x10
push str.RUNDLL32.EXE_setupapi.dll_InstallHinfSection_DefaultInstall_132
push 0x406560
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4067d8
push 0x406560
call esi
push 0x4040bc
push 0x406560
call esi
push 0x4066bc
push 0x406560
call esi
push 0x4040b8
push 0x4066bc
call fcn.004010e0
add esp, 8
push 0x4066bc
push str.Do_you_wish_to_install
call esi
push str._
push str.Do_you_wish_to_install
call esi
push 0x24
push str.Confirmation
push str.Do_you_wish_to_install
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
mov dword [0x4067d0], eax
jne 0x4010d4
push 0
push 0x406560
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, 1
pop esi
ret 0x10
Function at 0x4011c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4021d8
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 [0x4068c8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4068c4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4068c0], ecx
shr eax, 0x10
mov dword [0x4068bc], eax
call fcn.004020a0
test eax, eax
jne 0x40122a
push 0x1c
call fcn.00401360
add esp, 4
mov dword [ebp - 4], 0
call fcn.00401ea0
call fcn.00401e90
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x406c90], eax
call fcn.00401a60
mov dword [0x4068a4], eax
test eax, eax
je 0x40125d
mov eax, dword [0x406c90]
test eax, eax
jne 0x401267
push 0xffffffffffffffff
call fcn.004013c0
add esp, 4
call fcn.004017b0
call fcn.004016c0
call fcn.00401390
mov esi, dword [0x406c90]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401346
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x4012ae
test al, al
je 0x4012ae
and eax, 0xff
push eax
call fcn.00401660
add esp, 4
test eax, eax
je 0x401288
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401288
cmp byte [esi], 0x22
jne 0x4012b7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4012c7
cmp al, 0x20
ja 0x4012c7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4012b7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4012e8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4012ed
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.004013c0
jmp 0x40132b
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 0x4012b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401346

Function at 0x401400
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4068f8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40141f
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 [0x4068f4], 1
mov byte [0x4068f0], bl
jne 0x401479
mov ecx, dword [0x406c88]
test ecx, ecx
je 0x401467
mov esi, dword [0x406c84]
sub esi, 4
cmp esi, ecx
jb 0x401467
mov eax, dword [esi]
test eax, eax
je 0x401460
call eax
mov ecx, dword [0x406c88]
sub esi, 4
cmp esi, ecx
jae 0x401452
push 0x404014
push 0x404010
call fcn.004014b0
add esp, 8
push 0x40401c
push 0x404018
call fcn.004014b0
add esp, 8
test ebx, ebx
jne 0x4014a0
push ebp
mov dword [0x4068f8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x401a60
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x406a08]
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 0x401aa2
call edi
mov esi, eax
test esi, esi
je 0x401a8c
mov eax, 1
jmp 0x401a9d
call ebp
mov ebx, eax
test ebx, ebx
je 0x401baf
mov eax, 2
mov dword [0x406a08], eax
cmp eax, 1
jne 0x401b42
test esi, esi
jne 0x401abb
call edi
mov esi, eax
test esi, esi
je 0x401baf
cmp word [esi], 0
mov eax, esi
je 0x401ad5
add eax, 2
cmp word [eax], 0
jne 0x401ac3
add eax, 2
cmp word [eax], 0
jne 0x401ac3
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 0x401b34
push edi
call fcn.00402520
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401b34
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 0x401b26
push ebx
call fcn.004024d0
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 0x401baf
test ebx, ebx
jne 0x401b53
call ebp
mov ebx, eax
test ebx, ebx
je 0x401baf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x401b6b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401b5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401b5b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402520
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401b8d
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 0x4022f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x404290
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402314
add eax, 8
inc ebp
cmp eax, 0x404320
jb 0x402305
cmp ecx, dword [ebp*8 + 0x404290]
jne 0x4024bb
mov eax, dword [0x4068ac]
cmp eax, 1
je 0x40247d
test eax, eax
jne 0x402340
cmp dword [0x4040ec], 1
je 0x40247d
cmp ecx, 0xfc
je 0x4024bb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40237b
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 0x4023c4
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 0x4032e0
add ebx, ecx
push ebx
call fcn.00402d80
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, 0x4032c0
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 + 0x404294]
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.00402cf0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x406b80]
test eax, eax
je 0x40248e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402498
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x404294]
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