joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ffb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50dba0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x8c]
mov ebp, dword [esp + 0x88]
xor edi, edi
push edi
push 1
push edi
push 6
lea eax, [esp + 0x78]
push ebx
push eax
call fcn.00411540
push 4
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0xa4], edi
call fcn.004101c0
add esp, 0x24
mov esi, eax
mov byte [esp + 0x80], 1
call fcn.00422290
xor ecx, ecx
mov edx, 3
movzx esi, byte [edx + eax]
shl ecx, 8
add ecx, esi
sub edx, 1
jns 0x410025
mov eax, dword [esp + 0x2c]
cmp eax, edi
mov dword [ebp + 0x20], ecx
je 0x410047
push eax
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x6c]
cmp eax, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x41006f
push eax
call fcn.004e7d7e
add esp, 4
push edi
push 1
push edi
push 7
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.00411540
push 4
push eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0xa4], 2
call fcn.004101c0
add esp, 0x24
mov esi, eax
mov byte [esp + 0x80], 3
call fcn.00422290
xor ecx, ecx
mov edx, 3
movzx esi, byte [edx + eax]
shl ecx, 8
add ecx, esi
sub edx, 1
jns 0x4100b1
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov dword [ebp + 0x30], ecx
je 0x4100d3
push eax
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x4c]
cmp eax, edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
je 0x4100fb
push eax
call fcn.004e7d7e
add esp, 4
push edi
push 4
push edi
push 0xc
lea ecx, [esp + 0x68]
push ebx
push ecx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
call fcn.00411540
add esp, 0x18
lea esi, [esp + 0x58]
mov dword [esp + 0x80], 4
call fcn.00421b30
xor edx, edx
xor ecx, ecx
movzx esi, byte [ecx + eax]
shl edx, 8
add ecx, 1
add edx, esi
cmp ecx, 4
jb 0x410133
push edi
push 8
push edi
push 0x18
mov dword [ebp + 0x34], edx
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.00411540
add esp, 0x18
push edi
lea esi, [esp + 0x1c]
mov byte [esp + 0x84], 5
call fcn.00421b30
mov esi, eax
call fcn.00422330
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, edi
mov dword [ebp + 0x2c], edx
je 0x41018e
push eax
call fcn.004e7d7e
add esp, 4
mov eax, dword [esp + 0x5c]
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
je 0x4101ab
push eax
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x411e30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
mov dword [esp + 0x1c], ebx
call fcn.00401600
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
je 0x411e9d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 8], eax
call fcn.004e9924
mov ecx, dword [esp + 8]
push ecx
push ebx
push eax
mov dword [esi + 0x70], eax
call fcn.004f1960
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
add esp, 0x10
push ebx
lea edx, [esp + 8]
push edx
push eax
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov al, 1
jne 0x411e9f
mov al, bl
pop ebx
pop ecx
ret
Function at 0x416950
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [esp + 0x18], ecx
call edx
test al, al
jne 0x416aec
lea eax, [esp + 0x18]
push eax
push 2
xor ebx, ebx
push ebx
push str.SoftwareTencentQQBrowserCommon
push Ordinal_4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x416a08
cmp dword [edi + 0x230], 8
jb 0x4169aa
mov edx, dword [edi + 0x21c]
jmp 0x4169b0
lea edx, [edi + 0x21c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4169b5
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push edx
mov edx, dword [esp + 0x20]
push 1
push ebx
push str.MainPageDIY
push edx
call esi
cmp eax, ebx
je 0x416a13
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4169fd
push eax
call esi
xor eax, eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x416a08
push eax
call esi
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x24c], 8
jb 0x416a24
mov eax, dword [edi + 0x238]
jmp 0x416a2a
lea eax, [edi + 0x238]
push ebx
call fcn.0042bb50
mov ecx, dword [esp + 0x1c]
add esp, 4
push 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push ebx
push str.MainPageDIY_
push ecx
call esi
cmp eax, ebx
jne 0x4169e2
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x416a68
push eax
call edi
xor eax, eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x416a77
push eax
call edi
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
push edx
push 2
push ebx
push str.SoftwareTencentQQBrowserLaunch
push Ordinal_4
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x416aec
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x3c], 8
jb 0x416aa6
mov eax, dword [eax + 0x28]
jmp 0x416aa9
add eax, 0x28
call fcn.0042bbb0
mov ecx, dword [esp + 0x18]
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push ebx
push str.MainPageType
push ecx
call esi
cmp eax, ebx
je 0x416ad0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x416ae1
push eax
call edi
xor eax, eax
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x416aec
push eax
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4242c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x512afa
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call fcn.0044d950
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
push 0
push esi
call eax
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x2c], 0
jne 0x42436e
mov byte [esp + 0x2c], 1
call fcn.00425fe0
call fcn.004263a0
lea ecx, [esp + 0xc]
call fcn.00424e20
lea ecx, [esp + 0xc]
call fcn.0044e600
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x44], 0xffffffff
call fcn.0044daf0
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x3c
ret
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x44], 0xffffffff
call fcn.0044daf0
xor al, al
jmp 0x424352
Function at 0x4261e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x50d830
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x14], ebx
je 0x426368
push 0x13
mov ebp, 7
push str.www.hao123.com__tn
lea esi, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00407330
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x80], ebx
call fcn.0042cc70
add esp, 8
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x34], 8
mov esi, eax
jb 0x426267
mov eax, dword [esp + 0x20]
push eax
call fcn.004e7d7e
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
je 0x426368
cmp dword [edi + 0x18], 8
jb 0x426288
mov edi, dword [edi + 4]
jmp 0x42628b
add edi, 4
lea edi, [edi + esi*2 + 0x26]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x520508]
mov eax, ecx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4262b0
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x5c]
call fcn.00407330
mov dword [esp + 0x78], 1
mov eax, edi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4262e4
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x40]
call fcn.00407330
lea eax, [esp + 0x54]
call fcn.0042bc70
test eax, eax
mov esi, 8
sete byte [esp + 0x17]
cmp dword [esp + 0x50], esi
jb 0x426326
mov edx, dword [esp + 0x3c]
push edx
call fcn.004e7d7e
add esp, 4
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x42634e
mov eax, dword [esp + 0x58]
push eax
call fcn.004e7d7e
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x42637e
mov eax, dword [esp + 0x18]
add eax, 4
cmp eax, 0x24
mov dword [esp + 0x18], eax
jb 0x426293
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov al, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x4263a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x512afa
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x2c], eax
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.0044d950
mov dword [esp + 0x40], 0
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
push 0
push esi
call eax
mov ecx, dword [esp + 0x30]
cmp byte [ecx + 0x2c], 0
jne 0x42643e
lea edi, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.00426460
mov ecx, edi
call fcn.0044e600
mov eax, edi
push eax
mov dword [esp + 0x44], 0xffffffff
call fcn.0044daf0
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x3c
ret
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x44], 0xffffffff
call fcn.0044daf0
xor al, al
jmp 0x426422
Function at 0x42b7f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x50d599
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov esi, ecx
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x18], esi
mov word [esi + 4], di
mov dword [esp + 0x24], edi
push ebx
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, edi
jle 0x42b8a4
lea ebp, [eax + eax]
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e7330
add esp, 4
push ebp
mov edi, eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
jg 0x42b89b
mov word [edi + eax*2], 0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b885
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00407330
push edi
call fcn.004e7d6a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x42dd50
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp eax, 0xffffffff
mov dword [esp + 0xc], esi
je 0x42ddfc
push esi
lea ecx, [esp + 0x14]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ddfc
mov ecx, dword [esp + 0x10]
cmp ecx, esi
seta al
test al, al
je 0x42ddfc
cmp ecx, 4
jne 0x42ddfc
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0xa00000
ja 0x42ddf2
cmp edi, esi
je 0x42dde8
mov esi, ebp
call fcn.00401110
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
push ecx
lea esi, [esp + 0x18]
mov ecx, ebx
call fcn.0043eb60
test al, al
je 0x42ddf2
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jne 0x42ddf2
mov ecx, dword [ebp + 4]
cmp eax, ecx
ja 0x42dddf
mov ecx, eax
mov edx, dword [esp + 0x20]
mov dword [ebp + 0xc], ecx
mov dword [edx], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret

Function at 0x42df20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c028
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
call fcn.00401610
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x54], edi
call fcn.0042c170
mov ecx, dword [esi + 0x10]
add esp, 4
lea edx, [esp + 0x24]
lea edi, [esi + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], ecx
call fcn.00435d40
mov ebx, eax
mov eax, dword [ebx]
test eax, eax
je 0x42dfaf
cmp eax, edi
je 0x42dfb4
call fcn.004e89bf
mov ecx, dword [esp + 0x10]
cmp dword [ebx + 4], ecx
jne 0x42dfeb
mov ebx, dword [esi + 4]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov edi, esi
call fcn.00435d40
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x42dfdd
cmp eax, esi
je 0x42dfe2
call fcn.004e89bf
cmp dword [edi + 4], ebx
jne 0x42dfeb
xor bl, bl
jmp 0x42dfed
mov bl, 1
cmp dword [esp + 0x3c], 8
jb 0x42e001
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004e7d7e
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4
Function at 0x432ad0
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50bff8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], 0
cmp dword [eax + 0x18], 8
jb 0x432b0c
mov eax, dword [eax + 4]
jmp 0x432b0f
add eax, 4
push 0
push 0x80
push 2
push 0
push 1
push 0x120116
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x432cbd
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x14]
push eax
push 4
push str.GMUT1Q
push esi
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x432cb6
cmp dword [esp + 0x10], 4
jne 0x432cb6
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x6c]
push edx
push esi
mov byte [esp + 0x74], 2
call edi
test eax, eax
je 0x432cb6
cmp dword [esp + 0x10], 1
jne 0x432cb6
mov edi, dword [esp + 0x5c]
lea ecx, [esp + 0xc]
lea eax, [edi + 0x1b8]
push ecx
call fcn.00438610
add esp, 4
test al, al
jne 0x432bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0xc]
call fcn.0043eaf0
jmp 0x432cbd
lea edx, [esp + 0xc]
lea eax, [edi + 0x1a8]
push edx
call fcn.00438610
add esp, 4
test al, al
je 0x432bad
lea esi, [esp + 0x14]
call fcn.0042d630
mov ecx, esi
lea eax, [edi + 0x1c8]
push ecx
mov byte [esp + 0x58], 1
call fcn.004386a0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0xc]
push edx
call fcn.00438610
add esp, 4
test al, al
jne 0x432c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esp + 0x14]
call fcn.0042d6a0
lea esi, [esp + 0xc]
call fcn.0043eaf0
jmp 0x432cbd
lea ecx, [esp + 0xc]
lea eax, [edi + 0x1d8]
push ecx
call fcn.00438610
add esp, 4
test al, al
je 0x432c09
lea esi, [esp + 0x30]
call fcn.0042d630
add edi, 0x1fc
push edi
mov edx, esi
push edx
mov byte [esp + 0x5c], 2
call fcn.00438720
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x44]
call fcn.00438610
add esp, 4
test al, al
jne 0x432c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0042d6a0
jmp 0x432c0f
lea esi, [esp + 0xc]
call fcn.0043ebd0
lea esi, [esp + 0x30]
call fcn.0042d6a0
lea esi, [esp + 0x14]
call fcn.0042d6a0
lea esi, [esp + 0xc]
call fcn.0043eaf0
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x4c
ret 8
Function at 0x433710
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51133c
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
push 0x10
mov edi, ecx
xor ebx, ebx
push 0x520da4
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00407330
mov eax, esi
push eax
add edi, 0x18c
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x2a0], ebx
call fcn.0043b740
add esp, 8
cmp dword [esp + 0x2c], 8
jb 0x4337aa
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004e7d7e
add esp, 4
mov eax, 7
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
mov byte [esp + 0x298], 4
cmp dword [str.gmexe], ebx
mov edi, 0x549da4
je 0x4338a8
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x6c]
jae 0x4337f4
lea eax, [esp + 0x6c]
push eax
mov eax, dword [edi]
push 0x400
lea edx, [esp + 0x8c]
push edx
push 0x51a1d4
push eax
push str.gmmeta
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x84]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x433820
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x88]
push ecx
lea esi, [esp + 0x38]
call fcn.00407330
cmp dword [esp + 0x44], ebx
je 0x433889
mov edx, dword [edi]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x433850
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x54]
call fcn.00407330
mov ecx, dword [esp + 0x10]
mov edx, esi
push edx
add ecx, 0x1fc
call fcn.00435be0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x38]
push ecx
call fcn.00401610
add edi, 4
cmp dword [edi], ebx
jne 0x4337e2
cmp dword [esp + 0x48], 8
jb 0x4338a8
mov edx, dword [esp + 0x34]
push edx
call fcn.004e7d7e
add esp, 4
mov edi, 8
cmp dword [esp + 0x64], edi
mov esi, 7
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
jb 0x4338d2
mov eax, dword [esp + 0x50]
push eax
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x80], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
jb 0x4338f5
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.004e7d7e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret
Function at 0x438610
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
cmp eax, 0xffffffff
push edi
mov dword [esp + 0xc], 0
je 0x438693
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push eax
call edi
test eax, eax
je 0x438693
cmp dword [esp + 0xc], 4
jne 0x438693
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x438665
pop edi
pop esi
mov al, 1
pop ebx
add esp, 8
ret
mov eax, dword [esi + 8]
test eax, eax
mov esi, edx
je 0x438693
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x438693
push 0
lea ebx, [esp + 0x10]
push ebx
push edx
push eax
push ecx
call edi
test eax, eax
je 0x438693
mov eax, dword [esp + 0xc]
cmp esi, eax
jne 0x438693
cmp eax, dword [esp + 0x10]
je 0x43865c
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret

Function at 0x43a6d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50f108
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor esi, esi
push 0xffffffffffffffff
push esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], si
call fcn.00401610
push 0x24
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], esi
call fcn.0043b600
mov eax, dword [esp + 0x10]
mov esi, 8
add esp, 4
cmp dword [esp + 0x20], esi
jae 0x43a748
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43a76b
cmp dword [esp + 0x20], esi
jb 0x43a767
mov eax, dword [esp + 0xc]
push eax
call fcn.004e7d7e
add esp, 4
mov al, 1
jmp 0x43a780
cmp dword [esp + 0x20], esi
jb 0x43a77e
mov ecx, dword [esp + 0xc]
push ecx
call fcn.004e7d7e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x2c
ret