joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e3f0
Capabilities:
Access peb ldr_data
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x473507
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebp
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x2c4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2d4]
push 0
push 0
push 0
push 0
push 0
call fcn.00465a70
mov ecx, eax
call fcn.00464df0
push eax
lea ecx, [esp + 0x44]
call fcn.0046e600
lea ecx, [esp + 0xc]
mov dword [esp + 0x2cc], 0
call fcn.0046da70
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2d0], 1
call fcn.0046e1f0
push 0x24c
lea ecx, [esp + 0x74]
push 0
push ecx
mov dword [esp + 0x78], 0
call fcn.004498f0
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
push 0x48631c
lea ecx, [esp + 0x64]
call fcn.0046d910
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d4], 2
call fcn.0046ea60
lea ecx, [esp + 0x6c]
push ecx
mov ecx, eax
call fcn.0046d3a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x5c]
mov edi, eax
call fcn.0046d3c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2cc], 1
call fcn.0046d3c0
cmp edi, 0xffffffff
je 0x41e62c
mov ecx, 0x48277c
lea eax, [esp + 0x98]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41e536
test dx, dx
je 0x41e532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41e536
add eax, 4
add ecx, 4
test dx, dx
jne 0x41e510
xor eax, eax
jmp 0x41e53b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41e611
mov ecx, 0x486324
lea eax, [esp + 0x98]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41e576
test dx, dx
je 0x41e572
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41e576
add eax, 4
add ecx, 4
test dx, dx
jne 0x41e550
xor eax, eax
jmp 0x41e57b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41e611
test byte [esp + 0x6c], 0x10
je 0x41e611
lea edx, [esp + 0x98]
push 0x48277c
push edx
call fcn.00446cee
add esp, 8
test eax, eax
je 0x41e611
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.0046e600
lea ecx, [esp + 0x1c]
call fcn.0046d690
test al, al
je 0x41e600
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x40]
call fcn.00469560
lea eax, [esp + 0x3c]
push eax
mov eax, ebp
mov byte [esp + 0x2d0], 4
call fcn.00411a00
lea ecx, [esp + 0x3c]
call fcn.00468c30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2cc], 1
call fcn.0046d3c0
lea ecx, [esp + 0x6c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e501
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0xc]
call fcn.0046d3c0
lea ecx, [esp + 0x2c]
call fcn.0046d3c0
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0044610a
add esp, 0x2c4
ret
Function at 0x41f030
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
xor ebp, ebp
push eax
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov al, byte [esp + 0x2c]
test al, al
jne 0x41f05a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
movzx ebx, al
lea esi, [ebx*8]
push esi
call fcn.0044674b
mov edi, eax
push edi
mov eax, ebx
mov dword [esp + 0x1c], edi
call fcn.00402690
add esp, 8
test al, al
je 0x41f0ee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0044674b
mov dword [esp + 0x14], eax
push eax
mov eax, ebx
call fcn.00402690
add esp, 8
test al, al
je 0x41f0ee
test ebx, ebx
jle 0x41f0ee
mov esi, edi
mov edi, dword [esp + 0x10]
sub edi, esi
nop
mov ecx, dword [edi + esi]
sub ecx, dword [esi]
mov edx, dword [edi + esi + 4]
sbb edx, dword [esi + 4]
push 0
push 0x64
push edx
push ecx
call fcn.0044f6e0
push 0
push 0x989680
push edx
push eax
call fcn.0044eef0
mov ecx, 0x64
sub ecx, eax
cmp ecx, ebp
jbe 0x41f0e2
mov ebp, ecx
add esi, 8
sub ebx, 1
jne 0x41f0b0
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41f0fb
push edi
call fcn.0044666e
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41f10c
push eax
call fcn.0044666e
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x421240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x421253
push 0x80004005
call fcn.004034b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x421260
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4212a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x42130e
test ecx, ecx
je 0x421300
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x42131c
test ecx, ecx
je 0x4213c1
push ecx
jmp 0x4213bb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x42138e
jmp 0x421350
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.004212a0
mov edi, eax
test edi, edi
jne 0x4213dd
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x421350
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4213a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4213c1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044610a
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4213ec
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4213c3
Function at 0x421870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x474720
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a7534]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [fcn.004a738c]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x4218f9
call fcn.00421000
mov esi, eax
jmp 0x4219df
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x421915
call fcn.00421000
jmp 0x4219d6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x42192e
call fcn.00421000
jmp 0x4219d6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x421964
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x421952
lea eax, [ebp]
call fcn.004239d0
lea esi, [ebp - 0x1c]
call fcn.00423830
mov eax, 0x8007000e
jmp 0x4219f2
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00423910
mov dword [ebp - 4], 1
jmp 0x42198c
mov esi, dword [ebp]
test esi, esi
jne 0x42199a
mov esi, 0x8007000e
jmp 0x4219d8
call dword [fcn.004a738c]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4219bb
call fcn.00421000
jmp 0x4219d6
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.004225c0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4219f0
lea eax, [ebp]
call fcn.004239d0
nop
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0044610a
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x428b50
Capabilities:
Create directory

Disassembly:
sub esp, 0x244
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x23c], eax
push 0x206
lea eax, [esp + 0x36]
push 0
push eax
mov word [esp + 0x3c], 0
call fcn.004498f0
add esp, 0xc
mov ecx, esi
call fcn.0046d3a0
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00427630
lea edx, [esp + 0x38]
push 0x5c
push edx
call fcn.00425f30
add esp, 0x10
test eax, eax
jne 0x428bcf
mov ecx, esi
call fcn.0046d380
push eax
push 0x49726c
push edi
call fcn.0046c760
add esp, 0xc
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.0044610a
add esp, 0x244
ret
mov word [eax], 0
lea eax, [esp]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00449f34
add esp, 8
test eax, eax
je 0x428c42
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x428c22
lea eax, [esp + 0x30]
push eax
push 0x497280
push edi
call fcn.0046c760
add esp, 0xc
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.0044610a
add esp, 0x244
ret
push 0x10000000
lea ecx, [esp + 0x34]
push 1
push ecx
call fcn.004668e0
lea edx, [esp + 0x3c]
push 1
push edx
call fcn.00466b90
add esp, 0x14
mov ecx, dword [esp + 0x23c]
xor ecx, esp
mov al, 1
call fcn.0044610a
add esp, 0x244
ret

Function at 0x429060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473370
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [ebp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
xor esi, esi
push str.UserManager
mov dword [esp + 0x14], esi
call fcn.00402f70
add esp, 4
mov ecx, eax
call fcn.0043fa40
push esi
push esi
push esi
push esi
push esi
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], esi
call fcn.0046e600
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 2
call fcn.0046d3c0
push esi
push esi
push esi
push esi
push esi
push 0x497294
lea ecx, [esp + 0x34]
call fcn.0046d910
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
call fcn.0046e5e0
lea ecx, [esp + 0x1c]
call fcn.0046d3c0
push esi
push esi
push esi
push esi
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0046e600
lea ecx, [esp + 0xc]
call fcn.0046d3c0
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42c320
Capabilities:
Get common file path

Disassembly:
sub esp, 0x224
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x21c], eax
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.004498f0
add esp, 0xc
cmp word [esp + 0x10], 0
jne 0x42c3a8
push 0x104
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42c3a8
lea edx, [esp + 0x10]
push str.SogouPY.ime
push edx
call fcn.004275b0
add esp, 8
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.0046d910
lea ecx, [esp]
push ecx
mov ecx, esi
call fcn.0046d7d0
lea ecx, [esp]
call fcn.0046d3c0
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0044610a
add esp, 0x224
ret
Function at 0x42c450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4732f8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
call fcn.0046da70
lea esi, [esp + 0x30]
mov dword [esp + 0x58], 0
call fcn.0042c320
mov ecx, esi
call fcn.0046d2f0
test al, al
mov ecx, esi
je 0x42c51b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
call fcn.0046d3a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42c517
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42c510
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x42c510
lea esi, [esp + 0xc]
lea ecx, [esp + 0x40]
call fcn.0042c3c0
test al, al
jne 0x42c536
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.0046d3c0
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x50
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.0046d3c0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x50
ret

Function at 0x42c4b7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4732f8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
call fcn.0046da70
lea esi, [esp + 0x30]
mov dword [esp + 0x58], 0
call fcn.0042c320
mov ecx, esi
call fcn.0046d2f0
test al, al
mov ecx, esi
je 0x42c51b
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
call fcn.0046d3a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42c517
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42c510
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x42c510
lea esi, [esp + 0xc]
lea ecx, [esp + 0x40]
call fcn.0042c3c0
test al, al
jne 0x42c536
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.0046d3c0
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x50
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.0046d3c0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x50
ret
Function at 0x42c560
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4732c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x1c], 0
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
call fcn.0046da70
lea esi, [esp + 8]
mov dword [esp + 0x30], 0
call fcn.0042c320
mov ecx, esi
call fcn.0046d380
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c5c5
sub eax, edx
sar eax, 1
lea ecx, [esp + 8]
jne 0x42c5e4
call fcn.0046d3c0
or eax, 0xffffffff
jmp 0x42c60b
lea eax, [esp + 0x1c]
push eax
call fcn.0046d380
push eax
call fcn.00467200
add esp, 8
test al, al
lea ecx, [esp + 8]
je 0x42c5da
movzx esi, word [esp + 0x22]
call fcn.0046d3c0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0044610a
add esp, 0x2c
ret

Function at 0x42d4e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x14]
push eax
mov esi, ecx
mov edx, dword [esi]
push 8
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x42d56c
cmp byte [esp + 0x14], 0x53
jne 0x42d56c
cmp byte [esp + 0x15], 0x47
jne 0x42d56c
cmp byte [esp + 0x16], 0x50
jne 0x42d56c
cmp byte [esp + 0x17], 0x4f
jne 0x42d56c
mov ebx, dword [esp + 0x18]
call fcn.0042d6d0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call edi
neg eax
sbb eax, eax
neg eax
sub eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0044610a
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.0044610a
add esp, 0x18
ret
Function at 0x42d590
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [0x4a7534]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
push ebx
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
test eax, eax
push ebp
mov ebp, dword [esp + 0x20]
mov byte [esp + 0xc], 0x53
mov byte [esp + 0xd], 0x47
mov byte [esp + 0xe], 0x50
mov byte [esp + 0xf], 0x4f
mov dword [esp + 0x10], edi
lea ebx, [edi + 8]
je 0x42d5df
push eax
call fcn.00445f7c
add esp, 4
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push ebx
call fcn.0044630c
push 8
lea ecx, [esp + 0x14]
push ecx
push 8
push eax
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
call fcn.0044608f
mov edx, dword [esi + 4]
push edi
push ebp
add edx, 8
push edi
push edx
call fcn.0044608f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
add esp, 0x24
push 0
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
pop ebp
neg eax
pop ebx
xor ecx, esp
sub eax, 1
call fcn.0044610a
add esp, 0x14
ret 8
Function at 0x42f010
Capabilities:
Connect to http server

Disassembly:
push ecx
push esi
mov esi, eax
cmp dword [esi + 0x608], 0
jne 0x42f039
mov ecx, dword [esp + 0xc]
push 0x497754
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
xor al, al
pop esi
pop ecx
ret 0x18
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
test eax, eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x42f056
push eax
call edi
mov dword [ebp], 0
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x42f06a
push eax
call edi
mov dword [ebx], 0
cmp byte [esp + 0x2c], 0
mov eax, 0x50
mov dword [esp + 0x10], 0x84480100
je 0x42f08b
mov eax, 0x1bb
mov dword [esp + 0x10], 0x84c83100
push 0
push 0
push 3
push 0x482200
push 0x482200
push eax
mov eax, dword [esi + 0x608]
push str.profile.pinyin.sogou.com
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [ebx], eax
je 0x42f18c
cmp byte [esi], 0
jne 0x42f165
lea edi, [esi + 0x208]
mov ecx, edi
lea ebp, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x42f0d0
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
sub ecx, ebp
sar ecx, 1
je 0x42f114
mov ecx, edi
lea ebp, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x42f0f0
sub ecx, ebp
sar ecx, 1
push ecx
push edi
push 0x2b
push eax
call ebx
test eax, eax
jne 0x42f114
push 0x497d24
jmp 0x42f191
lea edx, [esi + 0x408]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f120
sub eax, edi
sar eax, 1
je 0x42f15d
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f136
mov ecx, dword [esp + 0x1c]
sub eax, edi
sar eax, 1
push eax
push edx
mov edx, dword [ecx]
push 0x2c
push edx
call ebx
test eax, eax
jne 0x42f15d
push 0x497d38
jmp 0x42f191
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
push eax
mov eax, dword [ebx]
push 0
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [ebp], eax
jne 0x42f1ab
push 0x497c90
mov ecx, dword [esp + 0x1c]
call fcn.0046c4e0
mov ecx, eax
call fcn.0046c360
pop ebx
pop edi
pop ebp
xor al, al
pop esi
pop ecx
ret 0x18
mov ebx, dword [esp + 0x18]
mov esi, ebp
call fcn.0042f220
test al, al
jne 0x42f1d7
push 0x497d50
mov ecx, ebx
call fcn.0046c2f0
mov ecx, eax
call fcn.0046c360
pop ebx
pop edi
pop ebp
xor al, al
pop esi
pop ecx
ret 0x18
pop ebx
pop edi
pop ebp
mov al, 1
pop esi
pop ecx
ret 0x18

Function at 0x42f680
Capabilities:
Send data

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
test esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
jbe 0x42f6b8
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
mov edi, edi
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebp
call ebx
test eax, eax
je 0x42f6c1
mov eax, dword [esp + 0x18]
add edi, eax
sub esi, eax
jne 0x42f6a0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 8
mov ecx, dword [esp + 0x14]
push 0x497d9c
call fcn.0046c4e0
mov ecx, eax
call fcn.0046c360
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
Function at 0x430f50
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x473200
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x4a7534]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call fcn.0046bf10
push 0x64
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.00466da0
mov byte [esp + 0x28], 1
mov eax, dword [edi + 0xc]
mov edx, dword [eax + 0xc]
lea esi, [edi + 0xc]
mov ecx, esi
call edx
test al, al
je 0x430fcc
push esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.00467070
test al, al
je 0x430fcc
lea ecx, [edi + 0x630]
call fcn.00468430
lea ecx, [esp + 0xc]
call fcn.00466f00
lea ecx, [esp + 0xc]
call fcn.00466d80
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.00466f30
lea ecx, [esp + 0x14]
call fcn.0046beb0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret