joyce8/EMBER2024-capa huggingface dataset:
Function at 0x727ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x232000]
push edi
jmp 0x727aea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x727af1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x727ae0
mov eax, 1
add ebx, ebx
jne 0x727b03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x727b14
jne 0x727b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x727b33
dec eax
add ebx, ebx
jne 0x727b20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x727af8
add ebx, ebx
jne 0x727b2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x727b85
xor ecx, ecx
sub eax, 3
jb 0x727b4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x727bba
sar eax, 1
mov ebp, eax
jmp 0x727b56
add ebx, ebx
jne 0x727b56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x727b24
inc ecx
add ebx, ebx
jne 0x727b64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x727b24
add ebx, ebx
jne 0x727b71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x727b66
jne 0x727b82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x727b66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x727ba4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x727b96
jmp 0x727ae6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x727ba4
add edi, ecx
jmp 0x727ae6
pop esi
mov edi, esi
mov ecx, 0x8916
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x727bc2
cmp byte [edi], 0x1a
jne 0x727bc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x727bc7
lea edi, [esi + 0x323000]
mov eax, dword [edi]
or eax, eax
je 0x727c3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x33902c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x339158]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x727bf4
mov ecx, edi
jns 0x727c23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x33915c]
or eax, eax
je 0x727c39
mov dword [ebx], eax
add ebx, 4
jmp 0x727c11
call dword [esi + 0x33916c]
mov ebp, dword [esi + 0x339160]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x727c73
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40895d
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
inc ecx
call fcn.00408983
or eax, ecx
sub eax, 1
xor dword [edx], esi
inc edx
or eax, ecx
sub eax, eax
cmp edx, ebx
jne fcn.0040895d
mov eax, 0xa1487d6b
or ecx, ecx
ret
Function at 0x4a1916
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d5b20]
jne 0x4a1920
repz ret
jmp fcn.004a7ba3

Function at 0x4a5100
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d5b20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0049de72
and dword [ebp - 0x14], 0
cmp dword [0x4d8e5c], 0
mov dword [ebp - 0x18], eax
jne 0x4a51b3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4a525b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b00f0
push ebx
call edi
test eax, eax
je 0x4a525b
mov esi, dword [fcn.00499a00]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4d8e5c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4d8e60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4d8e64], eax
call edi
push eax
call esi
mov dword [0x4d8e6c], eax
test eax, eax
je 0x4a51b3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4d8e68], eax
mov eax, dword [0x4d8e68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00499a04]
cmp eax, ecx
je 0x4a520c
cmp dword [0x4d8e6c], ecx
je 0x4a520c
push eax
call esi
push dword [0x4d8e6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4a520c
test ebx, ebx
je 0x4a520c
call edi
test eax, eax
je 0x4a5203
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4a5203
test byte [ebp - 8], 1
jne 0x4a520c
or dword [ebp + 0x10], 0x200000
jmp 0x4a523f
mov eax, dword [0x4d8e60]
cmp eax, dword [ebp - 0x18]
je 0x4a523f
push eax
call esi
test eax, eax
je 0x4a523f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a523f
mov eax, dword [0x4d8e64]
cmp eax, dword [ebp - 0x18]
je 0x4a523f
push eax
call esi
test eax, eax
je 0x4a523f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4d8e5c]
call esi
test eax, eax
je 0x4a525b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4a525d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a1916
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x421063]
shl eax, 2
mov dword [0x421067], eax
push edi
push ecx
xor eax, eax
mov edi, 0x428f34
mov ecx, 0x42a4d8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.00416b92
pop ecx
push 0x42102c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x42106b], eax
push 0
jmp fcn.0042020c

Function at 0x402698
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
push eax
dec eax
je 0x4026b2
mov eax, 0x42278d
jmp 0x4026b7
mov eax, 0x422791
push eax
lea edx, [ebp - 0xc]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push dword [ebp + 0x18]
test edi, edi
je 0x4026df
push 0x429cfc
call fcn.0041204f
pop ecx
mov ecx, dword [eax + 0x187]
inc ecx
jmp 0x4026f0
push 0x429cfc
call fcn.0041204f
pop ecx
mov ecx, dword [eax + 0x187]
push ecx
lea eax, [ebp - 0xc]
push eax
push 0x422792
lea edx, [ebp - 0x60]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x60]
push edx
call sub.KERNEL32.dll_lstrlenA
push eax
lea ecx, [ebp - 0x60]
push ecx
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
push 0x429cfc
call fcn.0041204f
pop ecx
imul eax, dword [eax + 0x187], 0x1e
push eax
call fcn.0041e63c
pop ecx
mov esi, eax
push 0x4227ce
push esi
call fcn.00416db4
add esp, 8
test edi, edi
je 0x402763
push 0x429cfc
call fcn.0041204f
pop ecx
mov eax, dword [eax + 0x187]
inc eax
jmp 0x402774
push 0x429cfc
call fcn.0041204f
pop ecx
mov eax, dword [eax + 0x187]
mov dword [ebp - 0x10], eax
xor ebx, ebx
cmp ebx, dword [ebp - 0x10]
jge 0x402817
test edi, edi
jne 0x40278f
mov eax, dword [ebp + 0x10]
cmp dword [eax + ebx*4], 0
jne 0x40280d
test edi, edi
je 0x4027a1
test ebx, ebx
je 0x4027a1
mov edx, dword [ebp + 0x10]
cmp dword [edx + ebx*4 - 4], 0
jne 0x40280d
push 0x4227d3
push esi
call sub.KERNEL32.dll_lstrcatA
test edi, edi
je 0x4027e3
test ebx, ebx
jne 0x4027c1
push 0x4227d8
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x402802
push 0x429cfc
call fcn.0041204f
pop ecx
mov ecx, dword [eax + 0x183]
lea eax, [ebx - 1]
shl eax, 5
add ecx, eax
push ecx
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x402802
push 0x429cfc
call fcn.0041204f
pop ecx
mov edx, dword [eax + 0x183]
mov ecx, ebx
shl ecx, 5
add edx, ecx
push edx
push esi
call sub.KERNEL32.dll_lstrcatA
push 0x4227da
push esi
call sub.KERNEL32.dll_lstrcatA
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x402782
push 0x4227e0
push esi
call sub.KERNEL32.dll_lstrcatA
push 0
lea eax, [ebp - 4]
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [ebp + 8]
call sub.KERNEL32.dll_WriteFile
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aba2
Capabilities:
Write file on windows

Disassembly:
in eax, 0x20
out dx, eax
imul esp, edx, 0x422021e0
jae 0x40ac22
and byte [edx + 0x65], dh
popal
jb 0x40ac19
jae 0x40abd7
xor ah, byte [eax]
push esp
outsd dx, dword [esi]
insd dword es:[edi], dx
insd dword es:[edi], dx
jns 0x40abdf
push ebx
popal
insb byte es:[edi], dx
outsd dx, dword [esi]
and byte cs:[ebx + 0x4e], bl
outsd dx, dword [esi]
jbe 0x40abf7
xor dh, byte [eax]
xor byte [0x6f79205d], dh
jne 0x40ac46
jae 0x40abf6
pop ebx
inc esp
jp 0x40ac43
popal
jne 0x40ac4a
push 0x61
popal
and byte [ecx + 0x70], al
popal
outsb dx, byte [esi]
popal
jae 0x40ac45
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov dword [ebp - 0x30], 0x800
mov dword [ebp - 0x1c], 0x1004
mov dword [ebp - 0x44], 0x4232a1
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add bh, al
inc ebp
rol byte [eax], 1
or byte [eax], al
add bh, al
inc ebp
in al, 4
adc byte [eax], al
add bh, al
inc ebp
mov esp, 0x4232a1
lea eax, [ebp - 0x50]
push eax
call sub.COMDLG32.dll_GetSaveFileNameA
test eax, eax
je 0x40acac
xchg byte [eax], al
add byte [eax], al
push 0x4232be
push dword [edi]
call fcn.00416ef5
add esp, 8
test eax, eax
jne 0x40ac45
push 0x4232c2
push dword [edi]
call sub.KERNEL32.dll_lstrcatA
add dword [eax], eax
push 0
push 0x80
add byte [eax - 0x80], ch
add byte [eax], al
add byte [edx + 2], ch
add byte [eax], al
push 2
push 0
push 0
push 0xc0000000
push dword [edi]
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
xor ebx, ebx
jmp 0x40ac93
push ebx
call fcn.004014f6
pop ecx
push eax
push 0x4232c6
push dword [edi]
call fcn.0041a464
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
push dword [edi]
call fcn.00416de4
pop ecx
push eax
push dword [edi]
push esi
call sub.KERNEL32.dll_WriteFile
inc ebx
push 0x429cfc
call fcn.0041204f
pop ecx
cmp ebx, dword [eax + 0x187]
jl 0x40ac64
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b256
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
mov eax, edx
mov ecx, dword [eax + 8]
sub ecx, 0xffffff4b
je 0x40b277
sub ecx, 0x1f
je 0x40b289
jmp 0x40b3d2
push 0
push 0
push dword [edx]
call sub.USER32.dll_InvalidateRect
xor eax, eax
jmp 0x40b3d4
mov ebx, edx
push 0x429cfc
call fcn.0041204f
pop ecx
mov esi, dword [eax + 0x18f]
cmp dword [0x4210d8], 0
je 0x40b2d1
test byte [ebx + 0xc], 1
je 0x40b2ca
push dword [ebx + 0x24]
push dword [ebx + 0x10]
push 0x429cfc
call fcn.004121c8
add esp, 8
add eax, 4
push eax
push dword [ebx + 0x20]
call sub.KERNEL32.dll_lstrcpynA
xor eax, eax
jmp 0x40b3d4
mov edi, dword [ebx + 0x10]
push 0x429cfc
call fcn.0041204f
pop ecx
add eax, 0x1c3
push eax
call fcn.00412154
pop ecx
test eax, eax
jne 0x40b38f
push 0
push 0
push 0x429cfc
call fcn.0041204f
pop ecx
movzx eax, word [eax + 0x167]
cdq
push edx
push eax
mov eax, edi
cdq
push edx
push eax
push 0x429cfc
call fcn.0041204f
pop ecx
movzx eax, word [eax + 0x169]
xor edx, edx
call fcn.0041c49c
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
push 0x429cfc
call fcn.0041204f
pop ecx
push dword [eax + 0x1a3]
call fcn.00401165
add esp, 0x14
push 0
lea ecx, [ebp - 4]
push ecx
push 0x429cfc
call fcn.0041204f
pop ecx
movzx eax, word [eax + 0x169]
push eax
push 0x429cfc
call fcn.0041204f
pop ecx
push dword [eax + 0x18f]
push 0x429cfc
call fcn.0041204f
pop ecx
push dword [eax + 0x1a3]
call sub.KERNEL32.dll_ReadFile
test byte [ebx + 0xc], 1
je 0x40b3ba
push 0
push dword [ebx + 0x14]
push esi
push dword [0x429490]
call fcn.004020a8
add esp, 0x10
push dword [ebx + 0x24]
push dword [0x429490]
push dword [ebx + 0x20]
call sub.KERNEL32.dll_lstrcpynA
test byte [ebx + 0xc], 2
je 0x40b3ce
xor edx, edx
movsx ecx, byte [esi]
cmp ecx, 0x2a
je 0x40b3cb
dec edx
mov dword [ebx + 0x28], edx
xor eax, eax
jmp 0x40b3d4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40b3da
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xff
push dword [0x429490]
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push dword [0x429490]
call sub.KERNEL32.dll_lstrlenA
add eax, dword [0x429490]
dec eax
jmp 0x40b404
dec eax
movsx edx, byte [eax]
cmp edx, 0x5c
jne 0x40b403
mov byte [eax + 1], 0
push 0x4232ec
push eax
call sub.KERNEL32.dll_lstrcatA
push 1
push 0
push 0
push dword [0x429490]
push 0x4232f7
push dword [ebp + 8]
call sub.SHELL32.dll_ShellExecuteA
pop ebp
ret
Function at 0x40eb7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
mov esi, 0xc0000000
xor eax, eax
mov dword [ebx + 0x108], eax
xor edx, edx
mov dword [ebx + 0x100], edx
push 0
push 0x80
push 4
push 0
push 3
push esi
push ebx
call sub.KERNEL32.dll_CreateFileA
mov dword [ebx + 0x110], eax
cmp dword [ebx + 0x110], 0xffffffff
jne 0x40ebe0
push 0
push 0x80
push 4
push 0
push 3
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
mov dword [ebx + 0x110], eax
cmp dword [ebx + 0x110], 0xffffffff
jne 0x40ebed
xor eax, eax
jmp 0x40ebf2
mov eax, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x40ef12
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
push dword [ebx + 0x110]
call sub.KERNEL32.dll_GetFileSize
mov edx, eax
mov eax, dword [ebx + 0x115]
imul eax, esi
test esi, esi
je 0x40ef48
cmp edx, eax
jbe 0x40ef48
test eax, eax
jne 0x40ef4f
xor eax, eax
jmp 0x40f07e
push 0
push 0
mov eax, dword [ebx + 0x115]
imul esi
cdq
push edx
push eax
push dword [ebx + 0x110]
call fcn.00401165
add esp, 0x14
xor edi, edi
cmp byte [ebx + 0x114], 0x30
je 0x40efaf
cmp byte [ebx + 0x114], 0x31
je 0x40efaf
cmp byte [ebx + 0x114], 0x32
je 0x40efaf
cmp byte [ebx + 0x114], 0xf5
je 0x40efaf
cmp byte [ebx + 0x114], 0x8b
je 0x40efaf
xor eax, eax
mov al, byte [ebx + 0x114]
and eax, 7
cmp eax, 4
jne 0x40f031
push 0
lea edx, [ebp - 4]
push edx
push 8
lea ecx, [ebp - 0xc]
push ecx
push dword [ebx + 0x110]
call sub.KERNEL32.dll_ReadFile
cmp byte [ebx + 0x114], 0x30
je 0x40efea
cmp byte [ebx + 0x114], 0x31
je 0x40efea
cmp byte [ebx + 0x114], 0x32
je 0x40efea
cmp byte [ebx + 0x114], 0xf5
jne 0x40f004
lea eax, [ebp - 8]
push eax
call fcn.0040eaad
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0x1000000
je 0x40f004
xor eax, eax
jmp 0x40f07e
cmp byte [ebx + 0x114], 0x8b
je 0x40f01d
xor edx, edx
mov dl, byte [ebx + 0x114]
and edx, 7
cmp edx, 4
jne 0x40f02a
cmp dword [ebp - 0xc], 0x8ffff
je 0x40f02a
xor eax, eax
jmp 0x40f07e
mov eax, dword [ebp - 8]
jmp 0x40f07e
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x115]
lea edx, [ebp - 0x20c]
push edx
push dword [ebx + 0x110]
call sub.KERNEL32.dll_ReadFile
jmp 0x40f054
inc esi
cmp esi, 0x200
jge 0x40f069
movsx ecx, byte [ebp + esi - 0x20c]
cmp ecx, 0x1a
jne 0x40f053
add edi, dword [ebx + 0x115]
movsx eax, byte [ebp + esi - 0x20c]
cmp eax, 0x1a
jne 0x40f031
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411433
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 4
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push ebx
lea edx, [ebp - 4]
push edx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegQueryValueExA
mov eax, dword [ebx]
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x411468
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
push edx
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x411493
mov eax, dword [ebp - 8]
jmp 0x411495
xor eax, eax
pop ecx
pop ecx
pop ebp
ret

Function at 0x411499
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 3
cmp dword [ebp + 0x14], 0
jne 0x4114bf
push esi
push ebx
call fcn.00411468
add esp, 8
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], 0
je 0x4114e2
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
push 0
push esi
push ebx
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x4114e2
mov eax, dword [ebp + 0x14]
jmp 0x4114e4
xor eax, eax
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4124d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov ax, word [ebp + 0x10]
push eax
call fcn.004124b4
pop ecx
mov word [ebp - 4], ax
mov dx, word [ebp + 0x14]
push edx
call fcn.004124b4
pop ecx
mov word [ebp - 2], ax
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp + 0xc]
push dword [edx]
call sub.KERNEL32.dll_WriteFile
pop ecx
pop ecx
pop ebp
ret

Function at 0x41254b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, dword [ebp + 8]
mov ax, word [ebx]
push eax
call fcn.004124b4
pop ecx
mov word [ebp - 8], ax
mov dx, word [ebx + 4]
push edx
call fcn.004124b4
pop ecx
mov word [ebp - 6], ax
mov cl, byte [ebx + 8]
mov byte [ebp - 4], cl
mov al, byte [ebx + 9]
mov byte [ebp - 3], al
mov dl, byte [ebx + 0xa]
mov byte [ebp - 2], dl
push 0
lea ecx, [ebp - 0xc]
push ecx
push 7
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp + 0xc]
push dword [edx]
call sub.KERNEL32.dll_WriteFile
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4126e3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 4
push 9
push esi
push ebx
call fcn.004124d5
add esp, 0x10
mov ax, word [ebx + 4]
push eax
call fcn.004124b4
pop ecx
mov word [ebp - 4], ax
mov dx, word [ebx + 8]
push edx
call fcn.004124b4
pop ecx
mov word [ebp - 2], ax
push 0
lea ecx, [ebp - 8]
push ecx
push 4
lea eax, [ebp - 4]
push eax
push dword [esi]
call sub.KERNEL32.dll_WriteFile
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret