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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46cdac]
cmp byte [eax + 0xc], 0
je 0x44e26d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e266
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x470548], 0
jne 0x44e154
push 0x44e274
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44e27c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470548], eax
cmp dword [0x46c644], 0
jne 0x44e24f
push 0x44e28c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46c644], eax
cmp dword [0x46c644], 0
je 0x44e24f
push 0x44e298
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47054c], eax
push 0x44e2a8
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470550], eax
push 0x44e2bc
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470554], eax
push 0x44e2d4
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470558], eax
push 0x44e2ec
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47055c], eax
push 0x44e300
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470560], eax
push 0x44e318
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470564], eax
push 0x44e330
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470568], eax
push 0x44e34c
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47056c], eax
push 0x44e358
mov eax, dword [0x46c644]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x470570], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e26d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4538dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453930]
test si, 4
je 0x4538f1
or bl, 1
test si, 8
je 0x4538fb
or bl, 4
test si, 1
je 0x453905
or bl, 8
test si, 2
je 0x45390f
or bl, 0x10
test si, 0x10
je 0x453919
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453928
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453934
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453970]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45394e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45395d
or bl, 4
test esi, 0x20000000
je 0x453968
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45b040
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b052
add esp, 0xfffffff0
call fcn.00403bf4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041de58
mov eax, dword [0x46ca1c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b3e4
mov eax, dword [0x46ca28]
mov dword [eax + 4], ebx
mov dword [eax], 0x45b3f0
mov eax, ebx
call fcn.0045b3fc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.004038a0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.004038a0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.004038a0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.004038a0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.004038a0
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, 0x456e78
push eax
push 0
push 0
mov eax, dword [0x46cb94]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x421a04]
call fcn.00423220
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x421a04]
call fcn.00423220
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x421a04]
call fcn.00423220
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045b82c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b6fc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b6fc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45b6fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b18f
call fcn.00403c4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45b4e0
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 0x45b68b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45b66c
mov dl, 1
mov eax, dword [0x416078]
call fcn.004038a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004046fc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45b65b
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.0044e45c
test al, al
je 0x45b64e
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, 0x45b69c
lea eax, [ebp - 0x254]
call fcn.00409ab4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45b64e
xor eax, eax
push ebp
push 0x45b647
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 0x45b6d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45b630
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040496c
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 0x45b630
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040496c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b64e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45b551
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00419d58
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 0x45b692
lea eax, [ebp - 0x260]
call fcn.004046fc
ret

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

Disassembly:
push ecx
mov eax, dword [0x470580]
cmp byte [eax + 0xad], 0
jne 0x45c075
cmp dword [0x470598], 0
jne 0x45c036
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45bfc0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470598], eax
cmp dword [0x470594], 0
jne 0x45c051
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470594], eax
cmp dword [0x47059c], 0
jne 0x45c075
push esp
push 0
push 0
push 0x45bf64
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47059c], eax
pop edx
ret
Function at 0x45c248
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45c25f
add esp, 0xfffffff0
call fcn.00403bf4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041de58
mov eax, dword [0x46cb7c]
cmp word [eax + 2], 0
jne 0x45c287
mov eax, dword [0x46cb7c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045dcf8
mov eax, dword [0x46cc34]
cmp word [eax + 2], 0
jne 0x45c2a1
mov eax, dword [0x46cc34]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045df04
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415c54]
call fcn.004038a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.004038a0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.004038a0
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4224dc]
call fcn.0042a0a8
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45c458
mov eax, dword [0x46ca88]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a47c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45e5c4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46ca88]
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.0040d2e4
test eax, eax
je 0x45c3a8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040946c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d318
test eax, eax
je 0x45c3bc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040496c
mov byte [ebx + 0xd4], 0
push ebx
push 0x45d858
call fcn.0041efd4
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46c954]
cmp byte [eax], 0
jne 0x45c40d
mov eax, ebx
call fcn.0045c59c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045e7a0
mov eax, ebx
call fcn.0045f300
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c44d
call fcn.00403c4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c81c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470580]
cmp dword [eax + 0x30], 0
je 0x45c8c6
cmp dword [ebx + 0x94], 0
jne 0x45c8c0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45c7ac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45c8c0
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 0x45c886
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45c8c0
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.00418000
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45c895
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45d5e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45d615
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.004047ec
jmp 0x45d622
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404750
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45e984
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45e9f2
mov eax, esi
call fcn.0044911c
test al, al
je 0x45e9f2
mov eax, dword [ebx + 0x84]
call fcn.00448d7c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45e9f2
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45e9e6
push 0
mov eax, dword [ebx + 0x84]
call fcn.00448d7c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00441164
jmp 0x45e9f2
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045e7c0
pop esi
pop ebx
ret
Function at 0x45f8e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40746c]
call fcn.0040516c
xor eax, eax
push ebp
push 0x45fa81
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46c798], 0
jne 0x45f93b
mov ecx, dword [0x46c968]
mov dl, 1
mov eax, dword [0x407a38]
call fcn.0040c560
call fcn.00404144
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.0040320c
mov eax, ebx
call fcn.0040503c
mov dword [ebp - 0x24], eax
mov esi, 0x45fa90
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406100
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.0040504c
test eax, eax
jle 0x45fa24
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45fa10
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.0040496c
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x45f9b6
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404984
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x45f9cc
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404984
mov eax, dword [ebp - 0x54]
call fcn.00404bc0
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.0040496c
mov eax, dword [ebp - 0x58]
call fcn.00404bc0
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x45fa12
xor eax, eax
test al, al
je 0x45fa1d
mov ebx, 0x15
jmp 0x45fa29
mov ebx, 0x10
jmp 0x45fa29
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x46c798]
call fcn.0045f764
mov eax, dword [ebp - 4]
call fcn.0045f764
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fa88
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404720
lea eax, [ebp - 0xc]
mov edx, dword [0x40746c]
call fcn.0040523c
ret
Function at 0x406de0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
or eax, 0xffffffff
test edx, edx
push esi
mov esi, dword [esp + 8]
je 0x406e12
push ebx
push edi
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ecx + edi*4 + 4]
sub edx, 1
add esi, 1
test edx, edx
jne 0x406df2
pop edi
pop ebx
not eax
pop esi
ret 8

Function at 0x406e40
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
lea ebx, [edi + 4]
lea ebx, [ebx]
push 8
push esi
mov ecx, edi
call fcn.00406da0
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
push 0x20
push eax
mov ecx, edi
call fcn.00406da0
mov dword [ebx], eax
add esi, 1
add ebx, 4
cmp esi, 0xff
jle 0x406e50
pop edi
pop esi
pop ebx
ret
Function at 0x407950
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x40795d
xor eax, eax
pop edi
ret
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x18]
xor ebx, ebx
lea ebx, [ebx]
cmp edi, 0x1000000
mov eax, 0x1000000
ja 0x40797f
mov eax, edi
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push ebp
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add esi, ecx
sub edi, ecx
add ebx, ecx
test eax, eax
je 0x4079ad
test ecx, ecx
je 0x4079ad
test edi, edi
ja 0x407970
pop esi
pop ebp
mov eax, ebx
pop ebx
pop edi
ret
Function at 0x40a670
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
shr eax, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
shr eax, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x421420], ecx
inc edx
cmp edx, 0x100
jb 0x40a672
ret

Function at 0x40a720
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, ecx
mov ecx, edx
jbe 0x40a74d
push edi
mov edi, edi
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edi, dword [edx*4 + 0x421420]
shr eax, 8
xor eax, edi
inc ecx
dec esi
jne 0x40a730
pop edi
pop esi
ret 4
Function at 0x40bc90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x40bca9
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x40bcd0
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40bced
jmp 0x40bce0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40bced
inc edi
cmp edi, edx
jb 0x40bce0
mov eax, edi
sub eax, ecx
cmp edi, edx
mov ecx, eax
jae 0x40bdf5
sub ecx, dword [esp + 0x1c]
cmp ecx, 3
jbe 0x40bd21
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x40bd5c
cmp cl, 0xff
je 0x40bd5c
and ebp, 3
shl ebp, 1
or ebp, 1
inc eax
jmp 0x40bcd0
dec ecx
shl ebp, cl
and ebp, 7
je 0x40bd06
movzx ecx, byte [ebp + 0x41b1d8]
mov ebx, edi
sub ebx, ecx
mov cl, byte [ebx + 4]
mov bl, byte [ebp + 0x41b1d0]
test bl, bl
je 0x40bd4a
test cl, cl
je 0x40bd4a
cmp cl, 0xff
jne 0x40bd06
and ebp, 3
shl ebp, 1
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x40bcd0
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40bd84
lea ebx, [edx + eax]
add ebx, esi
jmp 0x40bd8a
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x40bdc7
movzx esi, byte [ebp + 0x41b1d8]
shl esi, 3
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40bdac
cmp dl, 0xff
jne 0x40bdc3
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40bd75
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x40bcd0
mov esi, dword [esp + 0x1c]
pop edi
sub ecx, esi
cmp ecx, 3
pop esi
pop ebx
jbe 0x40be0e
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x40c26c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f120]
jne 0x40c276
repz ret
jmp fcn.0040eb1c
Function at 0x41269d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41fc00]
je 0x4126b8
inc edi
cmp edi, 0x17
jb 0x4126a9
cmp edi, 0x17
jae 0x412838
push ebp
push 3
call fcn.00416735
cmp eax, 1
pop ecx
je 0x412804
push 3
call fcn.00416735
test eax, eax
pop ecx
jne 0x4126ec
cmp dword [0x41f160], 1
je 0x412804
cmp ebx, 0xfc
je 0x412837
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x420d50
push ebp
call fcn.0040f873
add esp, 0xc
test eax, eax
je 0x412722
push esi
push esi
push esi
push esi
push esi
call fcn.0040fa48
add esp, 0x14
push 0x104
mov esi, 0x420d69
push esi
push 0
mov byte [0x420e6d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412766
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040f873
add esp, 0xc
test eax, eax
je 0x412766
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040fa48
add esp, 0x14
push esi
call fcn.0040f8e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4127ab
push esi
call fcn.0040f8e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x421064
push 0x41b9d4
sub ecx, eax
push ecx
push eax
call fcn.00414ea6
add esp, 0x14
test eax, eax
je 0x4127ab
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040fa48
add esp, 0x14
jmp 0x4127ad
xor esi, esi
push 0x41b9d0
push ebx
push ebp
call fcn.00414de0
add esp, 0xc
test eax, eax
je 0x4127cd
push esi
push esi
push esi
push esi
push esi
call fcn.0040fa48
add esp, 0x14
push dword [edi*8 + 0x41fc04]
push ebx
push ebp
call fcn.00414de0
add esp, 0xc
test eax, eax
je 0x4127ef
push esi
push esi
push esi
push esi
push esi
call fcn.0040fa48
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00416578
add esp, 0xc
jmp 0x412837
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x412837
cmp ebp, 0xffffffff
je 0x412837
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41fc04]
push dword [esi]
call fcn.0040f8e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret