joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30178d27
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.30178ca3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x30178e9f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x30178e9f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x30178e4e
jg 0x30178d80
test eax, eax
je 0x30178e44
push 1
push 0x1000
call fcn.301754d5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x30178da6
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x30178e3b
push 0x8000
push ebx
call fcn.3017083a
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x30178dd2
jg 0x30178dcd
cmp ecx, 0x1000
jb 0x30178dd2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.30177ebc
add esp, 0x10
cmp eax, 0xffffffff
je 0x30178e17
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x30178dcd
jl 0x30178dfe
test ecx, ecx
jne 0x30178dbf
push dword [ebp - 0xc]
push ebx
call fcn.3017083a
push esi
call fcn.30173929
add esp, 0xc
xor edi, edi
jmp 0x30178eb0
cmp byte [edi + 0x24], 0
je 0x30178e2e
cmp dword [edi + 0x20], 5
jne 0x30178e2e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x30178e39
mov edi, dword [edi + 0x18]
jmp 0x30178e3b
xor edi, edi
push esi
call fcn.30173929
pop ecx
jmp 0x30178eb0
test ecx, ecx
jg 0x30178e10
jl 0x30178e4e
test eax, eax
jae 0x30178e10
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.30178811
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x30178e71
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x30178e10
jmp 0x30178ea8
push ebx
call fcn.30178c39
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x30178e10
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x30178eb0
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x30178ead
mov edi, dword [edi + 0x18]
jmp 0x30178eb0
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.30178811
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x30179059
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.30178eca
Function at 0x3017b994
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x3017ba31
push ebx
push esi
call fcn.3017b95d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.3017b8a6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x3017b9de
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x3017ba30
push edi
push eax
call fcn.30173963
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x3017b9fe
call fcn.30173929
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x3017ba2f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.3017b8a6
add esp, 0x20
test eax, eax
jne 0x3017ba1d
push edi
call fcn.30173929
jmp 0x3017ba25
push ebx
call fcn.30173929
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x3017ba34
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x3017ba45
pop esi
ret
push ebx
push edi
push esi
call fcn.3017b95d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.30173963
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x3017ba6d
push ebx
push esi
push edi
call fcn.3015c210
add esp, 0xc
push 0
call fcn.30173929
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x3017c1b9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.3017bce0
Function at 0x6b09b8
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ecx
lea esp, [esp + 4]
jmp 0x70b747
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
jmp 0x6b09c9
jmp 0x6b086d
push 0x8e02f5d4
call fcn.006c0407
lea eax, [esi + ebp]
not ax
jmp 0x70b76a
rdtsc
stc
jmp 0x70b8c2
sub esi, 8
stc
jnp 0x70b816
jp 0x70b816
invalid
mov dword [esi], edx
setbe dl
mov edx, dword [esp]
mov dx, word [esp]
call fcn.0070b79f
clc
jmp 0x70b7f2
mov edx, esi
add edx, 4
jmp 0x70b86a
mov dword [edx], ebx
not bh
xchg dx, bx
inc dx
jmp 0x6c3cbc
jmp 0x70b7c7
xchg dx, bx
inc dx
jmp 0x6c3cbc
jge 0x70b7fd
mov dword [edx], ebx
not bh
jmp 0x70b836
mov dword [esi + 4], ecx
not ecx
mov ecx, 0x5f75f8e4
lea ecx, [esi + edi]
jmp 0x70b8ce
jne 0x70b773
je 0x70b773
mov dword [esi + 8], eax
lea ecx, reloc.WINMM.dll_midiStreamOut
mov ch, cl
call 0x70bd5f
dec esi
fnstcw word [eax]
sbb esi, dword [edx + 0x6d]
lea esp, [esp + 2]
jmp 0x70b8ac

Function at 0x6bba07
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp], esi
push word [esp]
jle 0x6bba20
pop dword [esp]
push dword [esp + 5]
jmp 0x6bba25
pop dword [esp]
jmp 0x6bba5a
push word [esp + 8]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
jmp 0x6bba6b
push dword [esp + 5]
push word [esp + 8]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
pushfd
jmp 0x6bba44
Function at 0x6c0671
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov word [esp + 1], bp
not dl
mov ebx, edi
jmp 0x6c0680
mov edx, edi
sub esp, 0x1a
ja 0x6c06c3
shl dh, cl
jmp 0x6c06ad
lea esp, [esp + 2]
mov ecx, eax
bswap edx
jmp 0x6c0757
shl dh, cl
lea esp, [esp + 2]
mov ecx, eax
bswap edx
mov cx, 0x1b48
inc ax
rcl ax, 0xe
ja 0x6c0704
xor dh, dh
jmp 0x6c071e
xchg cx, ax
lea edx, reloc.WINMM.dll_midiStreamOut
ror edi, 0
mov ax, 0xcb9f
jmp 0x6c0708
xor dh, dh
jmp 0x6c06e1
sub esp, 1
jb 0x6c073f
dec ax
mov dl, cl
neg ax
rdtsc
jmp 0x6c0776
xchg cx, ax
lea edx, reloc.WINMM.dll_midiStreamOut
jmp 0x6c06ea
neg ax
rdtsc
lea esp, [esp + 1]
jmp 0x6c0760
dec ax
mov dl, cl
jmp 0x6c0729
mov cx, 0x1b48
jmp 0x6c06d1
sub edi, 0x558bf56c
bswap edx
clc
jns 0x6c0792
js 0x6c077c
mov edi, 0x33c0a131
xor byte [eax + 0x648daab3], 0x24
add ebx, ebp
in al, 0x81
leave
mov ecx, ds
daa
xchg ebp, eax
lea esp, [esp + 1]
jmp 0x6c0760
or ecx, 0x9527d98c
lea edx, [esi + edi]
bsf ax, bp
jmp 0x6c0a3e
or ecx, 0x9527d98c
lea edx, [esi + edi]
bsf ax, bp
not dx
xchg dh, ch
bswap eax
xor edi, 0x2876ef56
jmp 0x6c0822
mov ax, word [esp]
mov ax, 0xd997
inc edi
jmp 0x6c07f9
mov ah, bl
xchg cx, dx
jmp 0x6c0808
mov eax, esi
mov edx, 0x78c16401
jmp 0x6c07ce
neg dh
jae 0x6c07d9
mov ah, bl
xchg cx, dx
jmp 0x6c08a4
sub ax, dx
setae cl
mov ecx, dword [esp]
mov edx, 0xc22eb9cc
jmp 0x6c0857
or ax, sp
je 0x6c07f0
mov eax, esi
mov edx, 0x78c16401
mov ax, word [esp]
mov ax, 0xd997
jmp 0x6c07d6
lea esp, [esp + 3]
lea esp, [esp + 0x1c]
jmp 0x6c0878
sub esp, 0x1f
jns 0x6c0838
lea esp, [esp + 3]
jmp 0x6c083c
add edi, dword [esi]
inc eax
jae 0x6c0889
sub esp, 0x1d
jmp 0x6c0917
inc edi
mov cx, 0x8b7a
xchg cx, ax
setb ah
mov edx, 0x63e21ea7
jmp 0x6c0862
sub esp, 0x1d
add esp, 0x13
mov dh, 0x22
lea esp, [esp + 2]
jmp fcn.006c08c8
sub ax, dx
setae cl
mov ecx, dword [esp]
jmp 0x6c0811
add esp, 0x13
mov dh, 0x22
lea esp, [esp + 2]
jmp fcn.006c08c8
not dx
xchg dh, ch
jmp 0x6c07a4
Function at 0x6c2cf8
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ecx, ebp
mov cx, di
lea ecx, [eax + ebx]
sets cl
lea ecx, [edi - 0x55]
push dword [esp]
ret 4
lea esi, [esi + 0x3f]
btr cx, ax
setp ch
lea ecx, [edx*4]
mov ch, al
xchg dword [esp], esi
jmp 0x6c284a
or al, 0x24
bswap ecx
lea ecx, reloc.WINMM.dll_midiStreamOut
sets ch
jmp 0x6c2907
mov ecx, edi
not ebx
mov dx, word [esp]
mov dh, byte [esp]
dec edx
jno 0x6c2d14
bswap ebx
mov eax, dword [esp]
jmp 0x6c2cf2
bswap ebx
mov eax, dword [esp]
call 0x6c2cf8
je 0x6c2c86
and al, 4
jmp 0x6c2d2e
lea edx, reloc.WINMM.dll_midiStreamOut
lea eax, [ecx + edi]
cmc
jmp 0x6c2d57
jmp 0x6c2ced
lea eax, [ecx + edi]
cmc
jmp 0x6c2d57
add edi, 0x2573984
bsr eax, edx
jae 0x6c2cfe
lea edx, reloc.WINMM.dll_midiStreamOut
jmp 0x6c2d16
bswap eax
jmp 0x6c2dd8
inc edi
neg eax
jg 0x6c2d41
bswap eax
mov ax, 0xc66d
mov edx, dword [esp]
mov ax, 0x4e7c
setle bh
jmp 0x6c2d89
mov bx, sp
mov al, byte [esp]
setle dh
mov bx, word [esp]
jmp 0x6c2db7
setle bh
rol edi, 0
xchg dh, ah
and bx, si
jmp 0x6c2dad
setle dh
mov bx, word [esp]
mov eax, 0xfca6ec87
jmp 0x6c2dbc
jo 0x6c2d6e
mov bx, sp
mov al, byte [esp]
jmp 0x6c2d93
mov eax, 0xfca6ec87
xor edi, 0x28b43642
bswap eax
mov bh, byte [esp]
jmp 0x6c2dfb
mov ax, 0xc66d
mov edx, dword [esp]
mov ax, 0x4e7c
jmp 0x6c2d86
mov ah, 0xbf
bswap ebx
jmp 0x6c2e0a
neg ax
jge 0x6c2de5
mov ah, 0xbf
bswap ebx
jmp 0x6c2e4b
sub esp, 0x1d
mov bx, 0x320a
lea esp, [esp + 1]
jmp 0x6c2e89
jmp 0x6c2e6c
rdtsc
jmp 0x6c2e9e
sub esp, 0x1d
mov bx, 0x320a
lea esp, [esp + 1]
jmp 0x6c2e15
add edi, dword [esi]
sub esp, 0xb
jae 0x6c2e19
rdtsc
mov eax, dword [esp + 6]
adc dx, cx
lea esp, [esp + 3]
jmp fcn.006c38b7
lea esp, [esp + 0x1c]
not edi
not ax
xchg ebx, eax
neg dx
jb 0x6c2e17
jae 0x6c2e6c
mov eax, dword [esp + 6]
adc dx, cx
lea esp, [esp + 3]
jmp fcn.006c38b7

Function at 0x6c34c3
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg byte [esp], dl
jmp 0x6c3507
mov dx, word [esp]
jmp 0x6c3518
mov byte [esp], dh
sub cl, al
mov dl, byte [esp]
mov dx, word [esp]
lea edx, [ecx + ebp]
jmp 0x6c34f1
dec edi
bt edx, ebp
ja 0x6c35a4
mov dx, word [esp]
bt ax, si
jmp 0x6c354d
rdtsc
mov eax, 0xb922920
mov dx, sp
jmp 0x6c357b
bt ax, si
rdtsc
mov eax, 0xb922920
mov dx, sp
mov eax, dword [esp]
call 0x6c3584
sal esi, 1
aam 0xb8
cmp byte [edx - 0x14], bh
sub dword [esi + reloc.WINMM.dll_midiStreamOut], esi
xchg dword [esp], ecx
jmp 0x6c36a3
mov dx, word [esp]
jmp 0x6c356d
bts dx, bx
push dword [esp]
ret 4
mov dx, 0x4297
lea eax, [ebp - 5]
xchg dword [esp], ecx
mov ax, bx
rdtsc
xchg dx, ax
jmp 0x6c35d6
xchg dx, ax
mov ax, word [esp]
mov ax, 0xa733
lea ecx, [ecx - 0x4c]
bsr eax, ebx
mov edx, esi
jmp 0x6c3608
Function at 0x6e4ae2
Capabilities:
Encode data using base64

Disassembly:
call fcn.006e4bdc
mov dword [esp + 4], ebx
jmp 0x6e4afc
bsf edx, ebx
btc edx, edx
mov dx, 0x247f
jmp 0x6e4ab4
or eax, edx
jmp 0x6e4aca
or eax, ecx
not si
mov cl, 0xe5
jmp 0x6e4b06
lea esp, [esp + 4]
push esi
shl eax, 8
jmp 0x6e4ae6
pushal
setne bh
lea ecx, [ebp*4]
mov dword [esp + 0x18], eax
popal
jmp 0x6e4bca
mov edx, eax
sub esp, 0x10
dec esi
lea esi, [edi*4]
jmp 0x6e4b8b
xchg dx, si
pop ebx
mov dl, byte [esp]
bsf esi, eax
xchg dh, dl
jmp 0x6e4b34
and ecx, ebx
cmc
jmp 0x6e4bac
shr ecx, 0x12
shr edx, 0xc
shr esi, 6
jmp 0x6e4b58
pushal
mov dx, bx
mov dword [esp + 4], eax
popal
jmp 0x6e4b6e
clc
push edi
jmp 0x6e4bb4
and edx, ebx
and esi, ebx
and eax, ebx
jmp 0x6e4b96
lea esp, [esp + 0x14]
cmp ecx, 0x1a
jmp 0x6e4c28
setge bl
mov bh, byte [esp]
mov bh, byte [esp]
add bl, bh
push 0x3f
jmp 0x6e4b4a
jae 0x6ae0ef
lea ebx, [ebx + ebp]
push bx

Function at 0x70b79f
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg ebx, eax
jmp 0x70b7a6
mov dx, 0xc415
neg dh
js 0x70b7ee
mov dx, bp
jmp 0x70b7d8
mov dx, bp
clc

Function at 0x75d72a
Capabilities:
Encode data using xor

Disassembly:
push 0x8e026653
call fcn.006c0407
insb byte es:[edi], dx
loopne 0x75d7ad
adc eax, esp
push ebx
xchg edx, eax
sbb eax, 0xe327d48d
in al, dx
lds ecx, [esi + 0x34]
mov edi, 0xab9ad571
imul eax, dword [ebp - 0x3a], 0xef09660f
adc dword [ebx], 0x76
test dword [edx], esi
xlatb
inc esp
fidivr dword [ebp - 0xe9c75b4]
popal
add bl, dh
inc eax
arpl dx, si
pushal
pop es
xor esp, dword [edi - 9]
add dh, cl
jg 0x75d757
jle 0x75d78a
call 0x957b6acc
cld
invalid
adc al, bl
pop ecx
leave
test al, 0x5b
jmp 0x4f9e91b8
push es
mov eax, 0x2643d36f
aad 0x54
salc
push esp
retf 0x5cad
Function at 0x4133a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6f66
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x516b28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.GlobalAllocator.0
xor edi, edi
push 0x10000
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.004bf755
add esp, 4
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
lea eax, [ebp - 0xd]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
push eax
lea edx, [ebp - 0xd]
lea ecx, [esi + 0x68]
push edx
mov dword [ebp - 4], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
call fcn.00412130
mov al, 1
mov byte [ebp - 4], al
mov byte [esi + 0x88], al
lea eax, [esi + 0x8c]
push eax
call dword [section..rdata]
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov eax, 0x2800000
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0x100000
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b79d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d77a8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x516b28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00410bc0
lea eax, [esi + 0x10]
lea edi, [eax + 4]
push edi
mov dword [ebp - 0x10], eax
call dword [0x4d8008]
mov dword [ebp - 4], 0
call fcn.00410be0
mov ebx, dword [esi + 4]
lea eax, [ebx + 1]
push eax
mov ecx, esi
call sym.AirGame.exe_public:_void___thiscall_hx::ArrayBase::EnsureSize_int_const
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ecx + ebx*4]
mov dword [eax], edx
mov eax, dword [esi + 0x30]
push eax
call dword [0x4d8018]
push edi
mov dword [ebp - 4], 0xffffffff
call dword [0x4d800c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b7f90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d756f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x516b28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x14
call sym.AirGame.exe_public:_static_void____cdecl_hx::Object::operator_new_unsigned_int__bool_
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4b7fe7
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ecx], edx
mov ecx, eax
mov dword [ebp - 0x14], esp
call fcn.004b7e50
mov esi, eax
jmp 0x4b7fe9
xor esi, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00410240
push 0
push 0
push esi
push 0x4b7710
push 0
push 0
call fcn.004c075f
add esp, 0x18
call fcn.00410bc0
mov eax, dword [esi + 8]
mov ecx, dword [eax]
push 0xffffffffffffffff
push ecx
call dword [0x4d801c]
call fcn.00410be0
mov edi, dword [esi + 8]
test edi, edi
je 0x4b8040
mov eax, dword [edi]
test eax, eax
je 0x4b8037
push eax
call dword [0x4d8014]
push edi
call fcn.004be12d
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 8], 0
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b8430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x516b28]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x4f0b6c
lea ecx, [ebp + 0xc]
call sym.AirGame.exe_public:_wchar_t_const____thiscall_String::__WCStr_void_const
push eax
call fcn.004c1f86
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b847b
mov dword [esi], eax
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfa7
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x800
lea eax, [ebp - 0x808]
push 1
push eax
call fcn.004c1ea3
push edi
mov ebx, eax
call fcn.004c1b87
add esp, 0x14
cmp ebx, 1
jge 0x4b84c0
pop ebx
pop edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcfa7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x808]
mov byte [ebp + ebx - 0x808], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b84d1
lea ecx, [ebp - 0x808]
sub eax, edx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
pop ebx
mov dword [esi], eax
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004bcfa7
mov esp, ebp
pop ebp
ret
Function at 0x10002920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push str.VirtualAlloc
mov edi, esp
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.1001ff70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1001ff70
mov dword [0x101eb85c], eax
pop edi
pop esi
pop ebx
add esp, 0x40
cmp ebp, esp
call fcn.1001ff70
mov esp, ebp
pop ebp
ret

Function at 0x10002a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push str.VirtualProtect
mov edi, esp
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp edi, esp
call fcn.1001ff70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.1001ff70
mov dword [0x101eb854], eax
pop edi
pop esi
pop ebx
add esp, 0x40
cmp ebp, esp
call fcn.1001ff70
mov esp, ebp
pop ebp
ret
Function at 0x10004f44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x10005043
call fcn.100e0642
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10004feb
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10004fbc
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0x101d9150
call fcn.100542d5
add esp, 8
xor eax, eax
jmp 0x1000508c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10004fe3
push 0x146
push str.occmgr.cpp
call fcn.100d7320
test eax, eax
je 0x10004fe3
int3
xor edx, edx
test edx, edx
jne 0x10004fc9
jmp 0x10005043
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x1000500e
push 0x14e
push str.occmgr.cpp
call fcn.100d7320
test eax, eax
je 0x1000500e
int3
xor edx, edx
test edx, edx
jne 0x10004ff4
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x10005043
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x10005038
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0x101d9190
call fcn.100542d5
add esp, 8
jmp 0x10005043
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x10005014
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x1000506a
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
call dword [edx + 0x1c]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x10005089
cmp dword [ebp - 8], 0
je 0x10005089
mov eax, dword [ebp - 8]
push eax
call fcn.10004870
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10042500
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.10024a80
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x100425cb
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 0x100425cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x1004257e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x10042589
or bh, 8
and edi, 0x8000000
je 0x100425a4
mov eax, dword [0x101ef7fc]
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 0x100425cb
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