joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429c20
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x429c04
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x429c22
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
js 0x429c46
js 0x429c46
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x429c80
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x429c67
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x429c70
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x429c7a
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x429c5c
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x429be6
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x429ccd
dec eax
je 0x429cc4
sub eax, 3
je 0x429cbb
mov dword [ebp - 4], 0x40
jmp 0x429cea
mov dword [ebp - 4], 4
jmp 0x429cd0
mov dword [ebp - 4], 0x20
jmp 0x429cd0
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x429d1c
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x429c9c
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0042952d
mov esp, esp
adc eax, 0x1475fff7
push 1
push esi
call edi
mov eax, esi
jmp 0x429d28
Function at 0x429e24
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3c25b], al
inc dword [eax]
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0042953d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004294f2
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
cld
invalid
inc dword [eax]
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
cld
invalid
invalid
out dx, al
lea eax, [ebp - 0x3ec]
push eax
call fcn.0042953d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004294f2
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0042952d
scasd eax, dword es:[edi]
or dword [0xcca5804a], 0xfffffa
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0042953d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004294f2
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0042952d
xchg edi, eax
add bl, byte [ebx - 0x72]
and byte [ebp - 0x664], 0
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
invalid
invalid
invalid
Function at 0x431e4c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x469f58
cmp dword [edi], 0
jne 0x431ec8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x469f54]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x464b34
mov ecx, 2
call fcn.00448e30
mov edx, 0x431e24
lea eax, [esi + 5]
call fcn.00431e44
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00431e44
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x431e9d
mov dword [0x469f54], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x431fcc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43201c]
test si, 4
je 0x431fe0
or bl, 1
test si, 8
je 0x431fea
or bl, 4
test si, 1
je 0x431ff4
or bl, 8
test si, 2
je 0x431ffe
or bl, 0x10
test si, 0x10
je 0x432008
or bl, 0x20
push 0x12
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x432017
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x435e2c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x435fd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, 0x41694c
call fcn.00408898
mov edx, dword [ebp - 4]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 4]
add eax, 0x28
call fcn.0044983c
push 0
call sub.USER32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x435fa9
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.0042d7e0
test al, al
je 0x435f9c
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x435fe4
lea eax, [ebp - 0x254]
call fcn.0044c064
push eax
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x435f9c
xor eax, eax
push ebp
push 0x435f95
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x43601c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x435f7e
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00449998
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x2c]
jne 0x435f7e
mov eax, dword [ebp - 4]
add eax, 0x28
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00449998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435f9c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x435e9f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov byte [eax + 0x15], 0
mov dl, 1
call fcn.00418d04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435fda
lea eax, [ebp - 0x260]
call fcn.0044983c
ret

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

Disassembly:
push ecx
mov eax, dword [0x469f30]
cmp byte [eax + 0x80], 0
jne 0x436242
cmp dword [0x469f5c], 0
jne 0x43621e
call sub.KERNEL32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x4361a8
push eax
push 3
call sub.USER32.dll_SetWindowsHookExA
mov dword [0x469f5c], eax
cmp dword [0x469f60], 0
jne 0x436242
push esp
push 0
push 0
push 0x436158
push 0x3e8
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x469f60], eax
pop edx
ret
Function at 0x436244
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x469f5c], 0
je 0x436258
mov eax, dword [0x469f5c]
push eax
call sub.USER32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x469f5c], eax
cmp dword [0x469f60], 0
je 0x436275
push 0
mov eax, dword [0x469f60]
push eax
call sub.KERNEL32.dll_TerminateThread
xor eax, eax
mov dword [0x469f60], eax
ret

Function at 0x436314
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43632b
add esp, 0xfffffff0
call fcn.004493e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c3d4
mov dl, 1
mov eax, 0x416610
call fcn.00408898
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x416610
call fcn.00408898
mov dword [ebx + 0x84], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x80000018
mov dword [ebx + 0x54], 0x1f4
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x7d], 1
mov byte [ebx + 0x7e], 0
mov dl, 1
mov eax, 0x438850
call fcn.0043d7ac
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x436478
mov eax, dword [0x46a010]
push eax
call sub.USER32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043db48
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x437788
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46a010]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0044d1f4
test eax, eax
je 0x43640c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0044bac8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0044d21c
test eax, eax
je 0x436420
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00449998
cmp byte [0x46a034], 0
jne 0x436450
mov eax, ebx
call fcn.00436510
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43646f
call fcn.00449430
pop dword fs:[0]
add esp, 0xc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x436f14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x7f], 0
je 0x436f46
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call sub.USER32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0044991c
jmp 0x436f50
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.004498d0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x437960
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x437998
mov eax, esi
call fcn.0042ba30
test al, al
je 0x437998
mov eax, dword [ebx + 0x60]
call fcn.0042b898
push eax
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x437998
push 0
mov eax, dword [ebx + 0x60]
call fcn.0042b898
push eax
call sub.USER32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x438914
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x43891a
ret
Function at 0x43e544
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.0044983c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43e5a5
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x43e5a5
cmp byte [ebp - 0x102], 0
je 0x43e5a5
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00449998
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43f7c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x43f845
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x43f7f6
add word [ebp - 6], 0x2000
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x43f808
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x43f814
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0043f69c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43f839
push ebp
mov eax, dword [ebp - 4]
call fcn.0043f738
pop ecx
mov ebx, eax
cmp bl, 2
je 0x43f814
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448edc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x448f0b
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0044991c
jmp 0x448f29
call sub.KERNEL32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00448e70
mov edi, eax
test ebx, ebx
je 0x448f29
cmp dword [esi], 0
je 0x448f29
dec ebx
jmp 0x448f12
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x449108
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46505c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4491a0
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x449180
xor eax, eax
push ebp
push 0x449179
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 0x4491c0
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 0x449180
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x46505c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46505c], ax
mov esp, ebp
pop ebp
ret
Function at 0x44c274
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 0x44c2ad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0044991c
jmp 0x44c2b6
mov eax, ebx
mov edx, esi
call fcn.004498d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44c2c0
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 0x44c2e1
mov al, byte [esp]
jmp 0x44c2e3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4550ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.00454a38
test byte [ebp + 0xd], 0xc0
jne 0x4550d0
mov eax, dword [0x4682c8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4550dd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x45510a
je 0x45511c
sub ecx, 0x100
je 0x45512a
sub ecx, 0x100
je 0x455131
sub ecx, 0x100
je 0x455123
jmp 0x455138
sub ecx, 0x600
je 0x455131
sub ecx, 0x100
je 0x45511c
jmp 0x455138
mov edi, 1
jmp 0x45513d
mov edi, 2
jmp 0x45513d
mov edi, 4
jmp 0x45513d
mov edi, 5
jmp 0x45513d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x455164
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x468824]
test al, 0x80
je 0x45515d
mov ebx, 0x80
jmp 0x455176
mov ebx, 1
jmp 0x455176
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x455176
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x455188
je 0x455191
dec eax
je 0x45519a
jmp 0x4551a3
mov dword [ebp - 4], 0x80000000
jmp 0x4551b2
mov dword [ebp - 4], 0x40000000
jmp 0x4551b2
mov dword [ebp - 4], 0xc0000000
jmp 0x4551b2
push 1
call fcn.00454df8
pop ecx
mov ebx, eax
jmp 0x45529e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4551ce
sub eax, 0x10
je 0x4551d5
sub eax, 0x10
je 0x4551de
sub eax, 0x10
je 0x4551e7
jmp 0x4551e7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4551ee
mov dword [ebp - 8], 1
jmp 0x4551ee
mov dword [ebp - 8], 2
jmp 0x4551ee
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x455257
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x45524c
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x45524c
add ebx, 0xffffffb2
push ebx
call fcn.00454df8
pop ecx
mov ebx, eax
jmp 0x45529e
mov edi, esi
push edi
call fcn.00455010
pop ecx
test eax, eax
je 0x45526b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x455277
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00454b38
add esp, 8
mov ebx, eax
inc eax
jne 0x45529e
push 4
call fcn.00454df8
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
call fcn.00454a6c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a234
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x46973c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x45a2ec
cmp byte [0x45d1d6], 0
je 0x45a2a6
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00459bf4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45a28f
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00459bf4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45a28f
lea ebx, [ebp - 0x54]
jmp 0x45a290
inc ebx
call fcn.0045a1ec
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x45a30d
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x469740
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0044dbf0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x469743
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x45a30d
cmp dword [0x46973c], 0xffffffff
je 0x45a30d
mov eax, dword [0x46973c]
test eax, eax
je 0x45a30d
cmp byte [eax], 0
je 0x45a30d
push esi
push eax
call fcn.0045a39c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x1ada1d3b
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0xd110c54
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401d50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401d9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401d94
test esi, esi
je 0x401d94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d70
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4020a8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40200e
cmp eax, 4
jne 0x402030
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40201e
cmp edx, 4
je 0x40201e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401f80