joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4169a7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
lea eax, [ebp - 4]
push esi
push edi
mov esi, ecx
push eax
push 7
mov eax, dword [ebp + 8]
add eax, 0x84
push eax
call fcn.0040c884
add esp, 0xc
test eax, eax
je 0x416bb4
push eax
call fcn.00418790
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 7
push 0
call fcn.0040c884
add esp, 0xc
test eax, eax
je 0x416bb4
push eax
xor edi, edi
call fcn.00418790
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
mov ebx, 7
push eax
push ebx
push edi
call fcn.0040c884
add esp, 0xc
test eax, eax
je 0x416b3c
push 0x32
lea ecx, [ebp - 0x84]
push eax
push ecx
call fcn.0040b647
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
call fcn.0040c884
add esp, 0xc
test eax, eax
je 0x416b3c
push 0x32
lea ecx, [ebp - 0x52]
push eax
push ecx
call fcn.0040b647
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push ebx
push edi
call fcn.0040c884
add esp, 0xc
test eax, eax
je 0x416b3c
push eax
call fcn.004186e0
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
call fcn.0040c884
add esp, 0xc
test eax, eax
je 0x416b3c
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x20], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
call fcn.0040c884
add esp, 0xc
test eax, eax
je 0x416b3c
push eax
call fcn.00418790
add esp, 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
call fcn.0040c884
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x416b3c
push 0x41fba0
push ebx
call fcn.00417e90
add esp, 8
test eax, eax
jne 0x416aed
mov ebx, 0x41d268
lea eax, [ebp - 4]
push eax
push 7
push edi
call fcn.0040c884
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, edi
je 0x416b3c
push 0x41fba0
push eax
call fcn.00417e90
add esp, 8
test eax, eax
jne 0x416b1c
mov dword [ebp - 8], 0x41d268
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x84]
push dword [ebp - 8]
push ebx
or al, 1
push eax
push ecx
mov ecx, esi
call fcn.00415eb7
inc dword [ebp - 0xc]
jmp 0x416a0d
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
jne 0x416b6a
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jg 0x416b6a
mov eax, dword [esi + 0x98]
mov dword [esi + 0xac], ecx
cmp dword [eax + 0x35c], ecx
je 0x416bb4
push 1
mov ecx, esi
call fcn.004165e7
jmp 0x416bb4
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
push eax
call fcn.00418240
add esp, 4
mov ecx, dword [esi + 0x8c]
push eax
push 0x12
push dword [ebp + 8]
call fcn.004085f7
push 0
mov ecx, dword [esi + 0x98]
mov edi, 0x105
push dword [ecx + 0x360]
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
je 0x416bb4
mov dword [esi + 0xb0], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416bbd
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov eax, dword [ecx + 0x98]
mov esi, ecx
push 5
xor edi, edi
push edi
add eax, 0x64
push edi
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x1f
jg 0x416c0b
cmp eax, 0x1b
je 0x416bf5
cmp eax, 0x1f
je 0x416bf5
push edi
push 0x41d264
push str.Cant_open_log_file
jmp 0x416c01
push 0
push 0x41d264
push str.Invalid_file_extention_link
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
pop edi
pop esi
ret
Function at 0x416e33
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
lea esi, [ecx + 0x98]
push ebp
mov eax, dword [esi]
mov edi, ecx
push str.advapi32.dll
mov dword [eax + 0x294], ebx
mov eax, dword [esi]
mov ecx, dword [eax + 0x294]
mov dword [eax + 0x290], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov ebp, eax
jne 0x416e7d
push ebx
push str.advapi32
call fcn.0040c22e
add esp, 8
xor eax, eax
jmp 0x417052
push str.CryptAcquireContextA
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
call ebx
push str.CryptDestroyKey
mov dword [0x420554], eax
push ebp
call ebx
push str.CryptGetKeyParam
mov dword [0x420548], eax
push ebp
call ebx
push str.CryptSetKeyParam
mov dword [0x420620], eax
push ebp
call ebx
push str.CryptExportKey
mov dword [0x420630], eax
push ebp
call ebx
push str.CryptGetUserKey
mov dword [0x420534], eax
push ebp
call ebx
push str.CryptEncrypt
mov dword [0x420538], eax
push ebp
call ebx
push str.CryptGenKey
mov dword [0x420624], eax
push ebp
call ebx
push str.CryptGenRandom
mov dword [0x420530], eax
push ebp
call ebx
push str.CryptImportKey
mov dword [0x420634], eax
push ebp
call ebx
push str.CryptDecrypt
mov dword [0x42053c], eax
push ebp
call ebx
push str.CryptCreateHash
mov dword [0x42062c], eax
push ebp
call ebx
push str.CryptHashData
mov dword [0x420628], eax
push ebp
call ebx
push str.CryptSignHashA
mov dword [0x420550], eax
push ebp
call ebx
push str.CryptVerifySignatureA
mov dword [0x420544], eax
push ebp
call ebx
mov dword [0x420540], eax
push str.CryptReleaseContext
push ebp
call ebx
push 0
mov dword [0x42054c], eax
cmp dword [0x420554], 0
jne 0x416f72
push str.GetProcAddress
call fcn.0040c22e
add esp, 8
xor eax, eax
jmp 0x417052
mov ecx, edi
xor ebx, ebx
xor ebp, ebp
call fcn.00417057
mov ecx, dword [esi]
mov eax, dword [ecx + 0x290]
test eax, eax
je 0x416f91
cmp dword [ecx + 0x298], ebp
je 0x416fa1
cmp dword [ecx + 0x294], ebp
je 0x416ff7
cmp dword [ecx + 0x2a8], ebp
jne 0x416ff7
inc ebx
cmp ebx, 5
jg 0x417010
test eax, eax
je 0x416fbb
push ebp
push eax
call dword [0x42054c]
mov eax, dword [esi]
mov dword [eax + 0x290], ebp
mov eax, dword [esi]
mov eax, dword [eax + 0x294]
test eax, eax
je 0x416fd7
push ebp
push eax
call dword [0x42054c]
mov eax, dword [esi]
mov dword [eax + 0x294], ebp
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebx - 5]
mov ecx, edi
cmp eax, 1
sbb eax, eax
and eax, 2
push eax
call fcn.00417057
jmp 0x416f7d
cmp ebx, 5
jg 0x417010
mov eax, dword [esi]
cmp dword [eax + 0x298], 0
jne 0x417034
cmp dword [eax + 0x2a8], 0
jne 0x417034
push 1
mov eax, dword [edi]
push 0x41d264
mov ecx, edi
push str.RSA_failed._Create_New_RSA_key_
call dword [eax + 0x90]
cmp eax, 1
jne 0x417034
push 3
mov ecx, edi
call fcn.00417057
mov eax, dword [esi]
cmp dword [eax + 0x298], 0
jne 0x41704d
cmp dword [eax + 0x2a8], 0
mov eax, 0
je 0x417052
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x418960
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c788
push 0x419c2c
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x42012c], eax
xor eax, eax
mov al, byte [0x42012d]
mov dword [0x420138], eax
mov eax, dword [0x42012c]
shr dword [0x42012c], 0x10
and eax, 0xff
mov dword [0x420134], eax
shl eax, 8
add eax, dword [0x420138]
mov dword [0x420130], eax
call fcn.00418b20
mov dword [ebp - 4], 0
call fcn.00419a50
call fcn.00419a40
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x420864], eax
call fcn.004195e0
mov dword [0x41fec0], eax
test eax, eax
je 0x4189f9
cmp dword [0x420864], 0
jne 0x418a03
push 0xffffffffffffffff
call fcn.00418e90
add esp, 4
call fcn.00419360
call fcn.00419280
call fcn.00418e60
mov esi, dword [0x420864]
mov al, byte [esi]
cmp al, 0x22
je 0x418a2a
cmp al, 0x20
jbe 0x418a57
inc esi
cmp byte [esi], 0x20
ja 0x418a22
jmp 0x418a57
inc esi
cmp byte [esi], 0x22
je 0x418a56
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x418a51
xor eax, eax
mov al, bl
push eax
call fcn.00419220
add esp, 4
test eax, eax
je 0x418a4b
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x418a33
cmp byte [esi], 0x22
jne 0x418a57
inc esi
cmp byte [esi], 0
je 0x418a67
cmp byte [esi], 0x20
ja 0x418a67
inc esi
cmp byte [esi], 0
jne 0x418a5c
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x418a8b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00418e90
jmp 0x418acc
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418ed0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x420168], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x418eee
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x420164], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x420160], bl
jne 0x418f48
cmp dword [0x420858], 0
je 0x418f36
mov edi, dword [0x420854]
sub edi, 4
cmp dword [0x420858], edi
ja 0x418f36
mov eax, dword [edi]
test eax, eax
je 0x418f2b
call eax
sub edi, 4
cmp dword [0x420858], edi
jbe 0x418f23
push 0x41d014
push 0x41d010
call fcn.00418f80
add esp, 8
push 0x41d01c
push 0x41d018
call fcn.00418f80
add esp, 8
test ebx, ebx
jne 0x418f6f
mov dword [0x420168], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x4195e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x420210], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x41962c
call esi
mov edi, eax
test edi, edi
je 0x41960a
mov dword [0x420210], 1
jmp 0x419630
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x419622
mov dword [0x420210], 2
jmp 0x419634
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x420210], 1
jne 0x4196e3
test edi, edi
jne 0x419657
call esi
mov edi, eax
test edi, edi
jne 0x419657
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x419671
add esi, 2
cmp word [esi], 0
jne 0x41965f
add esi, 2
cmp word [esi], 0
jne 0x41965f
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4196d2
push ebp
call fcn.004188b0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4196d2
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4196c1
push ebx
call fcn.00417e60
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x420210], 2
jne 0x419767
test ebx, ebx
jne 0x419706
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x419706
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x41971b
inc ebp
cmp byte [ebp], 0
jne 0x41970d
inc ebp
cmp byte [ebp], 0
jne 0x41970d
sub ebp, ebx
inc ebp
push ebp
call fcn.004188b0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x419740
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x419d50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x420438
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x419d77
add eax, 8
inc ecx
cmp eax, 0x4204c0
jb 0x419d68
cmp dword [ecx*8 + 0x420438], edx
lea ebx, [ecx*8]
jne 0x419f32
cmp dword [0x41fecc], 1
je 0x419ef7
cmp dword [0x41fecc], 0
jne 0x419dae
cmp dword [0x41fed0], 1
je 0x419ef7
cmp edx, 0xfc
je 0x419f32
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x419deb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x419e2f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x41ca44
push ebp
call fcn.00417fa0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
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, 0x41ca24
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
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, dword [ebx + 0x42043c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0041a070
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x420750]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x419f0e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x42043c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub 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 ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x40158e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp], 0
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
sub esp, 0x10
mov ebx, eax
jmp 0x4015de
mov eax, ecx
mov edi, 4
cdq
idiv edi
mov edi, dword [ebp + 0x10]
mov al, byte [edi + edx]
mov edi, dword [ebp + 8]
xor al, byte [edi + ecx]
mov byte [ebx + ecx], al
inc ecx
cmp ecx, esi
jl 0x4015c4
mov dword [esp], ebx
call fcn.00401559
lea eax, [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x401550
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401648
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0x4473f0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ebx, eax
sub esp, 0x20
lea eax, [eax - 1]
cmp eax, 0xfffffffd
ja 0x40170b
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
push edx
push edx
lea edx, [ebp - 0x1c]
jne 0x4016fd
jmp 0x40170b
mov dword [esp + 0xc], edx
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x401701
mov eax, dword [ebp - 0x1c]
add edi, eax
sub esi, eax
test esi, esi
jg 0x4016cc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401732
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x4473f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [ebp - 0x1c]
mov esi, eax
sub esp, 0x1c
xor eax, eax
cmp esi, 0xffffffff
jne 0x4017c7
jmp 0x4017da
mov dword [esp + 0xc], edx
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x4017cb
mov eax, dword [ebp - 0x1c]
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x401796
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov dword [esp + 0x28], 0x5c
mov dword [esp + 0x24], 0x65
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x1c], 0x69
mov dword [esp + 0x18], 0x70
div ecx
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], 0x2e
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], 0x5c
mov dword [esp + 4], str._c_c_c_c_c_c_c_c_cMSSE__d_server
mov dword [esp], 0x4473f0
mov dword [esp + 0x2c], edx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x401713
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], 0
sub esp, 0x18
leave
jmp fcn.004017e2

Function at 0x401e50
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00401eb0
Function at 0x4023a0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x4023b0
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x4023ad
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x402970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4473c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4473dc]
sub esp, 4
test ebx, ebx
je 0x4029c5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4029be
test esi, esi
je 0x4029be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4029a0
mov dword [esp], 0x4473c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x30c24666
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x128e0763
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1002caf0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002cb2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1002cb26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1002cb30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1002cb16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1002cc00
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1002cc31
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1002cc31
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x1002cc31
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret