joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7720f10a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x7720f120
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x7720f131
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.7720f172
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x772114de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x77211427
add ebx, 0
push ecx
call 0x7721143c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c87a32d
sub ebx, dword [0x6c899b6c]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c899b5c
call fcn.7720cf06
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.7720c414
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x7721159a
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x7721159a
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x77211551
mov eax, 1
lock xchg dword [0x6c899b68], eax
push 0x3dd1fc71
call 0x772114de
push esi
add esp, 8
cmp eax, 0
jne 0x772114c7
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x772114ed
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x77211502
cmp ecx, edx
cmp eax, 0
je 0x77211527
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x77211511
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.77211540
dec eax
loope 0x77211543
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c899b68], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x77211577
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x7721158c
jmp 0x77211597
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x77211485
Function at 0x772185ff
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x772188d5
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c8867e0
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c87d7a6
push 0xffffffffffffffff
call fcn.7720f7ff
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x77218669
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.77218681
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x772188c9
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x7721889d
Function at 0x772280cf
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x772280f1
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x772280f1
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x772280f1
ret
cmp word [ebx + 4], 0x14c
jne 0x772280f1
test word [ebx + 0x16], 2
je 0x772280f1
test word [ebx + 0x16], 0x100
je 0x772280f1
cmp word [ebx + 0x18], 0x10b
jne 0x772280f1
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x772280f1
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x7722817d
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77228111
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7720f05c
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x772280f1
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x7722817d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x772280f1
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x772280f1
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x772280f1
ret
cmp word [ebx + 4], 0x14c
jne 0x772280f1
test word [ebx + 0x16], 2
je 0x772280f1
test word [ebx + 0x16], 0x100
je 0x772280f1
cmp word [ebx + 0x18], 0x10b
jne 0x772280f1
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x772280f1
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x7722817d
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x77228111
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.7720f05c
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x772280f1
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x77228234
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x7722828d
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77228234
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77228243
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7762dee6
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77228294
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7720f10a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77228333
add edi, 4
add eax, 2
dec ecx
jne 0x77228279
call 0x772282e0
loope 0x772282d6
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77228330
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77228341
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x772282f4
cmp eax, ecx
ja 0x772282f4
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x7722837e
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x77228374
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7720f5e9
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x77228243
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x7722828d
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x77228234
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x77228243
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x7762dee6
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x77228294
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.7720f10a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x77228333
add edi, 4
add eax, 2
dec ecx
jne 0x77228279
call 0x772282e0
loope 0x772282d6
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x77228330
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x77228341
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x772282f4
cmp eax, ecx
ja 0x772282f4
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x7722837e
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x77228374
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.7720f5e9
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x404299
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a0a0
cmp edx, dword [eax]
je 0x4042bb
add eax, 8
inc ecx
cmp eax, 0x40a130
jl 0x4042ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a0a0]
jne 0x4043e9
mov eax, dword [0x40a6c0]
cmp eax, 1
je 0x4043c3
test eax, eax
jne 0x4042ec
cmp dword [0x409dd4], 1
je 0x4043c3
cmp edx, 0xfc
je 0x4043e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x404323
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004050d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404450
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404366
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404450
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408374
push edi
call fcn.00405640
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004050d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004050e0
lea eax, [ebp - 0xa0]
push 0x408354
push eax
call fcn.004050e0
push dword [esi + 0x40a0a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004050e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004055b0
add esp, 0x2c
pop edi
jmp 0x4043e9
lea eax, [ebp + 8]
lea esi, [esi + 0x40a0a4]
push 0
push eax
push dword [esi]
call fcn.00404450
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x5d1f3428
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
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
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x567a7fb4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401490
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
push 0
push str.data
mov edi, ecx
call esi
push 0
push str.data_aiconfig
call esi
mov eax, dword [0x6b917c]
movzx ecx, word [eax + 0x129]
push ecx
lea edx, [ebp - 0x44]
push str.._data_aiconfig__d.dat
push edx
call fcn.0056d930
push 0x58b640
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0056d8e9
mov eax, dword [ebp - 0x48]
add esp, 0x18
test eax, eax
je 0x401513
push eax
push 1
push 0x1c64
add edi, 0xec
push edi
call fcn.0056d79c
mov edx, dword [ebp - 0x48]
push edx
call fcn.0056d5d1
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret

Function at 0x404e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6b917c]
push esi
mov esi, ecx
movzx ecx, word [eax + 0x129]
push edi
push ecx
lea edx, [ebp - 0x44]
push str.._data_aiconfig__d.dat
push edx
call fcn.0056d930
push 0x1c64
lea edi, [esi + 0xec]
push 0
push edi
call fcn.0056d420
push 0x58b700
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0056d8e9
mov eax, dword [ebp - 0x48]
add esp, 0x24
test eax, eax
je 0x404f10
push eax
push 1
push 0x1c64
push edi
call fcn.0056deb5
mov edx, dword [ebp - 0x48]
push edx
call fcn.0056d5d1
add esp, 0x14
call fcn.00404230
mov eax, dword [eax + 0x228]
imul eax, eax, 0x64
mov dword [ebp - 0x4c], eax
fild dword [ebp - 0x4c]
test eax, eax
jns 0x404ed6
fadd dword [0x58b680]
fstp dword [esi + 0xe0]
call fcn.00404230
mov ecx, dword [eax + 0x22c]
imul ecx, ecx, 0x64
mov dword [ebp - 0x4c], ecx
fild dword [ebp - 0x4c]
test ecx, ecx
jns 0x404efa
fadd dword [0x58b680]
pop edi
fstp dword [esi + 0xe8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00404640
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret

Function at 0x40aa50
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0
push eax
push 0x40a9d0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x6aacf4], eax
pop ebp
ret 4
Function at 0x40b090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov ecx, 0x6acaa0
call fcn.00424550
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x6aa7d4], esi
call ebx
mov edi, eax
push 7
add edi, edi
call ebx
mov esi, eax
push 4
add esi, esi
call ebx
lea ecx, [esi + eax]
mov esi, dword [0x6e3dd4]
xor edx, edx
mov eax, esi
div dword [0x6e3360]
mov eax, dword [0x6e3364]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x40b0ee
cmp dword [edx], esi
je 0x40b135
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x40b0e3
mov edx, dword [ebp + 8]
push 0
push edx
push 0
push 0
add ecx, 0x300
push ecx
add edi, 0x400
push edi
push 0
push 0x80000000
push 0x2ca0000
push 0x6aa7d8
push 0x6aa9f0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [0x6aa7c0], esi
test esi, esi
jne 0x40b154
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edx + 4]
test edx, edx
je 0x40b0ee
mov eax, dword [ebp + 8]
push 0
push eax
mov eax, dword [edx + 8]
push 0
add eax, ecx
mov ecx, dword [edx + 4]
push 0
push eax
add ecx, edi
push ecx
jmp 0x40b106
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
mov ecx, 0x6aad20
call fcn.0040c7c0
cmp dword [0x6bb0a8], 0
push 0
mov ecx, 0x6aad20
push 0
jne 0x40b1a4
push 1
call fcn.0040c620
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 2
call fcn.0040c620
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x40b990
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040aa50
mov eax, dword [ebp + 0x10]
mov dword [0x6aa7b8], 0
mov ecx, str.gvkc9jw0ot0Ut
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b9d2
test dl, dl
je 0x40b9ce
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b9d2
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b9b2
xor eax, eax
jmp 0x40b9d7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40b9f8
push 0
push str.Error__
push 0x58bb24
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040acc0
test eax, eax
je 0x40b9ef
push esi
call fcn.0040aa50
push str.._Log_Debug.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x58bb10
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._______________________________________________________
push 0x6c8810
call fcn.00515310
push str._____________________Client_Start______________________
push 0x6c8810
call fcn.00515310
push str._______________________________________________________
push 0x6c8810
call fcn.00515310
add esp, 0x18
call fcn.0040ac30
mov ecx, 0x6c9de8
call fcn.0051f680
push 0x6e3232
push 0x6aa7d8
call fcn.0056d930
push 0x6e3232
push 0x6aa9f0
call fcn.0056d930
push esi
call fcn.0040b930
add esp, 0x14
mov ecx, 0x6c9de8
call fcn.00521ea0
push str.._Resource_QuestScript_QuestString.bin
mov ecx, 0x6c6a68
call fcn.004e8450
push str.._Resource_QuestScript_QuestScript.bin
mov ecx, 0x6c6a68
call fcn.004e9010
push str.._Resource_QuestScript_NewbieGuide.bin
mov ecx, 0x6c6a68
call fcn.004e7150
push str.._Resource_QuestScript_QuestNpcList.bin
mov ecx, 0x6c6a68
call fcn.004e8620
mov ecx, 0x6b8700
call fcn.00432770
mov eax, dword [ebp + 0x14]
push eax
push esi
call fcn.0040b090
add esp, 8
test eax, eax
jne 0x40baf4
call fcn.0040acd0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x40bb28
lea edx, [ebp - 0x1c]
push edx
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
jmp 0x40bb08
mov ecx, 0x6aad20
call fcn.0040cb30
cmp eax, 0xffffffff
jne 0x40bb08
call fcn.0040acd0
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41f100
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x6a9068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x130], eax
cmp eax, ebx
je 0x41f30a
cmp byte [eax], bl
je 0x41f30a
lea eax, [ebp - 0x118]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0x118], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f30a
mov edx, dword [ebp - 0x118]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x11c]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x41f18c
mov dword [ebp - 0x11c], 0x64
push edi
xor edi, edi
mov dword [ebp - 0x12c], ebx
cmp dword [ebp - 0x11c], ebx
jbe 0x41f2e5
push esi
xor eax, eax
push edi
push str._04u
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], al
lea eax, [ebp - 0xc]
push 5
push eax
call fcn.0041f5b0
mov eax, dword [ebp - 0x118]
add esp, 0x10
lea ecx, [ebp - 0x114]
push ecx
push 0x20019
push ebx
lea edx, [ebp - 0xc]
push edx
push eax
mov dword [ebp - 0x114], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f2a5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x124]
push eax
push ebx
push str.NetCfgInstanceId
push ecx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], 0x104
call esi
test eax, eax
je 0x41f237
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f2a5
mov eax, dword [ebp - 0x130]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41f25e
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41f2a5
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x124]
push edx
push ebx
push str.Characteristics
push eax
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x120], 4
call esi
mov ecx, dword [ebp - 0x114]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x41f2d8
inc edi
cmp edi, dword [ebp - 0x11c]
jb 0x41f1a2
mov eax, dword [ebp - 0x118]
pop esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x12c]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], edx
pop esi
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x12c]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0056d9d2
mov esp, ebp
pop ebp
ret 4
Function at 0x41f320
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x41f361
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push eax
push str.GetMAC_Failed__ErrorCode:__d
push 0x12
push ecx
call fcn.0041f5b0
add esp, 0x10
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push esi
push edx
call fcn.0056fa47
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
cmp esi, edi
jne 0x41f390
mov eax, dword [ebp + 8]
push str.GetMAC_Failed__Because_malloc_failed_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 4]
push ecx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x41f3c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push eax
push str.GetMAC_Failed__ErrorCode:__d
push 0x12
push edx
call fcn.0041f5b0
push esi
call fcn.0056fa0d
add esp, 0x14
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [esi + 0x190]
cmp eax, 6
jb 0x41f407
cmp eax, 8
ja 0x41f407
push eax
lea eax, [esi + 0x194]
push eax
push ebx
call fcn.0056f3d0
mov edi, dword [esi + 0x190]
add esp, 0xc
lea ecx, [esi + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.0041f100
test al, 4
jne 0x41f40d
mov esi, dword [esi]
test esi, esi
jne 0x41f3d0
mov edx, dword [ebp - 0xc]
push edx
call fcn.0056fa0d
add esp, 4
pop ebx
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x422e55
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x6aad28]
push esi
mov esi, ecx
mov ecx, dword [eax + 8]
mov dword [ecx + 0xc], 1
cmp dword [esi + 0x10], 0
push 0
mov ecx, 0x6aad20
push 0
je 0x422e8b
push 3
mov dword [0x6aaf50], 1
call fcn.0040c620
mov dword [esi + 0x10], 0
jmp 0x422e92
push 2
call fcn.0040c620
cmp dword [0x6bb0a8], 0
pop esi
jne 0x422eb0
mov dword [0x6bb0a8], 1
mov ecx, 0x6bb010
jmp fcn.004c92a0
ret