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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4488c8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4488a9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4488b8
or bl, 4
test esi, 0x20000000
je 0x4488c3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44eecc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44eede
add esp, 0xfffffff0
call fcn.00403870
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd7c
mov eax, dword [0x45a12c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f270
mov eax, dword [0x45a138]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f27c
mov eax, ebx
call fcn.0044f288
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411820]
call fcn.004034dc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411820]
call fcn.004034dc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411820]
call fcn.004034dc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411820]
call fcn.004034dc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411820]
call fcn.004034dc
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, 0x44b750
push eax
push 0
push 0
mov eax, dword [0x45a258]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d73c]
call fcn.0041ee10
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d73c]
call fcn.0041ee10
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d73c]
call fcn.0041ee10
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f6a8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f584
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f584
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f584
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f01b
call fcn.004038c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f368
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 0x44f513
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f4f4
mov dl, 1
mov eax, dword [0x411d10]
call fcn.004034dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004042fc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f4e3
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.0043cf70
test al, al
je 0x44f4d6
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, 0x44f524
lea eax, [ebp - 0x254]
call fcn.0040912c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f4d6
xor eax, eax
push ebp
push 0x44f4cf
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 0x44f55c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f4b8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404564
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 0x44f4b8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404564
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f4d6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44f3d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415eb4
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 0x44f51a
lea eax, [ebp - 0x260]
call fcn.004042fc
ret

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

Disassembly:
push ecx
mov eax, dword [0x45bc2c]
cmp byte [eax + 0xa5], 0
jne 0x44feb9
cmp dword [0x45bc44], 0
jne 0x44fe7a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44fe04
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bc44], eax
cmp dword [0x45bc40], 0
jne 0x44fe95
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45bc40], eax
cmp dword [0x45bc48], 0
jne 0x44feb9
push esp
push 0
push 0
push 0x44fda8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45bc48], eax
pop edx
ret
Function at 0x44ffb0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44ffc7
add esp, 0xfffffff0
call fcn.00403870
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd7c
mov eax, dword [0x45a244]
cmp word [eax + 2], 0
jne 0x44ffef
mov eax, dword [0x45a244]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004515e4
mov eax, dword [0x45a2d8]
cmp word [eax + 2], 0
jne 0x450009
mov eax, dword [0x45a2d8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004517dc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411820]
call fcn.004034dc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411820]
call fcn.004034dc
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 [0x41e1bc]
call fcn.004254c4
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x450190
mov eax, dword [0x45a180]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425894
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451d4c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45a180]
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.0040aa3c
test eax, eax
je 0x4500fe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a88
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040aa64
test eax, eax
je 0x450112
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.00404564
mov eax, dword [0x45a098]
cmp byte [eax], 0
jne 0x450146
mov eax, ebx
call fcn.004502b8
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.00451f28
mov eax, ebx
call fcn.00452868
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450186
call fcn.004038c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45052c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bc2c]
cmp dword [eax + 0x30], 0
je 0x4505d6
cmp dword [ebx + 0x94], 0
jne 0x4505d0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4504bc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4505d0
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 0x450596
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4505d0
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.00413f1c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4505a5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4510b4
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 0x4510e9
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.004043ec
jmp 0x4510f6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404350
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452104
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452145
mov eax, esi
call fcn.004386ec
test al, al
je 0x452145
mov eax, dword [ebx + 0x84]
call fcn.004383e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452145
push 0
mov eax, dword [ebx + 0x84]
call fcn.004383e8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x453e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov byte [ebp - 5], 0
push 0
mov eax, dword [ebx + 0x34]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x453e9f
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 0x30]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x453e81
mov ecx, dword [edi]
mov edx, esi
mov eax, ebx
call fcn.00453eac
test al, al
je 0x453e9f
jmp 0x453e47
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
jne 0x453e93
mov byte [ebp - 5], 1
jmp 0x453e9f
cmp eax, 6
je 0x453e9f
mov eax, ebx
call fcn.00454124
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x454274
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 8]
add eax, esi
push eax
mov eax, dword [edi + 0x30]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x454330
call sub.kernel32.dll_GetLastError_1
cmp eax, 6
je 0x454342
cmp eax, 0x3e5
je 0x4542d8
mov eax, edi
call fcn.00454350
jmp 0x454342
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call sub.kernel32.dll_WaitForMultipleObjects
sub eax, 0xffffffff
je 0x45431e
dec eax
je 0x454342
dec eax
je 0x4542f4
jmp 0x454327
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [edi + 0x30]
push eax
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
jne 0x454330
call sub.kernel32.dll_GetLastError_1
cmp eax, 6
je 0x454342
mov eax, edi
call fcn.00454350
jmp 0x454342
mov eax, edi
call fcn.00454350
jmp 0x454342
mov eax, edi
call fcn.00454350
jmp 0x454342
sub ebx, dword [ebp - 0x10]
add esi, dword [ebp - 0x10]
test ebx, ebx
ja 0x4542a2
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x454cf8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00454a74
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004047ac
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x454d56
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45a264]
mov dl, 1
mov eax, dword [0x454998]
call fcn.0040a0b4
call fcn.00403cd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x454f34
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov dword [esp], eax
mov al, 0xff
mov dl, 0xff
xor esi, esi
movzx ecx, si
mov ebx, dword [esp]
mov cl, byte [ebx + ecx]
xor cl, al
and ecx, 0xff
movzx ebp, cx
mov al, byte [ebp + 0x459c3c]
xor al, dl
mov dl, byte [ebp + 0x459d3c]
inc esi
dec edi
test di, di
jne 0x454f44
movzx ecx, si
mov ebx, dword [esp]
add ebx, ecx
mov byte [ebx], al
movzx ecx, si
mov ebx, dword [esp]
lea ebx, [ebx + ecx + 1]
mov byte [ebx], dl
and eax, 0xff
shl eax, 8
and edx, 0xff
or ax, dx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45814c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov dword [esp], eax
mov al, 0xff
mov dl, 0xff
xor esi, esi
movzx ecx, si
mov ebx, dword [esp]
mov cl, byte [ebx + ecx]
xor cl, al
and ecx, 0xff
movzx ebp, cx
mov al, byte [ebp + 0x459e7c]
xor al, dl
mov dl, byte [ebp + 0x459f7c]
inc esi
dec edi
test di, di
jne 0x45815c
movzx ecx, si
mov ebx, dword [esp]
add ebx, ecx
mov byte [ebx], al
movzx ecx, si
mov ebx, dword [esp]
lea ebx, [ebx + ecx + 1]
mov byte [ebx], dl
and eax, 0xff
shl eax, 8
and edx, 0xff
or ax, dx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x6e9318], 1
mov dword [0x6e931c], 1
mov dword [0x6e9320], 1
mov dword [0x6e930c], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x401415
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x401438
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x40145a
cmp eax, 0x20b
je 0x40147f
jmp 0x4014aa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x40146c
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x401497
mov eax, 0
jmp 0x4014af
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014af
mov eax, 0
leave
ret

Function at 0x402cac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebx
mov ebx, edx
sub esp, 0x10
test edx, edx
je 0x402cc6
mov dword [esp], edx
call sub.msvcrt.dll_strlen
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_fflush
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x405f2b
Capabilities:
Write file on windows

Disassembly:
cmp dword [0x6e909c], 0
jne 0x405f36
jmp fcn.00405ee7
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
call fcn.00405e9c
mov dword [esp + 4], edx
mov ebx, edx
mov dword [esp], eax
call dword [0x6e909c]
push edx
push edx
test ebx, ebx
je 0x405f65
bt dword [ebx], 0x1e
jb 0x405f65
mov dword [esp], ebx
call fcn.00403bec
mov dword [esp], 0x4341cc
call fcn.004232d0
cmp byte [eax], 0
je 0x405f99
mov byte [eax], 0
mov dword [esp], 0x43414c
call fcn.004232d0
mov ecx, eax
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
mov dword [esp], 0
call fcn.0040422c
push eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x407489
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
xor ebx, ebx
sub esp, 0x2c
mov dword [esp], 0x6e9080
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edx
cmp ebx, esi
jl 0x4074fa
mov dword [esp], 1
mov ebx, dword [fcn.00428d18]
call ebx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x43537b
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov dword [esp], 0x6e9080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push eax
jmp 0x407573
test ebx, ebx
jns 0x40750d
dec esi
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.0040598b
jmp 0x407573
mov dword [esp], 1
call dword [0x434658]
mov dword [esp + 8], 0
mov ecx, eax
lea eax, [edi + ebx*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040738b
sub esp, 0xc
mov dword [esp], 0x4341cc
call fcn.004232d0
cmp byte [eax], 0
jne 0x407573
lea ecx, [ebp - 0x1c]
mov edx, 1
mov eax, ebx
call fcn.00402bc7
test al, al
je 0x40756b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00403d00
mov ebx, dword [ebp - 0x1c]
jmp 0x4074a6
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x41b72c
Capabilities:
Hash data using sha256

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [ebp - 0x90], edx
lea edx, [ebp - 0x80]
mov edi, edx
mov dword [ebp - 0x94], ecx
mov ecx, 0x1a
rep stosd dword es:[edi], eax
mov dword [esp], 0x4341cc
mov dword [ebp - 0x78], 0x6a09e667
mov dword [ebp - 0x74], 0xbb67ae85
mov dword [ebp - 0x70], 0x3c6ef372
mov dword [ebp - 0x6c], 0xa54ff53a
mov dword [ebp - 0x68], 0x510e527f
mov dword [ebp - 0x64], 0x9b05688c
mov dword [ebp - 0x60], 0x1f83d9ab
mov dword [ebp - 0x5c], 0x5be0cd19
call fcn.004232d0
xor edx, edx
mov dword [ebp - 0x8c], eax
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
cmp byte [edi], 0
jne 0x41b88b
test eax, eax
jle 0x41b85d
mov esi, dword [ebp - 0x80]
mov ecx, 0x40
and esi, 0x3f
sub ecx, esi
cmp ecx, eax
mov ebx, ecx
cmovg ebx, eax
test edx, edx
js 0x41b7db
cmp dword [ebp - 0x90], edx
jg 0x41b7f0
mov eax, dword [ebp - 0x90]
mov dword [esp], edx
dec eax
mov dword [esp + 4], eax
call fcn.0040598b
jmp 0x41b85d
lea esi, [ebp + esi - 0x58]
mov ecx, ebx
mov edi, esi
mov esi, dword [ebp - 0x94]
add esi, edx
rep movsb byte es:[edi], byte [esi]
lea esi, [edx + ebx]
mov ecx, ebx
xor edx, esi
xor ecx, esi
test edx, ecx
js 0x41b81f
mov edi, eax
mov edx, ebx
sub edi, ebx
xor eax, edi
xor edx, edi
not eax
or eax, edx
js 0x41b826
call fcn.00403d00
jmp 0x41b85d
add ebx, dword [ebp - 0x80]
mov dword [ebp - 0x80], ebx
jae 0x41b831
inc dword [ebp - 0x7c]
and bl, 0x3f
je 0x41b83f
mov eax, edi
mov edx, esi
jmp 0x41b7b3
mov dword [esp], 0x40
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x78]
call fcn.0041b8c4
push eax
mov eax, dword [ebp - 0x8c]
cmp byte [eax], 0
je 0x41b836
mov eax, dword [ebp - 0x8c]
cmp byte [eax], 0
jne 0x41b88b
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x80]
call fcn.0041e2ba
mov eax, dword [ebp - 0x8c]
cmp byte [eax], 0
jne 0x41b88b
mov edx, 0x68
lea ecx, [ebp - 0x80]
call fcn.0041b6f4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x421fe4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00428d18
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00428d18
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x422b34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x422b53
mov eax, 0
jmp 0x422b97
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x422b76
mov eax, 0
jmp 0x422b97
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x422b92
mov eax, 0
jmp 0x422b97
mov eax, 1
leave
ret

Function at 0x422b99
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x422bf8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x422bf0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x422bf0
mov eax, dword [ebp - 4]
jmp 0x422c0c
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x422bcd
mov eax, 0
leave
ret
Function at 0x429eb5
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x429fce
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042dc9c
cmp eax, 1
jne 0x429fc4
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x429f7a
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x429f91
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x429f76
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x429faf
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x429fcf
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret