joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406960
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push esi
or esi, 0xffffffff
test eax, eax
je 0x406b15
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 8], ebx
je 0x406b14
mov eax, dword [0x40b0f8]
push ebp
push 0x1000
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x406b0c
push edi
nop
push 0
lea ecx, [esp + 0x20]
push ecx
push 0x1000
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edx, dword [esp + 0x1c]
cmp edx, 8
mov eax, ebp
mov edi, edx
jb 0x406ace
mov ebp, edx
shr ebp, 3
lea ebx, [ebx]
movzx ebx, byte [eax]
xor ebx, esi
and ebx, 0xff
add eax, 1
mov ecx, esi
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax]
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
and ebx, 0xff
add eax, 1
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
xor ebx, ecx
add eax, 1
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
movzx ebx, byte [eax + 1]
add eax, 1
xor ebx, ecx
and ebx, 0xff
shr ecx, 8
xor ecx, dword [ebx*4 + 0x4090e8]
add eax, 1
sub edi, 8
sub ebp, 1
mov esi, ecx
jne 0x4069f0
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test edi, edi
je 0x406aef
movzx ecx, byte [eax]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4090e8]
add eax, 1
sub edi, 1
jne 0x406ad2
cmp edx, 0x1000
je 0x4069c0
mov edx, dword [0x40b0f8]
push ebp
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
pop ebx
mov eax, esi
not eax
pop esi
add esp, 8
ret 4

Function at 0x406b20
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x406124
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40618a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004046d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403128
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406174
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406191
lea eax, [ebp - 0x10]
call fcn.00404464
ret

Function at 0x40b0c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b0fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404554
jmp 0x40b106
mov eax, ebx
mov edx, esi
call fcn.004044b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b110
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b131
mov al, byte [esp]
jmp 0x40b133
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b7c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b630
mov eax, dword [0x453f8c]
cmp byte [eax], 0
je 0x40b844
mov eax, dword [0x453dcc]
call fcn.00402f78
call fcn.00402bc4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004088b4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b88c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b87a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x453d80]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x455660]
call fcn.00405590
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x43732c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x454088]
cmp byte [eax + 0xc], 0
je 0x437499
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x437492
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x455af4], 0
jne 0x437380
push 0x4374a0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4374a8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455af4], eax
cmp dword [0x453aa4], 0
jne 0x43747b
push 0x4374b8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x453aa4], eax
cmp dword [0x453aa4], 0
je 0x43747b
push 0x4374c4
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455af8], eax
push 0x4374d4
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455afc], eax
push 0x4374e8
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b00], eax
push 0x437500
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b04], eax
push 0x437518
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b08], eax
push 0x43752c
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b0c], eax
push 0x437544
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b10], eax
push 0x43755c
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b14], eax
push 0x437578
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b18], eax
push 0x437584
mov eax, dword [0x453aa4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437499
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43b34c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404464
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43b39b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004046d4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442b44
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442b94]
test si, 4
je 0x442b58
or bl, 1
test si, 8
je 0x442b62
or bl, 4
test si, 1
je 0x442b6c
or bl, 8
test si, 2
je 0x442b76
or bl, 0x10
test si, 0x10
je 0x442b80
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442b8f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x442b98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x442bd0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442bb1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x442bc0
or bl, 4
test esi, 0x20000000
je 0x442bcb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x449294
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4492a6
add esp, 0xfffffff0
call fcn.00403a10
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419908
mov eax, dword [0x453d88]
mov dword [eax + 4], ebx
mov dword [eax], 0x449638
mov eax, dword [0x453d94]
mov dword [eax + 4], ebx
mov dword [eax], 0x449644
mov eax, ebx
call fcn.00449650
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b20]
call fcn.004036c0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x445a68
push eax
push 0
push 0
mov eax, dword [0x453ec0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b330]
call fcn.0041c798
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00449aa0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449968
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449968
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x449968
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4493e3
call fcn.00403a68
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44974c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4498f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4498d8
mov dl, 1
mov eax, dword [0x411f3c]
call fcn.004036c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404464
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4498c7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043768c
test al, al
je 0x4498ba
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x449908
lea eax, [ebp - 0x254]
call fcn.00408f28
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4498ba
xor eax, eax
push ebp
push 0x4498b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x449940
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44989c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046d4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44989c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498ba
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4497bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415aa0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4498fe
lea eax, [ebp - 0x260]
call fcn.00404464
ret

Function at 0x44a240
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x455b40]
cmp byte [eax + 0xa5], 0
jne 0x44a2b1
cmp dword [0x455b58], 0
jne 0x44a272
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44a1fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455b58], eax
cmp dword [0x455b54], 0
jne 0x44a28d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455b54], eax
cmp dword [0x455b5c], 0
jne 0x44a2b1
push esp
push 0
push 0
push 0x44a1a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455b5c], eax
pop edx
ret
Function at 0x44a944
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455b40]
cmp dword [eax + 0x30], 0
je 0x44a9ee
cmp dword [ebx + 0x94], 0
jne 0x44a9e8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44a8d4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44a9e8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44a9ae
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44a9e8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413e9c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44a9bd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44b54c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44b581
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404554
jmp 0x44b58e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044b8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44c51c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44c55d
mov eax, esi
call fcn.00432e44
test al, al
je 0x44c55d
mov eax, dword [ebx + 0x84]
call fcn.00432be4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44c55d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00432be4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401100
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Trying_to_find_the_process
push 0x433088
call fcn.004016a0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.004016a0
add esp, 8
mov dword [ebp - 0x134], eax
push 0x402a90
mov ecx, dword [ebp - 0x134]
call fcn.00404260
mov dword [ebp - 0x12c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0xffffffff
jne 0x40116e
xor eax, eax
jmp 0x4011d7
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4011c8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040ec10
add esp, 8
test eax, eax
jne 0x4011b1
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x4011d7
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401185
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409dab
mov esp, ebp
pop ebp
ret
Function at 0x4095a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4095ca
jl 0x4095c1
test edi, edi
jne 0x4095ca
xor eax, eax
xor edx, edx
jmp 0x40968b
cmp dword [ebx + 0x38], 0
je 0x4095df
push eax
push edi
push dword [ebp + 8]
call fcn.00409691
jmp 0x40968b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409626
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409626
cmp eax, edi
jb 0x409600
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ad50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40962c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409680
mov ecx, ebx
call fcn.00408df8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40966b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411fe9
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409680
jmp 0x40963e
test edx, edx
je 0x409680
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411fe9
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40ab85
Capabilities:
Parse pe header

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

Function at 0x4192ad
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b320
push 0x42b318
push str.FlsAlloc
push 0x1f
call fcn.00419118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4192e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x42715c]
call esi
jmp 0x4192e7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41932b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b330
push 0x42b328
push str.FlsGetValue
push 0x21
call fcn.00419118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419362
push dword [ebp + 8]
mov ecx, esi
call dword [0x42715c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41936a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b338
push 0x42b330
push str.FlsSetValue
push 0x22
call fcn.00419118
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4193a4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42715c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41b811
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040acf0
mov eax, dword [0x432040]
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.00418b1b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b853
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41b9af
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004255f0
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 + 0x433940]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041c80e
mov ecx, dword [esi*4 + 0x433940]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41b9a8
cmp eax, dword [ecx + edi + 0x24]
jne 0x41b9a8
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b9a8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c80e
add esp, 0x14
test edx, edx
jl 0x41b9a8
jg 0x41b91e
test eax, eax
jb 0x41b9a8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41b9a8
jl 0x41b938
cmp dword [ebp - 0x1008], eax
ja 0x41b9a8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b956
test ebx, ebx
je 0x41b98f
cmp ecx, edi
jae 0x41b98f
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b970
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b97c
cmp byte [ecx + 1], 0xa
jne 0x41b97c
inc ecx
jmp 0x41b97c
movzx eax, al
movsx eax, byte [eax + 0x432308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b956
cmp edx, ebx
jne 0x41b956
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41b9ad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409dab
leave
ret
Function at 0x41bca6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x433940]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bce6
cmp byte [ebx], 0xa
jne 0x41bce6
or byte [edi + eax + 0x28], 4
jmp 0x41bceb
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41bdea
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41bdcd
inc eax
cmp dl, 0xd
je 0x41bd17
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41bd3d
cmp eax, ecx
jae 0x41bd4b
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41bcff
jmp 0x41bdea
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bdc8
cmp dword [ebp - 0x10], 0
je 0x41bdc8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x433940]
test byte [eax + edi + 0x28], 0x48
je 0x41bda2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bd8d
mov byte [esi], dl
jmp 0x41bd9e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433940]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bdea
cmp byte [ebp - 1], 0xa
jne 0x41bdb1
cmp esi, ebx
jne 0x41bdb1
mov byte [esi], 0xa
jmp 0x41bde9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c82c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bdea
mov byte [esi], 0xd
jmp 0x41bde9
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x433940]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bde7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bdea
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret