joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ce80
Capabilities:
Packed with generic packer

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov edx, dword [ebp + 0x58]
cmp edx, 5
push esi
push edi
jne 0x46ce9d
cmp dword [ebp + 0x60], 0x4b
jge 0x46d047
fld dword [ebp + 0x30]
fcomp qword [0x7b0000]
fnstsw ax
test ah, 0x41
je 0x46d047
fild dword [ebp + 0x10]
fadd dword [ebp + 0x30]
fcomp qword [0x679298]
fnstsw ax
test ah, 5
jnp 0x46d047
cmp edx, 9
jno 0x46cf6c
mov ecx, dword [ebp + 0x88]
mov edx, dword [ebp + 4]
call fcn.0041c7f0
mov ebx, eax
test ebx, ebx
je 0x46d04e
mov eax, dword [ebp + 0x74]
push eax
mov esi, ebx
call fcn.00531a80
test al, al
je 0x46d04e
lea ecx, [esp + 0x20]
mov esi, ebp
call fcn.0046ebc0
lea edi, [esp + 0x10]
call fcn.005320b0
mov ecx, edi
lea edi, [esp + 0x20]
call fcn.0041c820
test eax, eax
jl 0x46d04e
fld dword [ebp + 0x34]
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 5
jp 0x46d04e
mov ecx, dword [esp + 0x14]
fld dword [ebp + 0x34]
mov edx, dword [esp + 0x1c]
add edx, ecx
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
fcompp
fnstsw ax
test ah, 0x41
jne 0x46d04e
mov eax, ebx
mov ecx, ebp
call fcn.0046e000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
mov ecx, dword [ebp + 0x5c]
cmp ecx, 7
jne 0x46cf9c
fld dword [0x679fe4]
fcomp dword [ebp + 0x34]
fnstsw ax
test ah, 5
jnp 0x46d047
fld dword [0x67959c]
fcomp dword [ebp + 0x34]
fnstsw ax
test ah, 0x41
je 0x46d047
test ecx, ecx
je 0x46cfa5
cmp ecx, 7
jne 0x46cfbc
fld dword [ebp + 0x4c]
fsub dword [ebp + 0x34]
fcomp qword [0x679b48]
fnstsw ax
test ah, 0x41
je 0x46d04e
cmp edx, 8
je 0x46d04e
cmp ecx, 0xd
push ebp
jne 0x46d058
call fcn.0046caa0
test eax, eax
je 0x46d04e
mov ecx, dword [ebp + 0x5c]
lea ecx, [ecx + ecx*2]
mov edx, dword [ecx*4 + 0x69f1c8]
mov ecx, dword [eax + 0xb8]
jmp 0x7a5760
mov eax, ebp
call fcn.0046eb20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call fcn.0046cd40
mov edx, eax
test edx, edx
je 0x46d04e
cmp byte [edx + 0xbe], 0
je 0x46d077
mov ecx, ebp
call fcn.0046d090
test al, al
jne 0x46d04e
mov eax, edx
mov ecx, ebp
call fcn.0046e000
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80d004]
jne 0x401010
repz ret
jmp fcn.004014f3

Function at 0x407a15
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c04
and dword [ebp - 4], 0
cmp dword [0x80fc9c], 0
mov ebx, eax
jne 0x407ac6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407b77
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push reloc.KERNEL32.dll_SetCommBreak
push edi
call esi
test eax, eax
je 0x407b77
push eax
call fcn.00404b92
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x80fc9c], eax
call esi
push eax
call fcn.00404b92
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x80fca0], eax
call esi
push eax
call fcn.00404b92
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x80fca4], eax
call esi
push eax
call fcn.00404b92
pop ecx
mov dword [0x80fcac], eax
test eax, eax
je 0x407ac6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404b92
pop ecx
mov dword [0x80fca8], eax
mov eax, dword [0x80fca8]
cmp eax, ebx
je 0x407b1e
cmp dword [0x80fcac], ebx
je 0x407b1e
push eax
call fcn.00404c0d
push dword [0x80fcac]
mov esi, eax
call fcn.00404c0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407b1e
test edi, edi
je 0x407b1e
call esi
test eax, eax
je 0x407b15
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407b15
test byte [ebp - 0xc], 1
jne 0x407b1e
or dword [ebp + 0x10], 0x200000
jmp 0x407b57
mov eax, dword [0x80fca0]
cmp eax, ebx
je 0x407b57
push eax
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b57
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407b57
mov eax, dword [0x80fca4]
cmp eax, ebx
je 0x407b57
push eax
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b57
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80fc9c]
call fcn.00404c0d
pop ecx
test eax, eax
je 0x407b77
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407b79
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ba0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x80d004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x2af7cb4], 0x930
jne 0x409bca
push 0x80b2d8
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x2af7cb4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x2af7af8], eax
jne 0x409bfd
push 0
lea ecx, [ebp - 0x404]
push ecx
push 0
call sub.KERNEL32.dll_VerLanguageNameA
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
mov esp, ebp
pop ebp
ret
Function at 0x4146a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x30]
push ebx
push esi
mov esi, dword [esp + 0x3c]
mov eax, esi
push edi
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
fild dword [esp + 0x40]
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
fsub qword [0x45e290]
fild dword [esp + 0x40]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x54]
fild dword [esp + 0x40]
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x4c]
fsub st(1)
and eax, 0xff
fdiv st(2)
fstp qword [esp + 0x1c]
fild dword [esp + 0x40]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x58]
and edx, 0xff
fstp qword [esp + 0xc]
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
fsub qword [esp + 0xc]
fdiv st(2)
fstp qword [esp + 0x24]
fild dword [esp + 0x40]
mov dword [esp + 0x40], edx
xor edx, edx
cmp ecx, esi
fstp qword [esp + 0x14]
fild dword [esp + 0x40]
setge dl
dec edx
xor ebx, ebx
fsub qword [esp + 0x14]
and edx, 2
dec edx
fdiv st(2)
fstp qword [esp + 0x2c]
fld qword [esp + 0xc]
fld qword [esp + 0x14]
fld qword [0x45e298]
fcomp st(4)
fnstsw ax
test ah, 1
je 0x4147d7
mov eax, dword [esp + 0x38]
lea edi, [edx*4]
fld qword [esp + 0x1c]
lea esi, [eax + ecx*4 + 2]
fld st(3)
call fcn.00451430
fld st(2)
mov byte [esi - 2], al
call fcn.00451430
fld st(1)
mov byte [esi - 1], al
call fcn.00451430
mov byte [esi], al
add esi, edi
inc ebx
mov dword [esp + 0x40], ebx
fild dword [esp + 0x40]
fcomp st(5)
fxch st(3)
fadd st(3)
fxch st(2)
fadd qword [esp + 0x24]
fxch st(1)
fadd qword [esp + 0x2c]
fxch st(2)
fxch st(3)
fxch st(1)
fxch st(2)
fxch st(1)
fnstsw ax
test ah, 1
jne 0x41478a
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
pop edi
pop esi
fstp st(0)
pop ebx
add esp, 0x28
ret
Function at 0x41e290
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x45d6de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 0x96c]
mov ecx, ebp
call fcn.00416b60
xor ebx, ebx
mov ecx, 0xb8
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
xor eax, eax
lea edi, [esi + 0x38]
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
rep stosd dword es:[edi], eax
mov dword [esi + 0x318], ebx
mov ecx, 0x190
lea edi, [esi + 0x320]
mov dword [esi + 0x31c], ebx
rep stosd dword es:[edi], eax
mov dword [esi + 0x960], ebx
push 0x64
mov ecx, ebp
mov dword [esp + 0x20], ebx
mov dword [esi + 0x964], ebx
mov dword [esi + 0x968], ebx
call fcn.00416b90
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x97c], ebx
mov dword [esi + 0x980], ebx
mov dword [esi + 0x984], ebx
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret
Function at 0x442a20
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45d91b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 8], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], 0x4073b000
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ebx
mov edi, dword [esi + 0x68]
cmp edi, ebx
je 0x442b08
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x442ac8
cmp dword [edi], ebx
je 0x442ac8
mov ecx, edi
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x68]
mov eax, dword [eax]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [esi + 0x68]
mov ecx, dword [eax]
mov dword [esi + 0x68], ecx
jmp 0x442af0
mov ecx, dword [edi]
cmp ecx, ebx
je 0x442ad9
mov dword [ecx + 4], ebx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
jmp 0x442af0
cmp eax, ebx
je 0x442ae7
mov dword [eax], ebx
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
jmp 0x442af0
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
cmp edi, ebx
je 0x442b04
mov ecx, edi
call fcn.004427f0
push edi
call fcn.004507b0
add esp, 4
mov al, 1
jmp 0x442b0a
xor al, al
cmp al, bl
jne 0x442a98
mov eax, 0xf
mov dword [esi + 0x80], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
push str.parachute
mov ecx, 0x4a04d0
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], 1
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], 3
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
call fcn.004015f0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xe4], eax
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xb0], ebx
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret

Function at 0x44d740
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
mov eax, dword [0x4d18ec]
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x44f530
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
mov dword [esi + 0xcfc], edi
test eax, eax
mov dword [esi + 0xd00], ebx
jne 0x44f62a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x44f62a
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
lea eax, [esp + 0x14]
push 0xcf0000
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0xd7c]
sub ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0xd04], ecx
sub edx, dword [esp + 0x10]
test eax, eax
mov dword [esi + 0xd08], edx
je 0x44f5fc
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
sub eax, dword [esi + 0xd08]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call edi
mov ebx, dword [esi + 0xd04]
mov ecx, esi
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.0044f4b0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
mov ecx, esi
call fcn.0044f4b0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8

Function at 0x44fe00
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0x40]
push 0xcf0000
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esi + 0x40]
push 0
push 0xffffffffffffffec
push ecx
call edi
mov edx, dword [esi + 0x40]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esi + 0xd00]
mov edx, dword [esi + 0xcfc]
push ecx
push edx
mov ecx, esi
call fcn.0044f530
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x40]
push edi
push eax
push ecx
push edx
lea ecx, [esi + 0x44]
call fcn.004501f0
cmp edi, 8
jne 0x44fe7e
push 0
push 0
push 0
push edi
lea ecx, [esi + 0xca8]
call fcn.0044efb0
cmp edi, 0x10
jne 0x44fe9b
push 0x1f
push 0x3e0
push 0x7c00
push edi
lea ecx, [esi + 0xca8]
call fcn.0044efb0
cmp edi, 0x18
je 0x44fea5
cmp edi, 0x20
jne 0x44fec0
push 0xff
push 0xff00
push 0xff0000
push edi
lea ecx, [esi + 0xca8]
call fcn.0044efb0
pop edi
mov eax, 1
pop esi
ret 0xc
Function at 0x44fed0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0x40]
push 0x81000000
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esi + 0x40]
push 8
push 0xffffffffffffffec
push ecx
call edi
mov edx, dword [esi + 0x40]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x40]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 1
call edi
push eax
push 0
call edi
mov ecx, dword [esi + 0x40]
push eax
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 0x898]
lea edi, [esi + 0xd0c]
lea ebp, [esi + 0x89c]
push 0
mov dword [edi], 0x6c
mov dword [esi + 0xd10], 1
mov dword [esi + 0xd74], 0x200
mov edx, dword [eax]
push ebp
push edi
push eax
call dword [edx + 0x18]
test eax, eax
je 0x44ff71
mov ecx, esi
call fcn.004500d0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebp]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x58]
test eax, eax
je 0x44ff8d
mov ecx, esi
call fcn.004500d0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov cl, byte [esi + 0xd58]
mov eax, dword [esi + 0xd60]
test cl, 0x40
mov ebx, 8
je 0x44fffb
cmp eax, ebx
mov ecx, eax
ja 0x44ffab
mov ecx, ebx
cmp ecx, 0x20
jae 0x44ffc0
cmp eax, 8
jbe 0x44ffb9
mov ebx, eax
jmp 0x44ffc5
mov ebx, 8
jmp 0x44ffc5
mov ebx, 0x20
test ah, 4
je 0x44ffcf
mov ebx, 0x10
test ah, 2
je 0x44ffd9
mov ebx, 0x18
test ah, 1
je 0x44ffe3
mov ebx, 0x20
mov edx, dword [esi + 0xd6c]
mov eax, dword [esi + 0xd68]
mov ecx, dword [esi + 0xd64]
push edx
push eax
push ecx
push ebx
jmp 0x450003
push 0
push 0
push 0
push 8
lea ecx, [esi + 0xca8]
call fcn.0044efb0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 0xd18], edx
mov dword [esi + 0xd14], eax
mov eax, dword [esi + 0x898]
lea edx, [esi + 0x8a0]
push 0
mov dword [esi + 0xd10], 0x1007
mov dword [esi + 0xd74], 0x840
mov ecx, dword [eax]
push edx
push edi
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x45005e
mov ecx, esi
call fcn.004500d0
pop edi
pop esi
pop ebp
pop ebx
ret 8
cmp ebx, 8
jne 0x4500b1
mov eax, dword [esi + 0x898]
lea edi, [esi + 0x8a4]
push 0
lea edx, [esi + 0x8a8]
mov ecx, dword [eax]
push edi
push edx
push 4
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x450093
mov ecx, esi
call fcn.004500d0
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [ebp]
mov edx, dword [edi]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x7c]
test eax, eax
je 0x4500b1
mov ecx, esi
call fcn.004500d0
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
Function at 0x4514d0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00451590
mov eax, dword [0x4d21f4]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4514f4
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 [0x4d21f0], 1
mov byte [0x4d21ec], bl
jne 0x45154e
mov ecx, dword [0x4d38b0]
test ecx, ecx
je 0x45153c
mov esi, dword [0x4d38ac]
sub esi, 4
cmp esi, ecx
jb 0x45153c
mov eax, dword [esi]
test eax, eax
je 0x451535
call eax
mov ecx, dword [0x4d38b0]
sub esi, 4
cmp esi, ecx
jae 0x451527
push 0x462214
push 0x46220c
call fcn.004515b0
add esp, 8
push 0x462220
push 0x462218
call fcn.004515b0
add esp, 8
test ebx, ebx
je 0x45156d
call fcn.004515a0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x4d21f4], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x452160
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f400
push 0x456f18
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 [0x4d21c4], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x4d21c0], ecx
shl ecx, 8
add ecx, edx
mov dword [0x4d21bc], ecx
shr eax, 0x10
mov dword [0x4d21b8], eax
call fcn.00452ff0
test eax, eax
jne 0x4521ca
push 0x1c
call fcn.00452340
add esp, 4
call fcn.00452dd0
test eax, eax
jne 0x4521dd
push 0x10
call fcn.00452340
add esp, 4
mov dword [ebp - 4], 0
call fcn.004540f0
call fcn.00457f30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4d38a8], eax
call fcn.004578d0
mov dword [0x4d21f8], eax
test eax, eax
je 0x452210
mov eax, dword [0x4d38a8]
test eax, eax
jne 0x45221a
push 0xffffffffffffffff
call fcn.00451490
add esp, 4
call fcn.00457620
call fcn.00457530
call fcn.00451460
mov esi, dword [0x4d38a8]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4522f9
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x452261
test al, al
je 0x452261
and eax, 0xff
push eax
call fcn.004574d0
add esp, 4
test eax, eax
je 0x45223b
inc esi
mov dword [ebp - 0x64], esi
jmp 0x45223b
cmp byte [esi], 0x22
jne 0x45226a
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x45227a
cmp al, 0x20
ja 0x45227a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x45226a
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x45229b
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4522a0
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.00451490
jmp 0x4522de
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 0x45226a
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4522f9
Function at 0x452340
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4d2200], 1
jne 0x45234e
call fcn.00457f40
mov eax, dword [esp + 4]
push eax
call fcn.00457f80
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x452dd0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00453030
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x466390], eax
je 0x452e28
push 0x74
push 1
call fcn.00458250
mov esi, eax
add esp, 8
test esi, esi
je 0x452e28
mov eax, dword [0x466390]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x452e28
push esi
call fcn.00452e30
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x452e50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x466390]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x452ebe
push 0x74
push 1
call fcn.00458250
mov esi, eax
add esp, 8
test esi, esi
je 0x452eb4
mov ecx, dword [0x466390]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x452eb4
push esi
call fcn.00452e30
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00452310
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x457070
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x45709c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x4d37a0]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x4570d7
push 2
push ebp
push ecx
call fcn.00454380
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x457239
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x457181
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x457132
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x45711f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x457102
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45722a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x45717d
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4570fe
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x457219
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4571d5
cmp eax, 5
jne 0x4571be
call fcn.00451f80
mov dword [eax], 9
call fcn.00451f90
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00451f00
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4571f5
cmp byte [ebp], 0x1a
jne 0x4571f5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00451f80
mov dword [eax], 0x1c
call fcn.00451f90
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x45717d
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45726a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x457181
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x457181