joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bfe8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45d290]
cmp byte [eax + 0xc], 0
je 0x43c155
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c14e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45ebbc], 0
jne 0x43c03c
push 0x43c15c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43c164
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebbc], eax
cmp dword [0x45ca64], 0
jne 0x43c137
push 0x43c174
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45ca64], eax
cmp dword [0x45ca64], 0
je 0x43c137
push 0x43c180
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebc0], eax
push 0x43c190
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebc4], eax
push 0x43c1a4
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebc8], eax
push 0x43c1bc
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebcc], eax
push 0x43c1d4
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebd0], eax
push 0x43c1e8
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebd4], eax
push 0x43c200
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebd8], eax
push 0x43c218
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebdc], eax
push 0x43c234
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebe0], eax
push 0x43c240
mov eax, dword [0x45ca64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45ebe4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c155
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43fd68
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.00404454
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43fdb7
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.004046bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447bf8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447c48]
test si, 4
je 0x447c0c
or bl, 1
test si, 8
je 0x447c16
or bl, 4
test si, 1
je 0x447c20
or bl, 8
test si, 2
je 0x447c2a
or bl, 0x10
test si, 0x10
je 0x447c34
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447c43
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447c4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447c84]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447c65
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447c74
or bl, 4
test esi, 0x20000000
je 0x447c7f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44e288
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44e29a
add esp, 0xfffffff0
call fcn.00403a4c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ef78
mov eax, dword [0x45cf50]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e62c
mov eax, dword [0x45cf60]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e638
mov eax, ebx
call fcn.0044e644
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414f44]
call fcn.004036d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414f44]
call fcn.004036d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414f44]
call fcn.004036d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414f44]
call fcn.004036d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414f44]
call fcn.004036d0
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, 0x44ab0c
push eax
push 0
push 0
mov eax, dword [0x45d0b0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420960]
call fcn.00421d64
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420960]
call fcn.00421d64
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420960]
call fcn.00421d64
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044ea64
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e940
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e940
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e940
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e3d7
call fcn.00403aa4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e724
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 0x44e8cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e8b0
mov dl, 1
mov eax, dword [0x415434]
call fcn.004036d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404454
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e89f
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.0043c348
test al, al
je 0x44e892
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, 0x44e8e0
lea eax, [ebp - 0x254]
call fcn.004094a0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e892
xor eax, eax
push ebp
push 0x44e88b
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 0x44e918
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e874
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046bc
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 0x44e874
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e892
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e795
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041957c
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 0x44e8d6
lea eax, [ebp - 0x260]
call fcn.00404454
ret

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

Disassembly:
push ecx
mov eax, dword [0x45ec00]
cmp byte [eax + 0xa5], 0
jne 0x44f275
cmp dword [0x45ec18], 0
jne 0x44f236
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f1c0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45ec18], eax
cmp dword [0x45ec14], 0
jne 0x44f251
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45ec14], eax
cmp dword [0x45ec1c], 0
jne 0x44f275
push esp
push 0
push 0
push 0x44f164
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45ec1c], eax
pop edx
ret
Function at 0x44f36c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f383
add esp, 0xfffffff0
call fcn.00403a4c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ef78
mov eax, dword [0x45d0a0]
cmp word [eax + 2], 0
jne 0x44f3ab
mov eax, dword [0x45d0a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004509a0
mov eax, dword [0x45d130]
cmp word [eax + 2], 0
jne 0x44f3c5
mov eax, dword [0x45d130]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450b98
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414f44]
call fcn.004036d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414f44]
call fcn.004036d0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x421110]
call fcn.00426e88
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f54c
mov eax, dword [0x45cfb4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427258
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451118
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45cfb4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040cb1c
test eax, eax
je 0x44f4ba
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408dfc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb44
test eax, eax
je 0x44f4ce
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004046bc
mov eax, dword [0x45ceac]
cmp byte [eax], 0
jne 0x44f502
mov eax, ebx
call fcn.0044f674
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004512f4
mov eax, ebx
call fcn.00451c34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f542
call fcn.00403aa4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f8e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45ec00]
cmp dword [eax + 0x30], 0
je 0x44f992
cmp dword [ebx + 0x94], 0
jne 0x44f98c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f878
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f98c
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 0x44f952
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f98c
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.004175e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f961
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450470
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 0x4504a5
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.00404544
jmp 0x4504b2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044a8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4514d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451511
mov eax, esi
call fcn.00437ac4
test al, al
je 0x451511
mov eax, dword [ebx + 0x84]
call fcn.004377c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451511
push 0
mov eax, dword [ebx + 0x84]
call fcn.004377c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45a2c8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004048f4
mov eax, dword [ebp - 8]
call fcn.004048f4
lea eax, [ebp - 0x160]
mov edx, dword [0x407774]
call fcn.00404e5c
xor eax, eax
push ebp
push 0x45a564
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040470c
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x45a367
lea eax, [ebp - 4]
mov edx, 0x45a57c
call fcn.00404714
mov eax, dword [ebp - 8]
call fcn.0040470c
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x45a386
lea eax, [ebp - 8]
mov edx, 0x45a57c
call fcn.00404714
mov eax, dword [ebp - 4]
call fcn.004089dc
test al, al
je 0x45a528
mov eax, dword [ebp - 8]
call fcn.00408a00
lea eax, [ebp - 0x164]
mov ecx, 0x45a588
mov edx, dword [ebp - 4]
call fcn.00404758
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.00408b48
test eax, eax
jne 0x45a528
mov eax, dword [ebp - 0x154]
mov edx, 0x45a594
call fcn.00404850
je 0x45a50a
mov eax, dword [ebp - 0x154]
mov edx, 0x45a5a0
call fcn.00404850
je 0x45a50a
lea eax, [ebp - 0x168]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404758
mov eax, dword [ebp - 0x168]
call fcn.004089dc
test al, al
je 0x45a460
lea eax, [ebp - 0x16c]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00404758
mov eax, dword [ebp - 0x16c]
push eax
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404758
mov edx, dword [ebp - 0x170]
mov eax, esi
pop ecx
call fcn.0045a2c8
jmp 0x45a50a
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404758
mov edx, dword [ebp - 0x178]
lea ecx, [ebp - 0x174]
mov eax, esi
call fcn.0045a5a4
mov eax, dword [ebp - 0x174]
push eax
lea eax, [ebp - 0x180]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00404758
mov edx, dword [ebp - 0x180]
lea ecx, [ebp - 0x17c]
mov eax, esi
call fcn.0045a5a4
mov edx, dword [ebp - 0x17c]
pop eax
call fcn.00404850
je 0x45a50a
push 0
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.00404758
mov eax, dword [ebp - 0x184]
call fcn.00404904
push eax
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 4]
call fcn.00404758
mov eax, dword [ebp - 0x188]
call fcn.00404904
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x160]
call fcn.00408b98
test eax, eax
je 0x45a3cf
lea eax, [ebp - 0x160]
call fcn.00408bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a56b
lea eax, [ebp - 0x188]
mov edx, 0xa
call fcn.00404478
lea eax, [ebp - 0x160]
mov edx, dword [0x407774]
call fcn.00404f20
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404478
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408600
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x408622
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x4098ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4098bb
pop dword [ebp - 0x2c]
mov eax, 0x43e95ede
add eax, 0xbc5739dd
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x39b19
push 0
mov eax, 0x561b2221
sub eax, 0x55da4101
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0xcfcbe8b1
add ecx, 0x3034605e
xor ebx, ebx
add ebx, eax
mov esi, 0x417800
add esi, dword [ebp - 0x2c]
mov edi, 0x3a7595e5
sub edi, 0x2b794244
xor dword [ebp - 0x20], 0xee06e650
mov edx, dword [esi]
xor dword [ebp - 0x1c], 0xfc7607e0
add edx, edi
xor dword [ebp - 0x18], 0xab57ec78
mov dword [ebx], edx
sub dword [ebp - 0x14], esi
add ebx, 0xc5e505be
add ebx, 0x3a1afa46
add esi, 4
loop 0x409916
add eax, 0xf214054d
add eax, 0xded11c2
mov ebx, eax
add eax, 0xad665573
sub eax, 0xad66556e
mov ecx, 0x855870b7
add ecx, 0x7ae78f49
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x414d3a
Capabilities:
Terminate process

Disassembly:
call fcn.00561000
jmp 0x414d3a
push 0x58
push 0x426768
call fcn.004155f8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x42db24
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x414d8c
cmp eax, esi
jne 0x414d7f
xor esi, esi
inc esi
mov edi, esi
jmp 0x414d8f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414d63
xor esi, esi
inc esi
cmp dword [0x42db28], esi
jne 0x414da1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x414ddb
cmp dword [0x42db28], ebx
jne 0x414dd5
mov dword [0x42db28], esi
push 0x40101c
push 0x401010
call fcn.00414f19
pop ecx
pop ecx
test eax, eax
je 0x414ddb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x414f09
mov dword [0x42d78c], esi
cmp dword [0x42db28], esi
jne 0x414dfe
push 0x40100c
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x42db28], 2
test edi, edi
jne 0x414e0b
xor eax, eax
mov ecx, 0x42db24
xchg dword [ecx], eax
cmp dword [0x42db2c], 0
je 0x414e37
push 0x42db2c
call fcn.00415450
pop ecx
test eax, eax
je 0x414e37
push ebx
push 2
push ebx
mov esi, dword [0x42db2c]
mov ecx, esi
call dword [0x42e3f4]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x414e95
test cl, cl
je 0x414e64
test edi, edi
jne 0x414e95
test cl, cl
je 0x414e64
cmp cl, 0x20
ja 0x414e64
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x414e53
test byte [ebp - 0x3c], 1
je 0x414e70
movzx eax, word [ebp - 0x38]
jmp 0x414e73
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x42d788], eax
cmp dword [0x42d7a0], 0
jne 0x414eee
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x414ea6
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x414eb9
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x414e44
cmp dword [0x42d78c], 0
jne 0x414f02
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x42d788]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x415334
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x426788
call fcn.004155f8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x415394
cmp eax, 0xffffffff
je 0x415394
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41538d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41538d
cmp edx, 0x10000000
jae 0x41538d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41538a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4