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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447410]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4473f1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447400
or bl, 4
test esi, 0x20000000
je 0x44740b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44dab8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44daca
add esp, 0xfffffff0
call fcn.00403434
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ad04
mov eax, dword [0x46b6dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x44de5c
mov eax, dword [0x46b6ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x44de68
mov eax, ebx
call fcn.0044de74
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b30]
call fcn.004030f8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b30]
call fcn.004030f8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b30]
call fcn.004030f8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b30]
call fcn.004030f8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b30]
call fcn.004030f8
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, 0x44a290
push eax
push 0
push 0
mov eax, dword [0x46b928]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c730]
call fcn.0041db74
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c730]
call fcn.0041db74
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c730]
call fcn.0041db74
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e294
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e170
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e170
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e170
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44dc07
call fcn.0040348c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44df54
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 0x44e0ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e0e0
mov dl, 1
mov eax, dword [0x412194]
call fcn.004030f8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ee4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e0cf
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.0043bf60
test al, al
je 0x44e0c2
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, 0x44e110
lea eax, [ebp - 0x254]
call fcn.00408db0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e0c2
xor eax, eax
push ebp
push 0x44e0bb
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 0x44e148
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e0a4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404154
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 0x44e0a4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404154
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e0c2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44dfc5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004168bc
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 0x44e106
lea eax, [ebp - 0x260]
call fcn.00403ee4
ret

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

Disassembly:
push ecx
mov eax, dword [0x46cbb4]
cmp byte [eax + 0xa5], 0
jne 0x44eaa5
cmp dword [0x46cbcc], 0
jne 0x44ea66
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44e9f0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46cbcc], eax
cmp dword [0x46cbc8], 0
jne 0x44ea81
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46cbc8], eax
cmp dword [0x46cbd0], 0
jne 0x44eaa5
push esp
push 0
push 0
push 0x44e994
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x46cbd0], eax
pop edx
ret
Function at 0x44eb9c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ebb3
add esp, 0xfffffff0
call fcn.00403434
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ad04
mov eax, dword [0x46b900]
cmp word [eax + 2], 0
jne 0x44ebdb
mov eax, dword [0x46b900]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450274
mov eax, dword [0x46ba34]
cmp word [eax + 2], 0
jne 0x44ebf5
mov eax, dword [0x46ba34]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045046c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411b30]
call fcn.004030f8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411b30]
call fcn.004030f8
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], 0xff000018
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 [0x41cee0]
call fcn.00422b28
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44ed7c
mov eax, dword [0x46b794]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422ef8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x450a0c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46b794]
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.0040c534
test eax, eax
je 0x44ecea
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408790
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c55c
test eax, eax
je 0x44ecfe
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.00404154
mov eax, dword [0x46b588]
cmp byte [eax], 0
jne 0x44ed32
mov eax, ebx
call fcn.0044eea4
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.00450be8
mov eax, ebx
call fcn.004515ac
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ed72
call fcn.0040348c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f124
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46cbb4]
cmp dword [eax + 0x30], 0
je 0x44f1ce
cmp dword [ebx + 0x94], 0
jne 0x44f1c8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f0b4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f1c8
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 0x44f18e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f1c8
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.004141e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f19d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44fd30
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 0x44fd65
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.00403fd4
jmp 0x44fd72
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f38
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x450dc4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x450e05
mov eax, esi
call fcn.004376d4
test al, al
je 0x450e05
mov eax, dword [ebx + 0x84]
call fcn.004373d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x450e05
push 0
mov eax, dword [ebx + 0x84]
call fcn.004373d0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45f2e4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x45f2ec
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x45f4de
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x45f4f4
mov eax, esi
call fcn.0045d170
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403f38
lea ecx, [ebp - 0x10]
mov edx, 0x45f508
mov eax, esi
call fcn.0045d170
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403f38
lea ecx, [ebp - 0x14]
mov edx, 0x45f520
mov eax, esi
call fcn.0045d170
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403f38
lea ecx, [ebp - 0x18]
mov edx, 0x45f53c
mov eax, esi
call fcn.0045d170
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403f38
lea ecx, [ebp - 0x1c]
mov edx, 0x45f558
mov eax, esi
call fcn.0045d170
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403f38
lea ecx, [ebp - 0x24]
mov edx, 0x45f570
mov eax, esi
call fcn.0045d170
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407d24
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040826c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x45f588
mov eax, esi
call fcn.0045d170
mov eax, dword [ebp - 0x28]
call fcn.00456c48
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x45f598
mov eax, esi
call fcn.0045d170
mov eax, dword [ebp - 0x2c]
call fcn.00456c48
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x45f5b0
mov eax, esi
call fcn.0045d170
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040826c
inc eax
je 0x45f481
lea ecx, [ebp - 0x34]
mov edx, 0x45f5b0
mov eax, esi
call fcn.0045d170
mov eax, dword [ebp - 0x34]
call fcn.00408230
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409700
fstp qword [ebp - 0x3c]
wait
call fcn.00409a64
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x45f49c
lea ecx, [ebp - 0x40]
mov edx, 0x45f5b0
mov eax, esi
call fcn.0045d170
mov eax, dword [ebp - 0x40]
call fcn.00456c48
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x45f5c0
mov eax, esi
call fcn.0045d170
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f4e5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403f08
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403f08
ret
Function at 0x466270
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4662ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00466260
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004558b4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004554b4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4662d1
lea eax, [ebp - 4]
call fcn.00403ee4
ret

Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40200c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x402052
sub ebx, 0x4235e0
mov ax, word [ebx + edi*2 + 0x4235e0]
mov ecx, esi
xor ax, word [edi*2 + 0x4235e0]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x402030
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x402db1
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x402df7
sub ebx, 0x425680
mov ax, word [ebx + edi*2 + 0x425680]
mov ecx, esi
xor ax, word [edi*2 + 0x425680]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x402dd5
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403733
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
cmp dword [0x47cc90], ebx
jne 0x403779
mov ecx, ebx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40375a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40375c
shr eax, 1
dec edx
jne 0x40374d
mov dword [ecx*4 + 0x47c890], eax
inc ecx
cmp ecx, 0x100
jl 0x403748
mov dword [0x47cc90], 1
mov eax, dword [ebp + 8]
or edx, 0xffffffff
xor ecx, ecx
lea eax, [edi + eax*2]
mov esi, eax
sub esi, edi
inc esi
shr esi, 1
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4037ae
movzx eax, byte [edi]
lea edi, [edi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x47c890]
inc ebx
cmp ebx, esi
jb 0x403794
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4037bb
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x70]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
add eax, 0x40
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], ebx
call fcn.00401663
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x70]
push dword [esp + 0x70]
xor edx, edx
mov dword [esp + 0x50], 0xf
cmp dword [esp + 0x88], 8
mov dword [esp + 0x24], edx
cmovae ecx, dword [esp + 0x74]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], edx
lea eax, [ecx + eax*2]
mov byte [esp + 0x3c], dl
lea ecx, [esp + 0x74]
cmovae ecx, dword [esp + 0x74]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0040397d
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.00402a8a
cmp dword [esp + 0x64], 8
lea edx, [esp + 0x50]
push dword [esp + 0x60]
cmovae edx, dword [esp + 0x54]
call fcn.00403733
push 0
push 1
lea ecx, [esp + 0x58]
mov esi, eax
call fcn.0040193d
xor edx, edx
mov ecx, 0x98967f
mov eax, esi
div ecx
lea ecx, [esp + 0x14]
inc edx
mov dword [esp + 0x14], edx
call fcn.0040125f
cmp dword [esp + 0x4c], 0x10
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x48]
cmovae ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
add eax, ecx
cmp dword [esp + 0x4c], 0x10
lea ecx, [esp + 0x38]
cmovae ecx, dword [esp + 0x38]
sub eax, ecx
push eax
push ecx
push ebp
call fcn.0040c320
add esp, 0xc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2c]
call fcn.004014f9
and dword [ebx + 0x10], 0
xor eax, eax
mov edi, dword [esp + 0x20]
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, dword [esp + 0x24]
sub eax, edi
push 0
mov dword [esp + 0x20], eax
pop esi
je 0x403907
mov ebp, ebx
mov bl, byte [edi + esi]
lea ecx, [esp + 0x14]
call fcn.0040125f
xor al, bl
mov ecx, ebp
movzx eax, al
push eax
call fcn.00402250
inc esi
cmp esi, dword [esp + 0x1c]
jb 0x4038df
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
xor esi, esi
lea ecx, [esp + 0x38]
push esi
push 1
call fcn.004017dc
test edi, edi
je 0x403920
push edi
call fcn.0040cd92
pop ecx
test ebp, ebp
je 0x40392b
push ebp
call fcn.0040cd92
pop ecx
push esi
push 1
lea ecx, [esp + 0x78]
call fcn.0040193d
push esi
push 1
lea ecx, [esp + 0x90]
call fcn.0040193d
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x5c
ret 0x30
Function at 0x405b3b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x405b81
sub ebx, 0x426400
mov ax, word [ebx + edi*2 + 0x426400]
mov ecx, esi
xor ax, word [edi*2 + 0x426400]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x405b5f
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405c39
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp byte [0x47c874], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x405cde
push 7
mov edx, 0x4427ac
lea ecx, [ebp - 0x34]
call fcn.00405b3b
cmp dword [eax + 0x14], 8
jb 0x405c68
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 1
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.0040193d
test esi, esi
je 0x405cde
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00405b89
push 0x426804
call fcn.0040c970
pop ecx
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00409064
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 4]
push ebx
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.004017dc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405ce5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov edx, 0x42b320
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x18]
push 0x32
call fcn.00405b3b
cmp dword [eax + 0x14], 8
jb 0x405d0a
mov eax, dword [eax]
sub esp, 0x18
mov esi, ebx
push 6
pop ecx
mov edi, esp
push eax
lea eax, [ebp - 0x118]
push 0x7f
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00405b1f
add esp, 0x24
lea ecx, [ebp - 0x18]
xor esi, esi
xor edi, edi
inc edi
push esi
push edi
call fcn.0040193d
xor eax, eax
mov dword [ebp - 4], 7
mov word [ebp - 0x18], ax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x118]
mov dword [ebp - 8], esi
push eax
call fcn.0040181e
lea ecx, [ebp - 0x18]
call fcn.00405c39
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040193d
push 9
mov edx, 0x468030
lea ecx, [ebp - 0x18]
call fcn.00405b3b
cmp dword [eax + 0x14], 8
jb 0x405d7f
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x405d87
mov ebx, dword [ebx]
push 0x40040
push eax
push ebx
push esi
call dword [0x47c4c0]
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040193d
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405da7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, 0x468030
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
push 9
call fcn.00405b3b
cmp dword [eax + 0x14], 8
jb 0x405dc7
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x405dcf
mov esi, dword [esi]
push 0x40010
push eax
push esi
push 0
call dword [0x47c4c0]
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.0040193d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4094cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x409512
sub ebx, 0x426550
mov ax, word [ebx + edi*2 + 0x426550]
mov ecx, esi
xor ax, word [edi*2 + 0x426550]
movzx eax, ax
push eax
call fcn.00402250
inc edi
cmp edi, dword [esp + 0x10]
jl 0x4094f0
pop edi
mov eax, esi
pop esi
pop ebx
ret 4