joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5560f6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0054c740
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x556191
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x689104]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x556191
cmp eax, 1
je 0x5561b2
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x556191
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x55615e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x55618d
xor eax, eax
inc eax
jmp 0x5561d1
cmp edi, eax
jae 0x556195
xor eax, eax
jmp 0x5561d1
cmp eax, esi
jae 0x55619c
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x689104]
jmp 0x5561b5
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5568dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x5ced48]
je 0x5568f5
inc eax
cmp eax, 0x12
jb 0x5568e6
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5ced48]
mov dword [ebp + 8], esi
jne 0x556a3b
mov eax, dword [0x689150]
cmp eax, 1
push ebx
je 0x556a0b
test eax, eax
jne 0x55692a
cmp dword [0x5ce394], 1
je 0x556a0b
cmp ecx, 0xfc
je 0x556a3a
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x6892e8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x689302
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x689406], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x556978
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x689302
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x55697d
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x5569b0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x556991
sub eax, edx
push 3
lea eax, [eax + 0x6892c7]
push 0x585784
push eax
call fcn.0054f1e0
add esp, 0xc
mov edx, 0x6892e8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5569b8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5ced4c]
mov esi, 0x585780
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5569d3
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5569df
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0055a375
add esp, 0xc
pop edi
jmp 0x556a3a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x556a3a
mov esi, dword [esi + 0x5ced4c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x556a22
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x558c24
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x558c52
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x558c59
cmp ebx, dword [eax + 4]
jae 0x558c59
xor eax, eax
jmp 0x558e49
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x558c6a
xor eax, eax
inc eax
jmp 0x558e48
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x558c80
cmp ecx, edx
jae 0x558dc5
cmp dword [eax + 4], 0
je 0x558c89
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x558c71
cmp dword [ebp + 8], 0
je 0x558cab
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x558dc5
cmp eax, esi
jae 0x558dc5
mov eax, dword [0x689840]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x558cd0
cmp dword [esi*4 + 0x689848], edi
je 0x558dc9
inc esi
cmp esi, eax
jl 0x558cbe
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x558e45
cmp dword [ebp - 8], 0x1000000
jne 0x558e45
test byte [ebp - 0xc], 0xcc
je 0x558d4e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x558e45
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x558e45
cmp word [eax + 0x18], 0x10b
jne 0x558e45
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x558e45
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x558d4e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x558d4e
test byte [ecx + 0x27], 0x80
jne 0x558dc5
push 1
push 0x689888
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x558c62
mov ecx, dword [0x689840]
test ecx, ecx
mov edx, ecx
jle 0x558d82
lea eax, [ecx*4 + 0x689844]
cmp dword [eax], edi
je 0x558d82
dec edx
sub eax, 4
test edx, edx
jg 0x558d76
test edx, edx
jne 0x558db3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x558d8f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x558da7
lea eax, [edx*4 + 0x689848]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x558d95
cmp ecx, 0x10
jge 0x558db3
inc ecx
mov dword [0x689840], ecx
push 0
push 0x689888
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x558c62
xor eax, eax
jmp 0x558e48
test esi, esi
jle 0x558c62
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x689888
call ebx
test eax, eax
jne 0x558c62
cmp dword [esi*4 + 0x689848], edi
je 0x558e1f
mov eax, dword [0x689840]
lea esi, [eax - 1]
test esi, esi
jl 0x558e0d
cmp dword [esi*4 + 0x689848], edi
je 0x558e09
dec esi
jns 0x558dfd
test esi, esi
jge 0x558e1d
cmp eax, 0x10
jge 0x558e18
inc eax
mov dword [0x689840], eax
lea esi, [eax - 1]
jmp 0x558e1f
je 0x558e37
xor ecx, ecx
test esi, esi
jl 0x558e37
lea eax, [ecx*4 + 0x689848]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x558e25
push 0
push 0x689888
call ebx
jmp 0x558c62
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55a375
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x689894], ebx
push esi
push edi
jne 0x55a3f5
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x55a430
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x585d2c
push edi
call esi
test eax, eax
mov dword [0x689894], eax
je 0x55a430
push 0x585d1c
push edi
call esi
push 0x585d08
push edi
mov dword [0x689898], eax
call esi
cmp dword [0x689104], 2
mov dword [0x68989c], eax
jne 0x55a3f5
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6898a4], eax
je 0x55a3f5
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6898a0], eax
mov eax, dword [0x6898a0]
test eax, eax
je 0x55a43a
call eax
test eax, eax
je 0x55a421
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6898a4]
test eax, eax
je 0x55a421
test byte [ebp - 8], 1
jne 0x55a43a
cmp dword [0x689110], 4
jb 0x55a434
or byte [ebp + 0x12], 0x20
jmp 0x55a459
xor eax, eax
jmp 0x55a469
or byte [ebp + 0x12], 4
jmp 0x55a459
mov eax, dword [0x689898]
test eax, eax
je 0x55a459
call eax
mov ebx, eax
test ebx, ebx
je 0x55a459
mov eax, dword [0x68989c]
test eax, eax
je 0x55a459
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x689894]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x55b1e7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x55b24f
push 0x3d
push esi
call fcn.0054fa95
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x55b24f
cmp esi, eax
je 0x55b24f
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x689124]
sete cl
cmp eax, dword [0x689128]
mov dword [ebp - 4], ecx
jne 0x55b235
mov edi, eax
call fcn.0055b188
mov dword [0x689124], eax
cmp eax, ebx
jne 0x55b28e
cmp dword [ebp + 0xc], ebx
je 0x55b257
cmp dword [0x68912c], ebx
je 0x55b257
call fcn.0055a10c
test eax, eax
je 0x55b28e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x55b392
push 4
pop ecx
call fcn.00554493
cmp eax, ebx
mov dword [0x689124], eax
je 0x55b24f
mov dword [eax], ebx
cmp dword [0x68912c], ebx
jne 0x55b28e
push 4
pop ecx
call fcn.00554493
cmp eax, ebx
mov dword [0x68912c], eax
je 0x55b24f
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x689124]
sub edi, esi
push esi
call fcn.0055b13b
mov edi, eax
test edi, edi
pop ecx
jl 0x55b2e8
cmp dword [ebx], 0
je 0x55b2e8
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0054ccb2
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x55b2cf
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x55b31c
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x55b2c6
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.00554509
test eax, eax
mov esi, dword [ebp + 8]
je 0x55b31c
jmp 0x55b317
cmp dword [ebp - 4], 0
jne 0x55b38b
test edi, edi
jge 0x55b2f8
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.00554509
test eax, eax
je 0x55b24f
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x689124], eax
cmp dword [ebp + 0xc], 0
je 0x55b376
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x55b327
sub eax, edx
lea ecx, [eax + 2]
call fcn.00554493
mov edi, eax
test edi, edi
je 0x55b376
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x55b342
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x55b36f
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.0054ccb2
pop ecx
cmp dword [ebp - 4], 0
je 0x55b383
push esi
call fcn.0054ccb2
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x55b252
push esi
call fcn.0054ccb2
pop ecx
xor eax, eax
jmp 0x55b252
Function at 0x55e9f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0054c740
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x55eabb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x55eabb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x55ea6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x55ea79
or bh, 8
and edi, 0x8000000
je 0x55ea94
mov eax, dword [0x68acfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x55eabb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x55ee90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x55eebb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x55eedf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x55eefa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x563568
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5635a0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00562513
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005624eb
jmp 0x5635ac
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x5635b0
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x687120
mov ecx, edi
call fcn.005621f5
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x563603
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x563616
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00562513
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.005624eb
jmp 0x563616
mov ecx, esi
call fcn.005654d4
test eax, eax
je 0x563616
push edi
mov ecx, eax
call fcn.00563568
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x564daa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x564dec
call fcn.0056b9b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x564dec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x564de3
xor eax, eax
jmp 0x564df4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00564dfa
pop edi
pop esi
pop ebx
ret 4

Function at 0x565f68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x565f8a
cmp dword [edi + 0x3c], 0
jne 0x565f8a
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0056b9b1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00565fb7
pop edi
pop esi
pop ebx
ret 8
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00407571
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00407571
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00407571
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00407571
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00407571
mov dword [0x41203c], eax
call fcn.00407571
test eax, eax
jge 0x402550
push 8
call fcn.00407571
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00407571
pop ecx
push 1
call fcn.00407571
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00407571
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00407571
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00407571
jmp 0x402495

Function at 0x407571
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x407580
pop dword [ebp - 0x18]
mov eax, 0x407580
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x39b20
push 0
mov eax, 0xaed28fca
add eax, 0x516e510e
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x85848470
sub ecx, 0x85843aca
mov esi, eax
mov edi, 0x413bc4
add edi, dword [ebp - 0x18]
mov edx, 0xbad935fe
add edx, 0x713e1ff4
mov dword [ebp - 0x10], 0xad042fa
mov ebx, dword [edi]
add dword [ebp - 8], 0x110c8df6
sub ebx, edx
xor dword [ebp - 4], 0x1ae3ae61
mov dword [esi], ebx
sub dword [ebp - 0x14], 0x4db6425a
add esi, 0x4caf65ef
add esi, 0xb3509a15
add edi, 4
loop 0x4075d4
add eax, 0x433996e4
add eax, 0xbcc78287
mov ebx, eax
add eax, 0x33cdb363
sub eax, 0x33cdb35e
mov ecx, 0x47e69cae
add ecx, 0xb8596352
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40704c], 1
mov dword [0x407050], 1
mov dword [0x407054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
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 0x40134f
mov eax, 0
jmp 0x4013c6
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 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x401c10
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 0x4ec4ec4f
sub esp, 0x2c
lea edi, [esp + 0x17]
lea esi, [esp + 0x1f]
mov ebp, edi
lea esi, [esi]
lea esi, [esi]
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
add ebp, 1
mov ecx, eax
imul ebx
mov eax, ecx
sar eax, 0x1f
sar edx, 3
sub edx, eax
imul edx, edx, 0x1a
sub ecx, edx
add ecx, 0x41
mov byte [ebp - 1], cl
cmp ebp, esi
jne 0x401c30
mov dword [esp + 4], 0x4050cf
mov dword [esp], edi
mov byte [esp + 0x1f], 0
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov ebx, eax
test eax, eax
je 0x401c98
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x44
mov dword [esp + 4], 1
mov dword [esp], str.THERE_IS_NO_ESCAPE..._nYOURE_COMMITED_TO_SUFFERING__ALONE__FOR_EVER.
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret