joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b569c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x100b7168
sub eax, eax
test esi, esi
je 0x100b5774
sub eax, 1
test ecx, ecx
je 0x100b5772
test esi, 3
je 0x100b56da
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x100b56bf
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x100b5759
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x100b56e4
mov ecx, edx
test ecx, ecx
je 0x100b5772
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x100b575f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x100b577c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.100b57ff
jae 0x100b578a
xor ecx, ecx
call fcn.100b57ff
jae 0x100b57b9
xor eax, eax
call fcn.100b57ff
jae 0x100b57c9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.100b57ff
adc al, al
jae 0x100b57ab
jne 0x100b57f5
stosb byte es:[edi], al
jmp 0x100b578d
call fcn.100b580b
sub ecx, ebx
jne 0x100b57d2
call fcn.100b5809
jmp 0x100b57f1
lodsb al, byte [esi]
shr eax, 1
je 0x100b581b
adc ecx, ecx
jmp 0x100b57ee
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.100b5809
cmp eax, 0x7d00
jae 0x100b57ee
cmp ah, 5
jae 0x100b57ef
cmp eax, 0x7f
ja 0x100b57f0
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100b578d
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x100b614c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100b9000]
jne 0x100b6156
repz ret
jmp fcn.100b63fd

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x34da0e2d
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6b080bbc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x43005ffd
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..rsrc_1
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x12ec2e87
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x415f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x415f69
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415fa4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x415fa0
lea ebx, [ebx]
cmp esi, eax
jae 0x415fa4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x415f90
cmp esi, eax
jb 0x415faa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x421680
Capabilities:
Extract resource via kernel32 functions
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x4b0c90]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x11c]
push ebx
push ebp
push esi
push edi
push eax
movzx eax, word [esp + 0x12c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebp, eax
push 0
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test esi, esi
mov ebx, eax
je 0x4217b7
test edi, edi
je 0x4217b7
test ebp, ebp
je 0x4217b7
test ebx, ebx
je 0x4217b7
push 0x104
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [0x4ba2dc], 0
je 0x42171b
push str.SysWOW64drivers_rtport.sys
lea edx, [esp + 0x1c]
push edx
jmp 0x421725
push str._system32drivers_rtport.sys
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea ecx, [esp + 0x30]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x42176e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x42176e
mov eax, 1
jmp 0x4217b9
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x30]
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x4217af
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4217b9
mov edi, dword [esp + 0x10]
mov eax, edi
jmp 0x4217b9
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00483e52
add esp, 0x114
ret
Function at 0x4217e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x108
mov eax, dword [0x4b0c90]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x4ba2dc], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x42184e
mov dword [0x4b9c70], 0
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00483e52
add esp, 0x108
ret
test esi, esi
mov dword [0x4b9c70], 1
je 0x421873
push 0x4ba2dc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [0x4b9c70], 0
je 0x421832
mov eax, dword [esp + 0x114]
push edi
push eax
call fcn.00421680
add esp, 8
test eax, eax
je 0x42190c
push str.._rtport
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea edx, [esp + 0x20]
push edx
call esi
cmp eax, 0xffffffff
mov dword [0x4b9c74], eax
jne 0x421832
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
jne 0x42190c
call fcn.00421970
test eax, eax
je 0x42190c
push 1
call fcn.00421a40
add esp, 4
test eax, eax
jne 0x421925
push 2
call fcn.00421a40
push 1
call fcn.00421a40
add esp, 8
test eax, eax
jne 0x421925
push 2
call fcn.00421a40
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00483e52
add esp, 0x108
ret
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x20]
push eax
call esi
cmp eax, 0xffffffff
mov dword [0x4b9c74], eax
jne 0x421832
call edi
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00483e52
add esp, 0x108
ret

Function at 0x421970
Capabilities:
Get common file path

Disassembly:
push 0x4b9b68
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x42198d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rtport.sys
push 0x4b9b68
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x4b9b68
call esi
cmp eax, 0xffffffff
jne 0x421a1e
push 0x104
push 0x4b9b68
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4219e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
ret
cmp dword [0x4ba2dc], 0
je 0x4219f4
push str.SysWOW64drivers_rtport.sys
jmp 0x4219f9
push str._system32drivers_rtport.sys
push 0x4b9b68
call edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push 0x4b9b68
call esi
cmp eax, 0xffffffff
je 0x4219df
test eax, eax
je 0x421a29
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
Function at 0x421c00
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebx
lea eax, [esp + 4]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x421c27
push esi
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
pop ebx
add esp, 0x1c
ret
Function at 0x45e8d0
Capabilities:
Capture microphone audio

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
jle 0x45e941
push ebp
mov ebp, dword [sym.imp.WINMM.dll_waveInPrepareHeader]
push esi
nop
push 0x20
call fcn.004745ed
mov esi, eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
movzx eax, word [edi + 0x68]
imul eax, eax, 0x3e8
push eax
call fcn.0047461d
mov dword [esi], eax
movzx ecx, word [edi + 0x68]
imul ecx, ecx, 0x3e8
add esp, 8
push 0x20
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x48]
push esi
push edx
call ebp
mov eax, dword [edi + 0x48]
push 0x20
push esi
push eax
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
sub ebx, 1
jne 0x45e8e0
pop esi
pop ebp
pop ebx
ret
Function at 0x45f160
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2014
call fcn.00489020
push esi
push edi
push 0x4a4020
lea eax, [esp + 0x14]
push str.ad.wav
push eax
call fcn.00483a5d
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x45f19f
mov esi, dword [0x4b9d9c]
push 0xff
mov ecx, str.______Fail_open_file_for_Check_THDN
call fcn.00468240
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov esi, 0x61a9
mov ecx, dword [esp + 0x10]
push ecx
push 1
lea edx, [esp + 0x14]
push 2
push edx
call fcn.00483d49
add esp, 0x10
sub esi, 1
jne 0x45f1b1
lea esp, [esp]
mov eax, dword [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x14]
push 2
push ecx
call fcn.00483d49
movsx edx, word [esp + 0x1c]
mov dword [esp + esi*4 + 0x28], edx
add esi, 1
add esp, 0x10
cmp esi, 0x800
jl 0x45f1d0
lea ecx, [esp + 0x20]
mov eax, 0x4b65b8
fild dword [ecx - 8]
add eax, 0x20
add ecx, 0x40
cmp eax, 0x4b6db8
fstp dword [eax - 0x24]
fild dword [ecx - 0x40]
fstp dword [eax - 0x20]
fild dword [ecx - 0x38]
fstp dword [eax - 0x1c]
fild dword [ecx - 0x30]
fstp dword [eax - 0x18]
fild dword [ecx - 0x28]
fstp dword [eax - 0x14]
fild dword [ecx - 0x20]
fstp dword [eax - 0x10]
fild dword [ecx - 0x18]
fstp dword [eax - 0xc]
fild dword [ecx - 0x10]
fstp dword [eax - 8]
jl 0x45f203
fld dword [0x4a8844]
sub esp, 8
fstp dword [esp + 4]
fld dword [0x4a8840]
fstp dword [esp]
call fcn.0045f350
fstp dword [0x4b6db4]
lea ecx, [esp + 0x24]
mov eax, 0x4b65b8
lea ebx, [ebx]
fild dword [ecx - 8]
add eax, 0x20
add ecx, 0x40
cmp eax, 0x4b6db8
fstp dword [eax - 0x24]
fild dword [ecx - 0x40]
fstp dword [eax - 0x20]
fild dword [ecx - 0x38]
fstp dword [eax - 0x1c]
fild dword [ecx - 0x30]
fstp dword [eax - 0x18]
fild dword [ecx - 0x28]
fstp dword [eax - 0x14]
fild dword [ecx - 0x20]
fstp dword [eax - 0x10]
fild dword [ecx - 0x18]
fstp dword [eax - 0xc]
fild dword [ecx - 0x10]
fstp dword [eax - 8]
jl 0x45f270
fld dword [0x4a8844]
sub esp, 8
fstp dword [esp + 4]
fld dword [0x4a8840]
fstp dword [esp]
call fcn.0045f350
fstp dword [0x4b6db8]
fld dword [0x4b6db4]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [0x4b6dbc]
fld dword [0x4b6db8]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [0x4b6dc0]
fld dword [0x4b6dbc]
call fcn.004899a0
cmp eax, 0x28
jl 0x45f324
fld dword [0x4b6dc0]
call fcn.004899a0
cmp eax, 0x28
mov dword [0x4b9fbc], 1
jge 0x45f32e
mov dword [0x4b9fbc], 0
mov eax, dword [esp + 0x10]
push eax
call fcn.00483dd6
mov eax, dword [0x4b9fbc]
add esp, 4
pop edi
pop esi
add esp, 0x2014
ret
Function at 0x468240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49e868
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4b0c90]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push edi
mov eax, dword [0x4b0c90]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
push 0
mov edi, ecx
call fcn.0048583f
add esp, 4
push 0xffffffffffffffff
lea ebx, [esi + 0x360]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.00477201
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.00477248
mov ecx, dword [ebp + 8]
mov eax, 0x40000000
xor dword [esp + 0x3c], eax
lea edx, [esp + 0x34]
mov dword [esp + 0x48], ecx
push edx
mov ecx, ebx
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x3c], eax
call fcn.0047722a
push edi
lea ecx, [esp + 0x14]
call fcn.00415ce0
xor eax, eax
cmp edi, eax
mov dword [esp + 0x80], eax
je 0x4682ee
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4682e3
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004160a0
push 2
push 0x4a7f44
lea ecx, [esp + 0x18]
call fcn.00474200
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x380]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0
push 0xc2
push ecx
call edi
mov edx, dword [esi + 0x380]
push 0
push 0
push 0xba
push edx
call edi
cmp eax, 0x400
jle 0x468368
push 0x80
mov ecx, ebx
call fcn.004771d1
push eax
push 0
mov ecx, ebx
call fcn.00477201
mov eax, dword [esi + 0x380]
push 0x4a4459
push 0
push 0xc2
push eax
call edi
mov edx, dword [esi + 0x380]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x380]
push 0
push 0
push 0xe
push eax
call edi
mov edx, dword [esi + 0x380]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0xd6
push edx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
jle 0x468400
sub eax, ecx
cmp eax, 0x190
push 0
mov ecx, ebx
jle 0x4683c2
push 0x14
jmp 0x4683c4
push 1
call fcn.004771e8
mov ecx, dword [esi + 0x380]
push 0
push 0
push 0xe
push ecx
call edi
push eax
mov eax, dword [esi + 0x380]
lea edx, [esp + 0x18]
push edx
push 0xd6
push eax
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
jg 0x4683b1
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46842b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00483e52
mov esp, ebp
pop ebp
ret 4
Function at 0x4767a6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4b0c90]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4767e6
push 0x4a0c08
push 4
push eax
call fcn.004850a3
push eax
call fcn.004285e0
add esp, 0x10
jmp 0x4767f8
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x476866
push edi
call fcn.004875b7
mov edi, dword [eax]
call fcn.004875b7
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00488f21
add esp, 0x18
mov ebx, eax
call fcn.004875b7
cmp dword [eax], 0
je 0x476846
call fcn.004875b7
push dword [eax]
call fcn.004747c1
pop ecx
jmp 0x47684d
call fcn.004875b7
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x476866
cmp ebx, esi
jae 0x476866
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x476868
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00483e52
leave
ret
Function at 0x47d67d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x47d6c0
call fcn.0047ee74
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x47d6c0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x47d6db
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0047d234
test ebx, ebx
mov esi, eax
je 0x47d6d9
test edi, edi
je 0x47d6d9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x483aad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x483aea
cmp dword [ebp + 0x14], edi
je 0x483aea
cmp ecx, edi
jne 0x483af1
call fcn.004875b7
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048a17b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x483b05
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x483b26
cmp ebx, 0xffffffff
je 0x483b15
push ebx
push edi
push ecx
call fcn.004877b0
add esp, 0xc
cmp esi, edi
je 0x483ad2
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x483ad2
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x483b42
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x483b49
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x483c3a
test word [esi + 0xc], 0x10c
je 0x483b9d
mov eax, dword [esi + 4]
test eax, eax
je 0x483b9d
jl 0x483c9b
cmp ebx, eax
mov edi, ebx
jb 0x483b6e
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x483c42
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004841c2
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x483c32
cmp ebx, dword [ebp - 0xc]
jb 0x483c0a
cmp dword [ebp - 0xc], 0
je 0x483bc7
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x483bbc
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x483bc3
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x483bd2
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x483bd2
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x483c6e
push eax
push dword [ebp - 8]
push esi
call fcn.0048c429
pop ecx
push eax
call fcn.0048c32c
add esp, 0xc
test eax, eax
je 0x483cad
cmp eax, 0xffffffff
je 0x483c9b
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x483c32
push esi
call fcn.0048bc4b
cmp eax, 0xffffffff
pop ecx
je 0x483c9f
cmp dword [ebp - 4], 0
je 0x483c6e
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x483b51
mov eax, dword [ebp + 0x14]
jmp 0x483aec
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x483c59
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004877b0
add esp, 0xc
call fcn.004875b7
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x483ae2
cmp dword [ebp + 0xc], 0xffffffff
je 0x483c84
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004877b0
add esp, 0xc
call fcn.004875b7
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x483ae2
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x483aec
or dword [esi + 0xc], 0x10
jmp 0x483c9f
Function at 0x483e52
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b0c90]
jne 0x483e5c
repz ret
jmp fcn.0048c76a

Function at 0x48cfc1
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 + 0x4b11b8]
je 0x48cfdc
inc edi
cmp edi, 0x17
jb 0x48cfcd
cmp edi, 0x17
jae 0x48d15c
push ebp
push 3
call fcn.00496a59
cmp eax, 1
pop ecx
je 0x48d128
push 3
call fcn.00496a59
test eax, eax
pop ecx
jne 0x48d010
cmp dword [0x4b0c8c], 1
je 0x48d128
cmp ebx, 0xfc
je 0x48d15b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4b93b8
push ebp
call fcn.004850a3
add esp, 0xc
test eax, eax
je 0x48d046
push esi
push esi
push esi
push esi
push esi
call fcn.0048a07f
add esp, 0x14
push 0x104
mov esi, 0x4b93d1
push esi
push 0
mov byte [0x4b94d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48d08a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004850a3
add esp, 0xc
test eax, eax
je 0x48d08a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048a07f
add esp, 0x14
push esi
call fcn.00486dc0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48d0cf
push esi
call fcn.00486dc0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4b96cc
push 0x4a2cd4
sub ecx, eax
push ecx
push eax
call fcn.0048904b
add esp, 0x14
test eax, eax
je 0x48d0cf
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048a07f
add esp, 0x14
jmp 0x48d0d1
xor esi, esi
push 0x4a2cd0
push ebx
push ebp
call fcn.00484528
add esp, 0xc
test eax, eax
je 0x48d0f1
push esi
push esi
push esi
push esi
push esi
call fcn.0048a07f
add esp, 0x14
push dword [edi*8 + 0x4b11bc]
push ebx
push ebp
call fcn.00484528
add esp, 0xc
test eax, eax
je 0x48d113
push esi
push esi
push esi
push esi
push esi
call fcn.0048a07f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049689c
add esp, 0xc
jmp 0x48d15b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48d15b
cmp ebp, 0xffffffff
je 0x48d15b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b11bc]
push dword [esi]
call fcn.00486dc0
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