joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e917
Capabilities:
Check if file exists
Delete file
Move file
Query environment variable

Disassembly:
push ebp
sub esp, 0x858
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x858], eax
push 0x20
mov eax, 0x5103ee
call fcn.0049dfed
xor eax, eax
push 0x206
mov word [ebp + 0x240], ax
xor ebx, ebx
lea eax, [ebp + 0x242]
push ebx
push eax
call fcn.0049d740
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp + 0x240]
push eax
push str._Appdata_SogouApkToolAndroid_
call esi
lea eax, [ebp + 0x240]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401685
push 0x5387d4
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.00409dbb
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.004019f3
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040184d
lea eax, [ebp + 0x240]
push eax
lea ecx, [ebp]
call fcn.00401685
push str.aapt.exe
lea eax, [ebp]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.00409dbb
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 3
call fcn.004019f3
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040184d
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40ea0d
lea eax, [ebp + 0x20]
push eax
push 0x5387d4
call fcn.0047af89
pop ecx
pop ecx
test al, al
jne 0x40eb1d
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40ea2e
lea eax, [ebp + 4]
push eax
push str.aapt.exe
call fcn.0047af89
pop ecx
pop ecx
test al, al
jne 0x40eb1d
xor eax, eax
push 0x206
mov word [ebp + 0x448], ax
lea eax, [ebp + 0x44a]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
push edi
lea eax, [ebp + 0x448]
push eax
push str._Appdata_SogouApkToolAdbNew.zip
call esi
lea eax, [ebp + 0x448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40eb1d
xor eax, eax
push 0x206
mov word [ebp + 0x650], ax
lea eax, [ebp + 0x652]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
push edi
lea eax, [ebp + 0x650]
push eax
push str._Appdata_SogouApkToolAdb.zip
call esi
lea eax, [ebp + 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x650]
push eax
lea eax, [ebp + 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40eb1d
xor eax, eax
push 0x206
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x3a]
push ebx
push eax
call fcn.0049d740
add esp, 0xc
push edi
lea eax, [ebp + 0x38]
push eax
push str._Appdata_SogouApkToolAndroid
call esi
call fcn.00409b27
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp + 0x650]
push eax
call fcn.0047ab3d
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp - 0xd], al
jmp 0x40eb21
mov byte [ebp - 0xd], 1
push ebx
push 1
lea ecx, [ebp]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040184d
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x858]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x85c
leave
ret
Function at 0x410bc3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50d984
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x551bd0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x551bd0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x410c26
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049a49b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x410c4e
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x410c4e
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x410c06
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x410c5a
or eax, 0xffffffff
jmp 0x410c06
cmp dword [esi + 0x3c], edi
jne 0x410c72
push eax
movsx eax, bl
push eax
call fcn.0049c55b
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x410c55
jmp 0x410c4a
push edi
push 8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1b], bl
call fcn.004113ac
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x74], edi
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
mov edi, dword [esp + 0x58]
mov ebx, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
lea edx, [esp + 0x18]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x410d7e
cmp eax, 1
jg 0x410dbb
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
mov edi, dword [esp + 0x18]
sub edi, eax
je 0x410d17
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0049cdfe
add esp, 0x10
cmp edi, eax
jne 0x410da4
lea eax, [esp + 0x13]
mov byte [esi + 0x41], 1
cmp dword [esp + 0x1c], eax
jne 0x410dd7
test edi, edi
ja 0x410d41
cmp dword [esp + 0x58], 0x20
jae 0x410da4
push 0
push 8
lea ecx, [esp + 0x4c]
call fcn.004113d2
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x48]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
mov edi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x48]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x27]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x410cc5
or esi, 0xffffffff
push 0
push 1
lea ecx, [esp + 0x4c]
call fcn.004017de
mov eax, esi
jmp 0x410c06
cmp eax, 3
jne 0x410da4
movsx eax, byte [esp + 0x13]
push dword [esi + 0x4c]
push eax
call fcn.0049c55b
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x410da7
mov esi, dword [ebp + 8]
jmp 0x410da7
Function at 0x411b92
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x50dcf3
call fcn.0049e056
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x411c9e
cmp byte [esi + 0x41], 0
je 0x411c9e
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x411bc8
xor al, al
jmp 0x411ca0
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.004113ac
mov dword [ebp - 4], edi
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x411c38
dec eax
je 0x411c3c
dec eax
dec eax
je 0x411c9a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004017de
mov al, bl
jmp 0x411ca0
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x411c7c
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.00411420
mov ecx, eax
call fcn.00411f9c
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0049cdfe
add esp, 0x10
cmp edi, eax
jne 0x411c26
cmp byte [esi + 0x41], 0
je 0x411c9a
test edi, edi
jne 0x411bd6
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.004113d2
jmp 0x411bd6
mov bl, 1
jmp 0x411c28
mov al, 1
call fcn.0049e0d9
ret
Function at 0x413a18
Capabilities:
Check if file exists

Disassembly:
push 0x218
mov eax, 0x50d836
call fcn.0049dfed
push dword [ebp + 8]
call fcn.0043ef2a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040920a
add esp, 0xc
test eax, eax
jne 0x413a5d
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0043ef7a
pop ecx
pop ecx
jmp 0x413bab
lea eax, [ebp - 0x11c]
push eax
call fcn.0043edf6
pop ecx
mov edi, str.exthemeApkTool4SogouMarket.zip
push edi
lea ecx, [ebp - 0x98]
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00443217
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00442fe7
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], bl
call fcn.00442e9d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.00442e9d
lea eax, [ebp - 0x98]
push eax
call fcn.0043edf6
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x413b0b
push edi
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00443217
push ebx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00442fe7
push eax
call fcn.00442240
pop ecx
pop ecx
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 2
call fcn.00442e9d
lea ecx, [ebp - 0x98]
jmp 0x413ba2
mov edi, str.extheme
push edi
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.00443217
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00442fe7
push eax
call esi
lea ecx, [ebp - 0x11c]
mov esi, eax
mov byte [ebp - 4], 4
call fcn.00442e9d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00442e9d
cmp esi, ebx
je 0x413baf
lea eax, [ebp - 0x224]
push eax
call fcn.0043edf6
pop ecx
push edi
lea ecx, [ebp - 0x1a0]
push ecx
mov ecx, eax
mov dword [ebp - 4], 6
call fcn.00443217
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00442fe7
push eax
call fcn.0043ef34
pop ecx
lea ecx, [ebp - 0x1a0]
mov byte [ebp - 4], 6
call fcn.00442e9d
lea ecx, [ebp - 0x224]
or dword [ebp - 4], 0xffffffff
call fcn.00442e9d
mov al, 1
jmp 0x413bc4
push 0x30
push 0x539990
push 0x5399a0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
call fcn.0049e0c5
ret

Function at 0x413df9
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call fcn.0049d3d9
mov esi, eax
add esi, 0x11
push esi
call fcn.00499a0f
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x413e2a
push str.Out_of_memory__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x413e66
push esi
push 0
push edi
call fcn.0049d740
push str.__SPA:
push esi
push edi
call fcn.0049d31a
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x28]
add esi, 0xfffffff9
lea eax, [edi + 7]
push esi
push eax
call fcn.0049d1d6
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
call fcn.0049ac10
pop ecx
pop edi
pop esi
ret
Function at 0x415bb0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push esi
call edi
cmp eax, 0xffffffff
jne 0x415c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x415beb
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call edi
pop edi
ret

Function at 0x415c80
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x81c
mov eax, dword [0x551bd0]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [esp + 0x820]
mov ecx, dword [esp + 0x828]
mov edx, dword [esp + 0x830]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x838]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x844]
push edi
mov edi, dword [esp + 0x834]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
xor bl, bl
call fcn.00415bb0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x844]
mov dword [esp + 0x18], eax
cmp esi, 0xffffffff
je 0x415d32
mov ecx, dword [esp + 0x84c]
mov edx, dword [esp + 0x14]
push ecx
push ebp
push edx
mov edx, dword [esp + 0x30]
push edi
mov ecx, esi
call fcn.00415fc0
add esp, 0x10
push esi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x415d32
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x415d32
mov ecx, dword [esp + 0x10]
call fcn.00415c10
mov bl, al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x7ff
mov esi, eax
lea eax, [esp + 0x2d]
push 0
push eax
mov byte [esp + 0x34], 0
call fcn.0049d740
sub esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push ebp
push ebp
push esi
push edi
movzx ecx, bl
push ecx
push 0
push edx
lea eax, [esp + 0x50]
push str.http:__ping.acc.sogou.com_semob.gif_h_ss_dd_du_St_dfz_ddz_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x58]
push ecx
call fcn.0049db30
mov esi, eax
inc esi
push esi
call fcn.0049b479
push esi
lea edx, [esp + 0x64]
mov edi, eax
push edx
push edi
call fcn.0049d7c0
add esp, 0x44
push 0
push edi
push 0x416820
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
xor ecx, esp
call fcn.0049a49b
add esp, 0x81c
ret
Function at 0x416880
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4170fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 8]
mov byte [esp + 0x2f], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4171b6
lea eax, [esp + 0x20]
call fcn.00416880
mov esi, 0xa000
push esi
call fcn.00499a0f
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
push ebx
lea ecx, [esp + 0x18]
push ecx
push esi
mov dword [esp + 0x24], eax
push eax
jmp 0x417180
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x417190
push dword [esp + 0x18]
lea ecx, [esp + 0x24]
call fcn.004168b0
pop ecx
push ebx
lea eax, [esp + 0x18]
push eax
push esi
push dword [esp + 0x24]
push dword [esp + 0x2c]
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x41715f
jmp 0x417195
mov byte [esp + 0x13], 1
push dword [esp + 0x18]
call fcn.0049ac10
push dword [ebp + 0xc]
lea esi, [esp + 0x28]
call fcn.00416950
pop ecx
pop ecx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41729f
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x94
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push esi
push edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x7c]
mov esi, ecx
push 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4172e5
push str.LoadLibrary_fail.__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or eax, 0xffffffff
jmp 0x417347
push ebx
push 0x804
push esi
push 0xa
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
jne 0x417358
push 0x7e
push eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x12]
push eax
call fcn.0049d740
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x537974
lea eax, [ebp - 0x14]
push 0x40
push eax
call fcn.0049c53d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
call esi
push dword [ebp - 0x18]
call esi
push str.FindResource_fail.__r_n
call esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp + 0x6c]
pop edi
xor ecx, ebp
pop esi
call fcn.0049a49b
add ebp, 0x70
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.FindResource_succeed.__r_n
call esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x41738a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.LoadResource_fail.__r_n
jmp 0x4173ac
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x4173b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push str.SizeofResource_fail.__r_n
call esi
mov eax, edi
jmp 0x417346
push edi
call fcn.00499a0f
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4173d9
push str.new_allocate_memory_fail.__r_n
call esi
or esi, 0xffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x417346
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4173ff
push edi
push eax
push ebx
call fcn.0049d7c0
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov dword [eax], ebx
xor esi, esi
jmp 0x4173c9
push str.Lock_Resource_failed.
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call fcn.0049ac10
pop ecx
jmp 0x4173c9
Function at 0x417417
Capabilities:
Delete file
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0xc]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0041729f
pop ecx
pop ecx
cmp dword [ebp - 4], esi
je 0x417494
push edi
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417488
push ebx
mov ebx, dword [ebp - 0xc]
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417480
cmp dword [ebp - 0x10], ebx
jne 0x417480
mov dword [ebp - 8], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push dword [ebp - 4]
call fcn.0049ac10
pop ecx
pop edi
jmp 0x41749f
push str.GetRawData_fail.__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 8], esi
pop esi
jne 0x4174ae
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x418170
Capabilities:
Create http request

Disassembly:
mov eax, 0x50f38a
call fcn.00508264
sub esp, 0x84
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x18], ebx
push str.Browser1.0
mov dword [ebp - 0x20], vtable.CWebWorld.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.http:__tb.sogou.com_
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.00401644
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x90]
push eax
mov byte [ebp - 4], 1
call fcn.004157b8
add esp, 0xc
push 0x53a12c
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 2
call fcn.00415771
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00401729
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x74]
call fcn.004017de
push ebx
push esi
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004017de
cmp dword [0x55a5e4], ebx
jne 0x418235
push str.Unknown
lea ecx, [ebp - 0x90]
call fcn.00401644
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], esi
jmp 0x41823a
mov eax, 0x55a5d0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00409cc4
mov dword [ebp - 4], esi
test byte [ebp - 0x18], 1
je 0x41825c
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.004017de
cmp dword [ebp - 0x40], 0x10
mov eax, dword [ebp - 0x54]
jae 0x418268
lea eax, [ebp - 0x54]
push eax
push 0x53a134
call fcn.00413df9
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x24], 0xf
call fcn.00401979
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00424335
cmp al, bl
jne 0x4182d7
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.00401729
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.004017de
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.004017de
lea ecx, [ebp - 0x20]
call fcn.00424325
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x4182e3
lea eax, [ebp - 0x38]
push eax
push 0x53a144
call fcn.00413df9
pop ecx
pop ecx
push ebx
push str.OK_r_n
lea ecx, [ebp - 0x3c]
call fcn.0040bf70
cmp eax, ebx
je 0x418335
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x3c]
push eax
call fcn.00401729
mov byte [ebp - 0x11], bl
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.004017de
push ebx
push esi
lea ecx, [ebp - 0x58]
call fcn.004017de
lea ecx, [ebp - 0x20]
call fcn.00424325
mov al, byte [ebp - 0x11]
jmp 0x4182c9
push 4
push 0x53a15c
lea ecx, [ebp - 0x3c]
call fcn.0040bf70
add eax, 0xfffffffc
push eax
push 4
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040711c
mov ecx, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov byte [ebp - 4], 6
call fcn.00401729
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.004017de
mov byte [ebp - 0x11], 1
jmp 0x418314
Function at 0x41875c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x50df5c
call fcn.00508264
sub esp, 0x60
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x14], esi
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
call fcn.00401979
push str._r_n_r_n
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00401644
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov edi, dword [sym.imp.WS2_32.dll_recv]
jmp 0x4187ff
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push ebx
call fcn.004113d2
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x3c]
jb 0x4187de
sub eax, dword [ebp - 0x3c]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040711c
mov ecx, eax
mov byte [ebp - 4], 2
or dword [ebp - 0x14], 2
lea eax, [ebp - 0x50]
call fcn.0040713e
mov byte [ebp - 0xd], bl
test eax, eax
je 0x4187e2
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], ebx
test byte [ebp - 0x14], 2
je 0x4187f9
and dword [ebp - 0x14], 0xfffffffd
push esi
push ebx
lea ecx, [ebp - 0x6c]
call fcn.004017de
cmp byte [ebp - 0xd], 0
jne 0x41881d
push esi
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call edi
test eax, eax
jg 0x41879f
mov ecx, dword [ebp + 8]
push 0x535d5a
call fcn.00401644
jmp 0x418829
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00403731
push esi
push ebx
lea ecx, [ebp - 0x50]
call fcn.004017de
push esi
push ebx
lea ecx, [ebp - 0x34]
call fcn.004017de
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41884f
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x5100ed
call fcn.00508264
sub esp, 0x198
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 4], vtable.pxp::CPxpClass_class_pxp::IThreadHandler_.0
mov byte [ebp - 4], 1
push ebx
push 1
mov dword [edi], vtable.HttpServer.0
mov dword [edi + 4], vtable.HttpServer.1.0
lea esi, [edi + 0x10]
call fcn.0047df04
pop ecx
pop ecx
cmp eax, ebx
je 0x418897
mov dword [eax], esi
jmp 0x418899
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
push ebx
push 1
mov byte [ebp - 4], 3
lea esi, [edi + 0x2c]
call fcn.0047df04
pop ecx
pop ecx
cmp eax, ebx
je 0x4188bd
mov dword [eax], esi
jmp 0x4188bf
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea esi, [edi + 0x44]
mov byte [ebp - 4], 5
call fcn.00422dad
lea eax, [ebp - 0x19c]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4