joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424e1f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x43d2b8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x424e50
xor eax, eax
jmp 0x424fd9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x541460]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x424e8c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00427d74
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x424f67
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x424fa5
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x424ef0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x424ee1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x424ec1
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424f30
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x424f39
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x424eb2
jmp 0x424f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x424fd4
cmp dword [ebp - 0x6c], edi
je 0x424fa5
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x424f9a
call fcn.0042406c
mov dword [eax], 9
call fcn.00424075
mov dword [eax], esi
jmp 0x424fcf
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424f8f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x424f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x424f3b
push dword [ebp - 0x6c]
call fcn.0042407e
pop ecx
jmp 0x424fcf
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x424fbd
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x424fbd
xor eax, eax
jmp 0x424fd7
call fcn.0042406c
mov dword [eax], 0x1c
call fcn.00424075
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x424fd7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041e823
add ebp, 0x3a0
leave
ret
Function at 0x42790e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x53f148], ebx
push esi
push edi
jne 0x42798e
push 0x436988
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4279c9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43697c
push edi
call esi
test eax, eax
mov dword [0x53f148], eax
je 0x4279c9
push 0x43696c
push edi
call esi
push 0x436958
push edi
mov dword [0x53f14c], eax
call esi
cmp dword [0x53ed94], 2
mov dword [0x53f150], eax
jne 0x42798e
push 0x43693c
push edi
call esi
test eax, eax
mov dword [0x53f158], eax
je 0x42798e
push 0x436924
push edi
call esi
mov dword [0x53f154], eax
mov eax, dword [0x53f154]
test eax, eax
je 0x4279d3
call eax
test eax, eax
je 0x4279ba
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x53f158]
test eax, eax
je 0x4279ba
test byte [ebp - 8], 1
jne 0x4279d3
cmp dword [0x53eda0], 4
jb 0x4279cd
or byte [ebp + 0x12], 0x20
jmp 0x4279f2
xor eax, eax
jmp 0x427a02
or byte [ebp + 0x12], 4
jmp 0x4279f2
mov eax, dword [0x53f14c]
test eax, eax
je 0x4279f2
call eax
mov ebx, eax
test ebx, ebx
je 0x4279f2
mov eax, dword [0x53f150]
test eax, eax
je 0x4279f2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x53f148]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428a17
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x428beb
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x541460]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x428beb
test cl, 0x48
je 0x428a82
cmp byte [eax + 5], 0xa
je 0x428a82
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x428ad4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x428abc
call fcn.0042406c
mov dword [eax], 9
call fcn.00424075
mov dword [eax], esi
jmp 0x428acc
cmp eax, 0x6d
je 0x428beb
push eax
call fcn.0042407e
pop ecx
or eax, 0xffffffff
jmp 0x428bed
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x428be6
test eax, eax
je 0x428afb
cmp byte [ebx], 0xa
jne 0x428afb
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x428b04
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x428be0
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x428bd0
cmp al, 0xd
je 0x428b36
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x428bc2
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x428b50
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x428b4b
add dword [ebp + 0x10], 2
jmp 0x428ba4
mov dword [ebp + 0x10], eax
jmp 0x428bbe
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x428b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x428bbe
cmp dword [ebp - 0xc], 0
je 0x428bbe
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x428b99
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x428ba4
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x428bc1
cmp ebx, dword [ebp + 0xc]
jne 0x428ba9
cmp byte [ebp - 1], 0xa
jne 0x428ba9
mov byte [ebx], 0xa
jmp 0x428bc1
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00424d00
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x428bc2
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x428b1a
jmp 0x428be0
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x428be0
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x428bed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428c9d
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x436a58
call fcn.0041d798
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x53f230], edi
jne 0x428ce1
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x428ccc
mov dword [0x53f230], ebx
jmp 0x428ce1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x428ce1
mov dword [0x53f230], 2
mov eax, dword [0x53f230]
cmp eax, ebx
jne 0x428d01
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x428dc4
cmp eax, 2
je 0x428d0a
cmp eax, edi
jne 0x428d32
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x428d1d
mov eax, dword [0x53f0ec]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x428d39
xor eax, eax
jmp 0x428dc4
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0041d7f0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x428d6c
cmp esi, edi
jne 0x428d82
push dword [ebp - 0x20]
call fcn.0041d6a1
pop ecx
mov esi, eax
cmp esi, edi
je 0x428d32
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x428db5
cmp dword [ebp + 0x14], edi
jne 0x428d9f
push edi
push edi
jmp 0x428da5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x428dc1
push esi
call fcn.0041c5a0
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0041d7d3
ret
Function at 0x428dcd
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x436a68
call fcn.0041d798
xor esi, esi
cmp dword [0x53f234], esi
jne 0x428e11
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x428dfc
mov dword [0x53f234], edi
jmp 0x428e11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x428e11
mov dword [0x53f234], 2
mov eax, dword [0x53f234]
cmp eax, 2
je 0x428ef2
cmp eax, esi
je 0x428ef2
cmp eax, 1
jne 0x428e56
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x428e3f
mov eax, dword [0x53f0ec]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x428e5d
xor eax, eax
jmp 0x428f04
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0041d7f0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x428e93
cmp edi, esi
jne 0x428eae
lea eax, [ebx + ebx]
push eax
call fcn.0041d6a1
pop ecx
mov edi, eax
cmp edi, esi
je 0x428e56
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x428ee1
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x428ecb
push esi
push esi
jmp 0x428ed1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x428eed
push edi
call fcn.0041c5a0
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x428f04
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0041d7d3
ret

Function at 0x42b550
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 0x42b569
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x42b57d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x42b59e
cmp esi, eax
jae 0x42b577
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x42b590
cmp esi, eax
jae 0x42b577
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x42b630
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDCAA2D3B2_4BB5_4a45_A17A_122773379D99
push SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42b699
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x24], eax
call edi
test eax, eax
jne 0x42b698
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x18], eax
mov esi, eax
jb 0x42b698
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push edx
call edi
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x42b6a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x42baf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x43d2b8]
push ebx
mov ebx, dword [0x437140]
push esi
mov esi, dword [0x437144]
push edi
mov edi, dword [0x43713c]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
mov dword [esp + 0x148], eax
mov eax, dword [0x437138]
push 0x433a74
push SysReAllocString
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42bbdc
mov byte [esp + 0x30], al
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42bbbd
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.0042b920
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
jmp 0x42bbea
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], esi
mov ecx, dword [esp + 0x13c]
call fcn.0041e823
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x42bc10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x43d2b8]
push esi
push edi
mov dword [esp + 0x11c], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movzx ecx, ah
push ecx
movzx edx, al
mov eax, dword [ebp + 0x14]
push edx
movzx ecx, ah
push ecx
mov ecx, dword [ebp + 0x10]
movzx edx, al
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shr eax, 0x18
push eax
movzx eax, byte [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
shr edx, 8
movzx edx, dl
push edx
movzx edx, word [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
shr ecx, 0x10
push ecx
push edx
push eax
push 0x436d0c
lea ecx, [esp + 0x40]
push 0x104
push ecx
call fcn.004307b2
add esp, 0x38
lea edx, [esp + 0xc]
push edx
push 0x433a74
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x42bce9
lea eax, [esp + 0xc]
push eax
push 0x433a74
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x42bce9
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.0041e823
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
mov edi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42bcf5
sub eax, edx
mov edx, dword [esi + 0x10]
inc eax
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x42bd1e
xor edi, edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
mov eax, edi
call fcn.0041e823
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x42c150
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x43d2b8]
mov dword [esp + 0x10c], eax
push esi
push edi
xor eax, eax
test edx, edx
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x42c198
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0042be10
add esp, 0xc
jmp 0x42c1a8
push edx
push 0x104
lea ecx, [esp + 0x10]
push ecx
call fcn.00402992
push 0x436d4c
push 0x104
lea edx, [esp + 0x10]
push edx
call fcn.0040338e
mov ecx, dword [ebp + 8]
lea eax, [esp + 8]
push eax
push ecx
push ebx
push 0x433790
push 0x436d48
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
jne 0x42c1f3
mov ecx, dword [esp + 0x114]
call fcn.0041e823
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x2e
push ebx
call fcn.0041deb0
add esp, 8
test eax, eax
je 0x42c205
mov byte [eax], 0
mov ecx, dword [esp + 0x114]
mov eax, esi
call fcn.0041e823
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x491820
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x491828
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x491a1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x491a30
mov eax, esi
call fcn.00484844
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004050e8
lea ecx, [ebp - 0x10]
mov edx, 0x491a44
mov eax, esi
call fcn.00484844
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004050e8
lea ecx, [ebp - 0x14]
mov edx, 0x491a5c
mov eax, esi
call fcn.00484844
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004050e8
lea ecx, [ebp - 0x18]
mov edx, 0x491a78
mov eax, esi
call fcn.00484844
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004050e8
lea ecx, [ebp - 0x1c]
mov edx, 0x491a94
mov eax, esi
call fcn.00484844
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004050e8
lea ecx, [ebp - 0x24]
mov edx, 0x491aac
mov eax, esi
call fcn.00484844
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409664
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409ac0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x491ac4
mov eax, esi
call fcn.00484844
mov eax, dword [ebp - 0x28]
call fcn.004822ec
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x491ad4
mov eax, esi
call fcn.00484844
mov eax, dword [ebp - 0x2c]
call fcn.004822ec
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x491aec
mov eax, esi
call fcn.00484844
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409ac0
inc eax
je 0x4919bd
lea ecx, [ebp - 0x34]
mov edx, 0x491aec
mov eax, esi
call fcn.00484844
mov eax, dword [ebp - 0x34]
call fcn.00409a84
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
movzx edx, word [ebp - 4]
movzx eax, word [ebp - 8]
call fcn.0040b33c
fstp qword [ebp - 0x3c]
wait
call fcn.0040b6a4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4919d8
lea ecx, [ebp - 0x40]
mov edx, 0x491aec
mov eax, esi
call fcn.00484844
mov eax, dword [ebp - 0x40]
call fcn.004822ec
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x491afc
mov eax, esi
call fcn.00484844
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004050e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491a21
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004050b8
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004050b8
ret
Function at 0x496e50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x496f27
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0047c59c
mov ebx, eax
mov eax, dword [0x4a126c]
cmp dword [eax], 0
je 0x496e8e
mov eax, esi
mov edx, dword [0x4a126c]
mov edx, dword [edx]
call fcn.004050e8
jmp 0x496f0c
cmp bl, 0xe
je 0x496e9c
call fcn.00496de8
test al, al
je 0x496ee4
lea eax, [ebp - 4]
mov edx, 0x3e8
call fcn.004057b4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x496eb5
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 4]
call fcn.00405524
push eax
push 0x496f38
call sub.KERNEL32.DLL_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 4]
call fcn.004057b4
mov eax, esi
mov ecx, 0x496f48
mov edx, dword [ebp - 4]
call fcn.004053ac
jmp 0x496f0c
mov eax, dword [0x4a126c]
cmp dword [eax], 0
jne 0x496f0c
lea ecx, [ebp - 8]
mov edx, 0x26
mov eax, edi
call fcn.00496f4c
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, 0x496f48
call fcn.004053ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496f2e
lea eax, [ebp - 8]
mov edx, 2
call fcn.004050b8
ret

Function at 0x496f4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 4], ebx
mov ebx, ecx
mov esi, edx
xor eax, eax
push ebp
push 0x496ff3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405094
lea eax, [ebp - 8]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x496fd2
lea eax, [ebp - 0x10d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x496fd2
lea eax, [ebp - 0x114]
lea edx, [ebp - 0x10d]
mov ecx, 0x105
call fcn.00405304
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
mov ecx, 0x497008
call fcn.004053ac
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004050e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496ffa
lea eax, [ebp - 0x114]
call fcn.00405094
lea eax, [ebp - 4]
call fcn.00405094
ret

Function at 0x498d58
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x498dff
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x4a1374]
mov ecx, dword [ecx]
mov edx, dword [0x4a1480]
mov edx, dword [edx]
lea eax, [ebp - 4]
call fcn.004053ac
mov eax, dword [ebp - 4]
call fcn.00409e88
test al, al
je 0x498de9
xor eax, eax
push ebp
push 0x498ddf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x4a1480]
mov eax, dword [eax]
call fcn.00405524
push eax
mov eax, dword [0x4a1200]
mov eax, dword [eax]
call fcn.00405524
push eax
mov eax, dword [0x4a1374]
mov eax, dword [eax]
call fcn.00405524
push eax
push 0x498e0c
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x498de9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498e06
lea eax, [ebp - 4]
call fcn.00405094
ret