joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417530
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 8], 0
jb 0x417553
mov eax, dword [edi]
jmp 0x417555
mov eax, edi
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41767e
push dword [ebp - 4]
call fcn.00418b36
mov esi, eax
lea ebx, [edi + 0x18]
lea eax, [ebp - 0x10]
add esp, 4
cmp ebx, eax
je 0x4175ab
mov eax, dword [ebx]
cmp esi, eax
je 0x4175b8
test eax, eax
je 0x4175a7
push eax
call fcn.0042fb3b
add esp, 4
mov dword [ebx], esi
jmp 0x4175b8
test esi, esi
je 0x4175b8
push esi
call fcn.0042fb3b
add esp, 4
push dword [ebp - 4]
push 0
push dword [ebx]
call fcn.00431bc0
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418b36
add esp, 0x10
mov dword [ebp - 0x10], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
call fcn.00414180
cmp dword [edi + 0x14], 8
jb 0x417602
mov edi, dword [edi]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebx]
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x417655
test edi, edi
je 0x41764c
or esi, 0xffffffff
lea ecx, [edi + 4]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x41764c
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], esi
dec esi
jne 0x41764c
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x41767e
or esi, 0xffffffff
lea ecx, [edi + 4]
mov eax, esi
lock xadd dword [ecx], eax
jne 0x41767e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], esi
dec esi
jne 0x41767e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
push ebx
mov dword [ebp - 4], esi
mov dword [esi], 0
call fcn.0042fbb5
mov edi, eax
add esp, 4
test edi, edi
je 0x418787
lea edx, [ebx - 1]
test edx, edx
je 0x418782
mov esi, dword [ebp + 0x10]
mov ecx, edi
sub esi, edi
mov al, byte [esi + ecx]
xor al, 0x7b
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x418772
mov esi, dword [ebp - 4]
mov byte [edi + ebx - 1], 0
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
mov dword [esi], edi
neg ecx
or ecx, eax
push ecx
call fcn.0042fbb5
mov edi, dword [ebp - 4]
push ebx
push dword [edi]
mov esi, eax
push esi
call fcn.00431961
add esp, 0x10
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43f24a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0043442b
mov dword [ebp - 0x14], eax
cmp dword [0x46bbcc], edi
jne 0x43f33b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43f2c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43f41b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x43f41b
push 0x456dbc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43f41b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x46bbcc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46bbd0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46bbd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46bbdc], eax
test eax, eax
je 0x43f338
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46bbd8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43f360
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43f353
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x43f375
push 4
pop eax
jmp 0x43f41d
cmp dword [ebp - 0x14], edi
je 0x43f375
push dword [0x46bbcc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43f35a
mov eax, dword [0x46bbd8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x43f3d3
cmp dword [0x46bbdc], esi
je 0x43f3d3
push eax
call ebx
push dword [0x46bbdc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43f3d3
test eax, eax
je 0x43f3d3
call ecx
test eax, eax
je 0x43f3c8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43f3c8
test byte [ebp - 8], 1
jne 0x43f3d3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x43f403
mov eax, dword [0x46bbd0]
cmp eax, esi
je 0x43f400
push eax
call ebx
test eax, eax
je 0x43f400
call eax
mov edi, eax
test edi, edi
je 0x43f400
mov eax, dword [0x46bbd4]
cmp eax, esi
je 0x43f400
push eax
call ebx
test eax, eax
je 0x43f400
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x46bbcc]
call ebx
test eax, eax
je 0x43f41b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x43f41d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f2dd
leave
ret
Function at 0x44279d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00438fb7
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4427d5
xor eax, eax
jmp 0x442801
cmp esi, dword [ebp - 4]
je 0x4427fe
cmp dword [ebp + 0xc], 0
je 0x4427fe
push dword [edi + 0x9c]
call fcn.004423ab
push dword [edi + 0x9c]
mov esi, eax
call fcn.004346e1
pop ecx
pop ecx
cmp esi, eax
je 0x4427d1
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4bb52d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d734c]
xor eax, ebp
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.004bb4fd
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004aa0a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4bb591
cmp dword [ebp - 0x1c], 5
jb 0x4bb5a9
jmp 0x4bb5a5
cmp dword [ebp - 0x10], 1
jne 0x4bb5a9
cmp dword [ebp - 0x1c], 4
ja 0x4bb5a5
jne 0x4bb5a9
cmp dword [ebp - 0x18], 0
jbe 0x4bb5a9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x4d25c8
call fcn.00435f91
test eax, eax
jge 0x4bb5ca
mov byte [0x4d81a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b62ce
add ebp, 0x78
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
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
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4075562b
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..rdata
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1d1620b3
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4019e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
inc ebp
adc byte [ebp + 0x56501045], cl

Function at 0x4019f0
Capabilities:
Query or enumerate registry value

Disassembly:
inc ebp
adc byte [ebp + 0x56501045], cl
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a51
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x401a1f
cmp eax, 2
jne 0x401a3b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x401a4b
test ecx, ecx
je 0x401a46
test cl, 1
jne 0x401a3b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x401a4b
pop edi
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x409008], 0x8088405
inc edx
mov dword [ebx + 0x409008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x40bb10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov edx, dword [edi + 0x3c]
sub edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
sub edx, dword [edi + 0x6c]
add eax, 0xfffffefa
add eax, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x40bb9c
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00472fa0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
add esp, 0xc
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40bb6f
sub eax, esi
jmp 0x40bb71
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40bb60
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40bb8f
sub eax, esi
jmp 0x40bb91
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40bb80
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x40bc58
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x40bbc9
xor eax, eax
jmp 0x40bc1c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x40bbe6
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0040c670
jmp 0x40bbfe
cmp eax, 2
jne 0x40bc04
mov edx, dword [ebx]
test edx, edx
jne 0x40bbf5
xor eax, eax
jmp 0x40bc01
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.0040cdd0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.00472fa0
mov eax, dword [ebp - 4]
add dword [ebx], eax
add esp, 0xc
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x40bc44
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x40bc58
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40bb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f993
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40f9f0
push edi
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40f9e8
push dword [ebp + 0xc]
push dword [ebp - 4]
push edi
call fcn.0040f888
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40fb73
Capabilities:
Get file size

Disassembly:
push 0x148
mov eax, 0x49df00
call fcn.00473d21
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push eax
mov dword [ebp - 0x150], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40fc6c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push esi
push 4
push esi
push edi
mov dword [ebp - 0x154], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40fc65
push esi
push esi
push esi
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x40fc5e
push 1
lea eax, [ebp - 0x145]
push eax
push dword [ebp - 0x150]
lea ecx, [ebp - 0x144]
call fcn.00404000
mov dword [ebp - 4], esi
mov ecx, eax
call fcn.0040fd4f
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0047430a
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00401ac0
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x154]
push dword [ebp - 0x14c]
call fcn.0040fa37
add esp, 0xc
mov esi, eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00473cd0
ret

Function at 0x40fc74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0x7863513
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.004521fb
mov edx, eax
pop ecx
test edx, edx
je 0x40fcba
push edi
xor edi, edi
test ebx, ebx
je 0x40fcb9
sub esi, edx
mov eax, edi
and eax, 3
lea ecx, [edi + edx]
mov al, byte [ebp + eax - 4]
xor al, byte [esi + ecx]
inc edi
mov byte [ecx], al
cmp edi, ebx
jb 0x40fca3
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret
Function at 0x4129e6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x412a60
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x412a47
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x412a47
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x412a47
inc bl
jmp 0x412a60
xor eax, eax
test ecx, ecx
je 0x412a60
test bl, bl
jne 0x412a60
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x412a4d
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00473c52
leave
ret 4

Function at 0x412c8a
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x412d90
cmp byte [ebp + 0xc], 0
jne 0x412d3e
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x412d90
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x412d81
call fcn.004743d0
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x412d0d
xor eax, eax
jmp 0x412d21
lea eax, [edi + edi]
call fcn.00475020
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00412056
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00414d3d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x412d92
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x412d90
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412d80
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x412d21
lea eax, [esi + 2]
jmp 0x412d21
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473c52
leave
ret 0xc

Function at 0x41391d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x41392c
mov esi, dword [esi]
push esi
call fcn.00473c34
pop ecx
push 0
push dword [ebp + 0x10]
add eax, eax
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebp
ret 0x10
Function at 0x41d619
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x41d68f
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x41d651
push 0
push 0
jmp 0x41d691
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x41d64b
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x41d64b
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00472fa0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.00473c61
int3

Function at 0x420c8a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x28
mov eax, 0x4a1aee
call fcn.00473d21
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], 0x74736e49
mov dword [ebp - 0x24], 0x536c6c61
mov dword [ebp - 0x20], 0x6c656968
mov word [ebp - 0x1c], 0x64
cmp byte [ebp + 0xc], bl
je 0x420ccf
mov dword [ebp - 0x1b], 0x7a695720
mov dword [ebp - 0x17], 0x647261
push 1
lea eax, [ebp - 0x29]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.00411380
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], 1
mov eax, esi
call fcn.00473cd0
ret 8

Function at 0x42497f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x4249f9
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x4249e0
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x4249e0
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x4249e0
inc bl
jmp 0x4249f9
xor eax, eax
test ecx, ecx
je 0x4249f9
test bl, bl
jne 0x4249f9
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x4249e6
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00473c52
leave
ret 4
Function at 0x424c73
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4ed0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x424d79
cmp byte [ebp + 0xc], 0
jne 0x424d27
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x424d79
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x424d6a
call fcn.004743d0
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x424cf6
xor eax, eax
jmp 0x424d0a
lea eax, [edi + edi]
call fcn.00475020
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00412056
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00414b94
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x424d7b
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x424d79
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424d69
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x424d0a
lea eax, [esi + 2]
jmp 0x424d0a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473c52
leave
ret 0xc