joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b9b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a80b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x51db38
lea ecx, [esp + 4]
call fcn.004989c5
push 0x4db238
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.004989c5
push 0x4db234
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.004989c5
push 0x4db230
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.004989c5
push 0x4db22c
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.004989c5
push 0x4db228
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.004989c5
push 0x4db224
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.004989c5
push 0x4db220
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.004989c5
push 0x4db21c
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.004989c5
push 0x4db218
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.004989c5
push 0x4db214
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.004989c5
push 0x4db210
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.004989c5
push 0x4db20c
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.004989c5
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x46bae0
cmp eax, 0xc
jle 0x46bae0
mov ecx, dword [esp + 0x48]
push 0x51db38
call fcn.00498a94
jmp 0x46baee
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.00498a44
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.00498957
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.00498957
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.00498957
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.00498957
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.00498957
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.00498957
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.00498957
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.00498957
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.00498957
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.00498957
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.00498957
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.00498957
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00498957
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x472280
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x51dc60]
xor edx, edx
cmp eax, edx
jne 0x4722a6
xor eax, eax
mov byte [eax + 0x51db60], al
inc eax
cmp eax, 0x100
jl 0x47228e
mov dword [0x51dc60], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x51db60
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x472337
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47230a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4722d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4723b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x472403
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4723ea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x478d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a894e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004796b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4ba884
call fcn.00498698
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x478e23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00498698
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x478e1c
push 0
mov ecx, eax
call fcn.0046feb0
mov dword [esi + 0xc], eax
jmp 0x478e25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x478e25
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x49acfb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49ad33
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00498db2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00498d8a
jmp 0x49ad3f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49c3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49c432
call fcn.004a2077
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49c432
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49c429
xor eax, eax
jmp 0x49c43a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049c440
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a25a7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a25d5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a25f3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a250d
jmp 0x4a25f3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a25f3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a250d
test edi, edi
mov eax, edi
jne 0x4a25dd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001330
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1000136c
mov eax, dword [section.L_sectio]
test eax, eax
jne 0x10001367
mov eax, dword [0x1000c304]
push 0
push eax
push 0x10001110
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [section.L_sectio], eax
je 0x10001367
mov eax, 1
ret 4
xor eax, eax
ret 4
mov ecx, dword [section.L_sectio]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
ret 4

Function at 0x10001510
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
mov eax, 0x4020
call fcn.10006220
mov ecx, dword [esp + 0x4024]
push edi
lea eax, [esp + 4]
push 0x20
push eax
push ecx
call fcn.10001600
mov edx, dword [esp + 0x4038]
add esp, 0xc
test edx, edx
je 0x10001582
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0x2000
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2028]
push ecx
push eax
push edx
call fcn.100015d0
add esp, 0x10
lea ecx, [esp + 0x2024]
lea edx, [esp + 4]
lea eax, [esp + 0x24]
push ecx
push edx
push str.1_s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x1000159a
lea ecx, [esp + 4]
lea edx, [esp + 0x24]
push ecx
push str.1_s_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x1000b020]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
pop edi
add esp, 0x4020
ret
Function at 0x10001a30
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10007228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
push str._AutoGive..............
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1000b024]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov eax, dword [eax*4 + 0x1000b348]
push ebx
push 4
push ecx
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call ebp
mov eax, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x14]
push 4
push edx
push eax
call esi
push eax
call ebp
mov edx, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x2c]
push 4
add edx, 8
push ecx
push edx
call esi
push eax
call ebp
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], bl
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000b024]
push ebx
stosb byte es:[edi], al
mov edx, dword [ecx*4 + 0x1000b1b8]
lea eax, [esp + 0x18]
push 4
push eax
push edx
mov dword [esp + 0x24], ebx
call esi
push eax
call ebp
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10001c14
push ebx
lea ecx, [esp + 0x14]
push 4
add eax, 0x158
push ecx
push eax
call esi
push eax
call ebp
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x28]
push 4
add eax, 0xfffffffc
push edx
push eax
call esi
push eax
call ebp
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x3c]
push ecx
push edx
push eax
call esi
push eax
call ebp
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x38]
mov dword [esp + 0x74], ebx
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x30]
push str._X__X__d__s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 2
push ecx
mov ecx, dword [0x1000c35c]
push 0x508
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x20]
push str._s__s
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x38]
xor edx, edx
push ebx
push ebx
mov dword [esp + 0x48], edx
push ebx
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], edx
push 0x419
lea ecx, [esp + 0x50]
push ecx
call fcn.10001c30
add esp, 0x28
lea ecx, [esp + 0x18]
push ebx
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x2c]
push eax
push edx
call fcn.10001510
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 1
call fcn.10005d94
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], bl
call fcn.10005d94
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], 0xffffffff
call fcn.10005d94
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret
Function at 0x100063f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10006461
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10006461
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000644a
jmp 0x10006461
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40ce09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40ce13
repz ret
jmp fcn.00413639

Function at 0x413b7e
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.004104e0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ce0
push eax
call fcn.0041046e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041046e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041046e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c87
cmp dword [0x423e2c], ebx
je 0x413c87
push eax
call fcn.004104e9
push dword [0x423e2c]
mov esi, eax
call fcn.004104e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c87
test edi, edi
je 0x413c87
call esi
test eax, eax
je 0x413c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c7e
test byte [ebp - 0xc], 1
jne 0x413c87
or dword [ebp + 0x10], 0x200000
jmp 0x413cc0
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413cc0
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413cc0
push eax
call fcn.004104e9
pop ecx
test eax, eax
je 0x413cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104e9
pop ecx
test eax, eax
je 0x413ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x40abd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46d81c], eax
pop edi
pop esi
pop ebp
ret

Function at 0x40ac70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x24], 0
jmp 0x40ace2
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x3c]
jae 0x40ad5e
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403b60
push 0x14d
lea edx, [ebp - 0x1c]
push edx
call fcn.0040b250
add esp, 8
cmp eax, dword [ebp + 0xc]
jne 0x40ad48
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
mov ax, word [ecx + edx*2]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 0x20]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40ad5e
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40acd9
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411026
mov esp, ebp
pop ebp
ret
Function at 0x411671
Capabilities:
Parse pe header

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

Function at 0x41e1ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4323c8
push 0x4323c0
push str.FlsAlloc
push 0x1e
call fcn.0041e059
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e220
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e194]
call esi
jmp 0x41e226
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41e26a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4323d8
push 0x4323d0
push str.FlsGetValue
push 0x20
call fcn.0041e059
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41e2a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x420d88
Capabilities:
Read file on windows

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

Function at 0x420d93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420bb9
Function at 0x421fcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00411a10
mov eax, dword [0x43d100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041f781
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42200f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42216b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042d210
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43f7e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004223f3
mov ecx, dword [esi*4 + 0x43f7e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422164
cmp eax, dword [edi + ecx + 0x24]
jne 0x422164
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422164
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004223f3
add esp, 0x14
test edx, edx
jl 0x422164
jg 0x4220da
test eax, eax
jb 0x422164
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422164
jl 0x4220f4
cmp dword [ebp - 0x1008], eax
ja 0x422164
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x422112
test ebx, ebx
je 0x42214b
cmp ecx, edi
jae 0x42214b
mov al, byte [ecx]
cmp al, 0xd
jne 0x42212c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x422138
cmp byte [ecx + 1], 0xa
jne 0x422138
inc ecx
jmp 0x422138
movzx eax, al
movsx eax, byte [eax + 0x43da40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x422112
cmp edx, ebx
jne 0x422112
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422169
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00411026
leave
ret
Function at 0x42572d
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 0x4257ca
push ebx
push esi
call fcn.004256f6
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.0042437b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425777
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4257c9
push edi
push eax
call fcn.0041e81f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x425797
call fcn.0041da1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4257c8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042437b
add esp, 0x20
test eax, eax
jne 0x4257b6
push edi
call fcn.0041da1b
jmp 0x4257be
push ebx
call fcn.0041da1b
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