joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dfb80
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x5aa464]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x4e8]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4dfc06
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.004b40d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4dfc41
push str.Received_too_short_packet
push edi
call fcn.004c6d30
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00509444
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4dfc62
jmp dword [ecx*4 + 0x4dfd6c]
cmp edx, 4
jle case.0x4dfc62.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4dfc62.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.004c6c10
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4dfcc6
push 5
push esi
call fcn.004e04c0
add esp, 8
mov eax, ebx
jmp 0x4dfc28
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.004d2cb0
jmp 0x4dfd41
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x56e4c0
push edi
call fcn.004c6e00
jmp 0x4dfd41
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004df910
add esp, 0xc
test eax, eax
je case.0x4dfc62.4
jmp 0x4dfc28
push str.Internal_error:_Unexpected_packet
push 0x56f02c
push edi
call fcn.004c6d30
add esp, 0xc
push ebp
call fcn.004d2f10
add esp, 4
test eax, eax
je 0x4dfc26
push 5
push esi
call fcn.004e04c0
add esp, 8
mov eax, 0x2a
jmp 0x4dfc28
Function at 0x4e6ec0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5aa464]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00536343
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4e6f25
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4e6f25
lea eax, [esp]
push eax
call dword [0x5aa36c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00509444
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.00509444
add esp, 0x108
ret
Function at 0x4ea9d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4ea9fb
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4ea9ea
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4eaa30
cmp dword [esi + 8], 0
jne 0x4eaa1e
push 0x592074
push dword [eax + 8]
call fcn.00526e1e
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4eaa1e
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.0052a7cb
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4eaa52
mov eax, dword [esi + 8]
test eax, eax
je 0x4eaa4c
push eax
call fcn.00526ef2
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4eed40
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4eed50
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x5aa360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4eed77
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4eed90
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4eed80
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4eee0a
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4eedfe
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x5aa364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4eee30
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x24
mov eax, dword [0x5aa464]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4eeed4
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.004eef40
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004f3d80
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4eeee7
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00509444
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.00509444
add esp, 0x24
ret
Function at 0x4f4820
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x5aa360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4f4847
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4f488f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4f4893
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4f48f5
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4f48b4
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4f4927
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x57a0c8
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x57a0c9
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4f4900
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x50daa6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5404ca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00540349

Function at 0x5472d9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00546f99

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 0x1000eaa3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000eae2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000eae2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000eae2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000eae2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000eae2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001175f
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 0x100117fc
push ebx
push esi
call fcn.10011728
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.100116bc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100117a9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100117fb
push edi
push eax
call fcn.1001271a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100117c9
call fcn.10010204
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100117fa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100116bc
add esp, 0x20
test eax, eax
jne 0x100117e8
push edi
call fcn.10010204
jmp 0x100117f0
push ebx
call fcn.10010204
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 0x10011a69
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019888
push 0x10019880
push str.FlsAlloc
push 0x1f
call fcn.10011985
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011a9d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
jmp 0x10011aa3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10011ae7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10019898
push 0x10019890
push str.FlsGetValue
push 0x21
call fcn.10011985
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011b1e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10011b26
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100198a0
push 0x10019898
push str.FlsSetValue
push 0x22
call fcn.10011985
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10011b60
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10018150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100171e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001720d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001720d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x3013747b
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x301fa490
call fcn.301376d6
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3027f948
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x3013721a
cmp eax, esi
jne 0x3013720d
xor esi, esi
inc esi
mov ebx, esi
jmp 0x3013721d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x301371f4
xor esi, esi
inc esi
mov eax, dword [0x3027f944]
cmp eax, esi
jne 0x30137230
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3013725f
mov eax, dword [0x3027f944]
test eax, eax
jne 0x30137259
mov dword [0x3027f944], esi
push 0x300019b4
push 0x300019a8
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x3013725f
jmp 0x30137387
mov dword [0x3027f308], esi
mov eax, dword [0x3027f944]
cmp eax, esi
jne 0x30137283
push 0x300019a4
push 0x300018f8
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3027f944], 2
test ebx, ebx
jne 0x3013728f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3027f954], 0
je 0x301372b3
push 0x3027f954
call fcn.30137acd
pop ecx
test eax, eax
je 0x301372b3
push 0
push 2
push 0
call dword [0x3027f954]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x3013730f
test al, al
je 0x301372cd
cmp dword [ebp - 0x1c], 0
jne 0x3013730f
mov al, byte [esi]
test al, al
je 0x301372dd
cmp al, 0x20
ja 0x301372dd
inc esi
mov dword [ebp - 0x20], esi
jmp 0x301372cd
test byte [ebp - 0x3c], 1
je 0x301372e9
movzx eax, word [ebp - 0x38]
jmp 0x301372ec
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x3027f304], eax
cmp dword [0x3027f2f8], 0
jne 0x30137363
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x3013731e
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30137331
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x301372ba
cmp dword [0x3027f308], 0
jne 0x30137372
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3027f304]
jmp 0x30137393
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.3013771b
ret
call fcn.30136b1d
jmp 0x301371ba
Function at 0x401e60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov esi, eax
test esi, esi
jne 0x401e91
push str.calloc
call dword [sym.imp.MSVCRT.dll_perror]
add esp, 4
push 1
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
mov eax, esi
pop esi
pop ebx
ret

Function at 0x402120
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
lea ecx, [esp + 8]
push esi
push edi
push ebp
xor edi, edi
push eax
mov ebx, dword [esp + 0x24]
push edi
mov esi, dword [esp + 0x24]
push ecx
push edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push esi
call ebp
test eax, eax
jne 0x402181
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x402181
mov eax, dword [esp + 0x10]
push eax
call fcn.00401e60
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
je 0x402181
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor edi, edi
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x402360
Capabilities:
Terminate process

Disassembly:
push ebx
call dword [sym.imp.MSVCRT.dll___p__environ]
mov eax, dword [eax]
mov ecx, dword [sym.imp.MSVCRT.dll___initenv]
mov dword [ecx], eax
call dword [sym.imp.MSVCRT.dll___p___argv]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll___p___argc]
mov ecx, dword [eax]
push ecx
call section..text
add esp, 8
push eax
call dword [sym.imp.MSVCRT.dll_exit]
add esp, 4
pop ebx
ret 0x10
Function at 0x4023c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4025a4
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404908], 0xffffffff
mov eax, dword [0x404908]
mov dword [0x40490c], eax
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4048ec]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4048e8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404910], eax
call fcn.004023a0
cmp dword [0x4048e4], 0
jne 0x402450
push 0x4025a0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402580
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
add esp, 8
mov eax, dword [0x4048e0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x4048dc]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4024c4
mov al, byte [ebp - 0x40]
inc esi
mov al, byte [esi]
test al, al
je 0x4024bc
cmp al, 0x22
jne 0x4024b1
cmp byte [esi], 0x22
jne 0x4024ce
inc esi
jmp 0x4024ce
cmp al, 0x20
jbe 0x4024ce
inc esi
cmp byte [esi], 0x20
ja 0x4024c8
cmp byte [esi], 0
je 0x4024de
cmp byte [esi], 0x20
ja 0x4024de
inc esi
cmp byte [esi], 0
jne 0x4024d3
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x5c], 1
mov eax, 0xa
je 0x402505
mov eax, dword [ebp - 0x58]
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 dword [sym.imp.MSVCRT.dll_exit]
jmp 0x402548
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 0x1001e8b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100c90cc
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x100f4034]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 4]
mov dword [esi], 0x100d7d28
call dword [0x100d4314]
xor ebx, ebx
mov dword [esp + 0x14], ebx
call fcn.1001f1e0
mov dword [esi + 0x24], eax
mov byte [eax + 0x11], 1
mov eax, dword [esi + 0x24]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x24]
mov dword [eax], eax
mov eax, dword [esi + 0x24]
mov dword [eax + 8], eax
mov dword [esi + 0x28], ebx
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2d], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x100216b0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0xc], 0
push edi
je 0x10021836
mov eax, dword [esi + 8]
mov ebx, dword [eax]
add esi, 4
mov edi, esi
mov ecx, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], ecx

Function at 0x100217a0
Capabilities:
Enumerate pe sections

Disassembly:
test edi, edi
je 0x100216ed
cmp edi, esi
je 0x100216f3
call dword [0x100d4440]
cmp ebx, dword [esp + 0x24]
je 0x100217ef
test edi, edi
jne 0x10021707
call dword [0x100d4440]
cmp ebx, dword [edi + 4]
jne 0x10021712
call dword [0x100d4440]
mov edi, dword [ebp + 8]
movzx ebx, word [ebx + 0x18]
mov ecx, dword [edi + 0x1c]
add edi, 0x10
test ecx, ecx
mov dword [esp + 0x10], ebx
movzx esi, bx
je 0x10021736
mov eax, dword [edi + 0x10]
sub eax, ecx
sar eax, 4
cmp esi, eax
jb 0x1002173c
call dword [0x100d4440]
shl esi, 4
add esi, dword [edi + 0xc]
cmp bx, word [edi + 4]
jne fcn.10021750
mov dx, word [esi + 2]
mov word [edi + 4], dx
mov word [ebx + edx + 2], ax
mov cx, word [edi + 2]
cmp cx, word [edi]
mov eax, dword [esp + 0x10]
jne 0x100217bb
mov word [esi + 2], ax
mov word [esi], ax
jmp 0x100217cb
movzx edx, word [edi + 6]
push edx
push eax
push esi
call fcn.10022280
mov eax, dword [esp + 0x10]
add word [edi + 2], 0xffff
lea esi, [esp + 0x18]
mov word [edi + 6], ax
call 0x10044a20
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x100216e5
mov ecx, dword [esi + 4]
mov ebx, dword [ecx + 4]
cmp byte [ebx + 0x21], 0
mov edi, ebx
jne 0x1002181e
lea ecx, [ecx]
mov edx, dword [edi + 8]
push edx
mov ecx, esi
call 0x100436f0
mov edi, dword [edi]
push ebx
call 0x100a119a
add esp, 4
cmp byte [edi + 0x21], 0
mov ebx, edi
je 0x10021800
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [eax], eax
mov esi, dword [esi + 4]
mov dword [esi + 8], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4