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

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x417f7e
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x418120
cmp edi, dword [ebp + 0x10]
jb 0x418120
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.00417a48
inc edi
jmp 0x418007
jmp 0x418014
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.00417a48
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.00417a48
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x418068
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x41804c
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.00418096
add dword [eax], 0x39
jle 0x418072
sub al, 0xf5
mov ch, al
call fcn.004180ab
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x419d83
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 0x419d99
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 0x419daa
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.00419deb
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 0x41c157
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 0x41c0a0
add ebx, 0
push ecx
call 0x41c0b5
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, 0x6c026228
sub ebx, dword [0x6c045a67]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c045a57
call fcn.00417b7f
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.0041708d
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x41c213
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x41c213
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 0x41c1ca
mov eax, 1
lock xchg dword [0x6c045a63], eax
push 0x3dd1fc71
call 0x41c157
push esi
add esp, 8
cmp eax, 0
jne 0x41c140
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x41c166
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x41c17b
cmp ecx, edx
cmp eax, 0
je 0x41c1a0
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 0x41c18a
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.0041c1b9
dec eax
loope 0x41c1bc
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c045a63], 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 0x41c1f0
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x41c205
jmp 0x41c210
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x41c0fe

Function at 0x423278
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 0x42354e
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c0326db
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c0296a1
push 0xffffffffffffffff
call fcn.0041a478
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 0x4232e2
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.004232fa
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 0x423542
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x423516
Function at 0x432d48
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 0x432d6a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x432d6a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x432d6a
ret
cmp word [ebx + 4], 0x14c
jne 0x432d6a
test word [ebx + 0x16], 2
je 0x432d6a
test word [ebx + 0x16], 0x100
je 0x432d6a
cmp word [ebx + 0x18], 0x10b
jne 0x432d6a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x432d6a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x432df6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x432d8a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00419cd5
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x432d6a
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 0x432df6
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 0x432d6a
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x432d6a
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x432d6a
ret
cmp word [ebx + 4], 0x14c
jne 0x432d6a
test word [ebx + 0x16], 2
je 0x432d6a
test word [ebx + 0x16], 0x100
je 0x432d6a
cmp word [ebx + 0x18], 0x10b
jne 0x432d6a
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x432d6a
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x432df6
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x432d8a
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00419cd5
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x432d6a
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 0x432ead
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x432f06
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x432ead
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x432ebc
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 0x838b5f
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 0x432f0d
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.00419d83
cmp eax, dword [ebp + 0xc]
pop eax
je 0x432fac
add edi, 4
add eax, 2
dec ecx
jne 0x432ef2
call 0x432f59
loope 0x432f4f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x432fa9
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 0x432fba
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 0x432f6d
cmp eax, ecx
ja 0x432f6d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x432ff7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x432fed
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.0041a262
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x432ebc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x432f06
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x432ead
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x432ebc
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 0x838b5f
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 0x432f0d
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.00419d83
cmp eax, dword [ebp + 0xc]
pop eax
je 0x432fac
add edi, 4
add eax, 2
dec ecx
jne 0x432ef2
call 0x432f59
loope 0x432f4f
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x432fa9
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 0x432fba
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 0x432f6d
cmp eax, ecx
ja 0x432f6d
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x432ff7
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x432fed
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.0041a262
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4010c0
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 0x4010d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401114
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401110
lea ebx, [ebx]
cmp esi, eax
jae 0x401114
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401100
cmp esi, eax
jb 0x40111a
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 0x402370
Capabilities:
Get disk size

Disassembly:
sub esp, 0x418
mov eax, dword [0x460df4]
xor eax, esp
mov dword [esp + 0x414], eax
push 0x3ff
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.00432a30
add esp, 0xc
push 0x3e8
lea ecx, [esp + 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40241a
xor eax, eax
push eax
push eax
push eax
lea edx, [esp + 0x14]
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov byte [esp + 0x1d], al
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x1c], 0
call fcn.00432dec
add esp, 0x14
push 0
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40241a
cmp dword [esp + 4], 0
ja 0x40241a
cmp dword [esp], 0x25800000
ja 0x40241a
xor al, al
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00432a13
add esp, 0x418
ret
mov ecx, dword [esp + 0x414]
xor ecx, esp
mov al, 1
call fcn.00432a13
add esp, 0x418
ret
Function at 0x4026c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x364
mov eax, dword [0x460df4]
xor eax, esp
mov dword [esp + 0x360], eax
push esi
push 0x103
lea eax, [esp + 0x5d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x64], 0
call fcn.00432a30
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x164]
push eax
call fcn.004334c0
add esp, 0xc
cmp dword [esi + 0x70], 0x10
jb 0x402725
mov esi, dword [esi + 0x5c]
jmp 0x402728
add esi, 0x5c
push esi
lea ecx, [esp + 0x160]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x104
lea edx, [esp + 0x160]
push edx
lea eax, [esp + 0x268]
push eax
call fcn.004334c0
add esp, 0xc
lea ecx, [esp + 0x260]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x44
lea edx, [esp + 0x18]
push 0
push edx
call fcn.00432a30
add esp, 0xc
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x268]
push edx
push 0
push 0x4000000
push 0
push 0
push 0
lea eax, [esp + 0x17c]
push eax
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x364]
pop esi
xor ecx, esp
call fcn.00432a13
add esp, 0x364
ret
Function at 0x4057d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x4057e0
mov eax, 0x17
pop edi
ret
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
mov dword [edx], 0xffffffff
jbe 0x40581c
push ebx
push ebp
mov eax, dword [edx]
movzx ebx, byte [ecx + edi]
mov ebp, eax
and ebp, 0xff
xor ebx, ebp
shr eax, 8
xor eax, dword [ebx*4 + 0x45f150]
add ecx, 1
cmp ecx, esi
mov dword [edx], eax
jb 0x4057f7
pop ebp
pop ebx
mov eax, dword [edx]
not eax
pop esi
mov dword [edx], eax
xor eax, eax
pop edi
ret

Function at 0x4078b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [0x460df4]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [str.game.exe]
test al, al
mov ecx, dword [0x44cc68]
mov dl, byte [0x44cc6c]
push esi
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], ecx
mov byte [esp + 0x138], dl
lea esi, [esp + 0x130]
je 0x40790c
movsx eax, byte [esi]
push eax
call fcn.00434d66
mov byte [esi], al
add esi, 1
add esp, 4
cmp byte [esi], 0
jne 0x4078f6
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
jne 0x407938
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00432a13
add esp, 0x230
ret
push edi
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x407a08
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407970
cmp byte [esp + 0x38], 0
lea esi, [esp + 0x38]
je 0x407996
jmp 0x407980
movsx edx, byte [esi]
push edx
call fcn.00434d66
mov byte [esi], al
add esi, 1
add esp, 4
cmp byte [esi], 0
jne 0x407980
lea ecx, [esp + 0x38]
lea eax, [esp + 0x13c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4079c1
test dl, dl
je 0x4079bd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4079c1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4079a1
xor eax, eax
jmp 0x4079c6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4079eb
mov eax, dword [esp + 0x1c]
push eax
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4079eb
push 9
push esi
call ebx
push esi
call edi
push 0x64
call ebp
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407970
mov esi, dword [esp + 0x10]
pop ebp
pop ebx
push esi
call edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00432a13
add esp, 0x230
ret

Function at 0x407b60
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x407b7c
mov ecx, dword [esp + 4]
push eax
mov eax, dword [esp + 0xc]
push eax
push 1
push ecx
call fcn.0043386b
add esp, 0x10
ret 8
Function at 0x407b80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x44cb3c
push eax
call fcn.004339bc
mov esi, eax
xor eax, eax
add esp, 8
cmp esi, eax
je 0x407bd3
push esi
push 2
lea ecx, [esp + 0x10]
push 1
push ecx
mov byte [esp + 0x18], al
mov word [esp + 0x19], ax
call fcn.00433c2c
push esi
call fcn.004336d5
add esp, 0x14
cmp byte [esp + 8], 0x57
jne 0x407bd3
cmp byte [esp + 9], 0x58
jne 0x407bd3
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4
Function at 0x408640
Capabilities:
Check if file exists
Delete file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x460df4]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
mov ebp, ecx
lea ebx, [ebp + 0x104]
push esi
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
push edi
mov dword [esp + 0x10], 1
jbe 0x408675
call fcn.004334ac
mov edi, esi
jmp 0x408680
mov esi, dword [ebp + 0x10c]
cmp dword [ebp + 0x108], esi
jbe 0x408693
call fcn.004334ac
test ebx, ebx
je 0x4086a1
lea eax, [ebp + 0x104]
cmp ebx, eax
je 0x4086a6
call fcn.004334ac
cmp edi, esi
je 0x4087e5
test ebx, ebx
jne 0x4086b7
call fcn.004334ac
cmp edi, dword [ebx + 8]
jb 0x4086c1
call fcn.004334ac
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x4086ce
mov eax, dword [esi]
jmp 0x4086d0
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408784
cmp edi, dword [ebx + 8]
jb 0x4086e9
call fcn.004334ac
cmp dword [edi + 0x18], 0x10
jb 0x4086f3
mov eax, dword [esi]
jmp 0x4086f5
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x408726
cmp edi, dword [ebx + 8]
jb 0x40870f
call fcn.004334ac
cmp dword [edi + 0x18], 0x10
jb 0x408719
mov eax, dword [esi]
jmp 0x40871b
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x408730
mov dword [esp + 0x10], 0
jmp 0x40873b
cmp dword [esp + 0x10], 0
jne 0x4087d3
cmp edi, dword [ebx + 8]
jb 0x408745
call fcn.004334ac
cmp dword [edi + 0x18], 0x10
jb 0x40874d
mov esi, dword [esi]
push esi
lea eax, [esp + 0x18]
push str.Can_not_delete:__s_n
push eax
call fcn.00433f59
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408767
mov ecx, dword [ebp + 4]
sub eax, edx
test ecx, ecx
je 0x4087d3
push ecx
push eax
push 1
lea ecx, [esp + 0x20]
push ecx
jmp 0x4087cb
cmp edi, dword [ebx + 8]
jb 0x40878e
call fcn.004334ac
cmp dword [edi + 0x18], 0x10
jb 0x408796
mov esi, dword [esi]
push esi
lea edx, [esp + 0x18]
push str.Can_not_find:__s_n
push edx
call fcn.00433f59
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4087b0
mov ecx, dword [ebp + 4]
sub eax, edx
test ecx, ecx
je 0x4087d3
push ecx
push eax
push 1
lea eax, [esp + 0x20]
push eax
call fcn.0043386b
add esp, 0x10
cmp edi, dword [ebx + 8]
jb 0x4087dd
call fcn.004334ac
add edi, 0x1c
jmp 0x408680
mov ecx, dword [esp + 0x414]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00432a13
add esp, 0x408
ret
Function at 0x40e400
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
sub esp, 0x328
mov eax, dword [0x460df4]
xor eax, esp
mov dword [esp + 0x324], eax
mov eax, dword [esp + 0x338]
push esi
push edi
mov edi, dword [esp + 0x33c]
test edi, edi
mov esi, ecx
mov ecx, dword [esp + 0x344]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
jne 0x40e440
xor eax, eax
jmp 0x40e620
mov edx, dword [esp + 0x334]
mov eax, dword [esp + 0x338]
push ebx
push ebp
push 0x103
lea ecx, [esp + 0x235]
push 0
push ecx
mov dword [esi], edx
mov dword [esi + 0xc0], eax
mov byte [esp + 0x23c], 0
call fcn.00432a30
add esp, 0xc
lea edx, [esp + 0x230]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x103
lea eax, [esp + 0x131]
push 0
push eax
mov byte [esp + 0x138], 0
call fcn.00432a30
push 0x104
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x140]
push edx
call fcn.004334c0
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0x18
push str.config.ini
lea eax, [esp + 0x130]
push eax
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x12c]
push ecx
mov byte [esp + 0x1c], 0
call ebx
cmp eax, 1
jne 0x40e516
lea edx, [esp + 0x12c]
push edx
push 0x10
lea eax, [esp + 0x20]
push eax
push 0x44ccb8
push str.Version
push str.Client
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [esp + 0x2d]
push 0
push ecx
mov byte [esp + 0x34], 0
call fcn.00432a30
push 0x104
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.004334c0
add esp, 0x18
push str.version
lea ecx, [esp + 0x2c]
push ecx
call ebp
lea edx, [esp + 0x28]
push edx
call ebx
test eax, eax
pop ebp
pop ebx
jne 0x40e579
cmp byte [esp + 0x10], al
jne 0x40e59d
lea eax, [esp + 0x10]
push 0x44ccb8
push eax
call fcn.00433f59
add esp, 8
jmp 0x40e59d
lea ecx, [esp + 0x20]
push ecx
push 0x104
lea edx, [esp + 0x18]
push edx
push 0x44c8cf
push str.MajorVer
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e5a4
sub eax, edx
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x24]
call fcn.00402d10
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e5c2
sub eax, edx
push eax
push edi
lea ecx, [esi + 0x5c]
call fcn.00402d10
mov ecx, dword [esp + 8]
push ecx
push edi
mov ecx, esi
call fcn.0040d5c0
test eax, eax
je 0x40e439
lea ecx, [esi + 0xe4]
call fcn.0040d480
mov edx, dword [esp + 0xc]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40e600
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x40]
call fcn.00402d10
mov eax, 1
mov dword [esi + 0xb0], eax
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
xor ecx, esp
call fcn.00432a13
add esp, 0x328
ret 0x14