joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431f84
Capabilities:
Read file on windows

Disassembly:
push ebp
xor ebp, ebp
push ebp
push ebp
push ebp
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push dword [esp + 0x18]
push 2
push 1
push 0x44b368
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov cx, word [0x44b368]
add esp, 0x20
cmp cl, 0xff
jne 0x431fc0
cmp ch, 0xfe
jne 0x431fee
push 2
pop eax
pop ebp
ret
cmp cl, 0xef
jne 0x431fee
cmp ch, 0xbb
jne 0x431fee
push dword [esp + 8]
push 1
push 1
push 0x44b368
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp byte [0x44b368], 0xbf
jne 0x431fee
xor eax, eax
inc eax
pop ebp
ret
push ebp
push ebp
push ebp
push dword [esp + 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
xor eax, eax
pop ebp
ret

Function at 0x432002
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 0
push 0x2000000
push 3
push 0
push 2
push 0x100
push dword [ebx + 0x50]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43207c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x3c]
push ecx
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0x2c]
push eax
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0x1c]
push eax
call esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
pop esi
test eax, eax
jne 0x432075
push dword [ebp + 8]
call sym.luart.exe_lua_error
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret

Function at 0x4322bc
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
push dword [sym.luart.exe_TFile]
push 1
push dword [esp + 0x14]
call sym.luart.exe_lua_toself
add esp, 0xc
mov edi, eax
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push dword [esp + 0x10]
mov esi, eax
call sym.luart.exe_lua_toboolean
mov edx, dword [esp + 0x18]
pop ecx
pop ecx
mov ecx, esi
or ecx, edx
not edx
and edx, esi
test eax, eax
cmovne edx, ecx
push edx
push dword [edi + 0x50]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
xor eax, eax
pop esi
ret

Function at 0x432487
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push dword [sym.luart.exe_TPipe]
push 1
push dword [esp + 0x14]
call sym.luart.exe_lua_toself
add esp, 0xc
mov edi, eax
push 0xffffffffffffffff
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 8]
call esi
push dword [edi + 0xc]
call esi
push dword [edi + 0x10]
call esi
push dword [edi + 0x14]
call esi
push dword [edi + 0x18]
call esi
push dword [edi + 0x1c]
call esi
push dword [edi + 0x20]
call esi
push 0x30
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret
Function at 0x432693
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
lea eax, [esp + 8]
push ebx
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x2c]
xor edi, edi
inc edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x432752
cmp dword [esp + 8], ebx
je 0x432752
push ebp
push esi
push dword [esp + 0x10]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
pop ecx
pop ecx
mov ebp, eax
mov esi, ebx
push ebx
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4326fd
cmp dword [esp + 0x14], ebx
jne 0x432703
add esi, dword [esp + 0x14]
jmp 0x4326d8
push ebx
push ebx
push dword [esp + 0x18]
push ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call ebx
mov esi, eax
lea eax, [esi + esi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
push esi
mov edi, eax
push edi
push dword [esp + 0x18]
push ebp
push 0
push 1
call ebx
push 0xffffffffffffffff
push edi
push dword [esp + 0x24]
call sym.luart.exe_lua_pushlwstring
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push edi
call esi
push ebp
call esi
add esp, 0x14
xor eax, eax
inc eax
pop esi
pop ebp
jmp 0x432754
xor eax, eax
pop edi
pop ebx
pop ecx
pop ecx
ret
Function at 0x432bc3
Capabilities:
Copy file
Delete directory
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x1d8]
sub esp, 0x258
mov eax, dword [0x44b240]
xor eax, ebp
mov dword [ebp + 0x1d4], eax
mov eax, dword [ebp + 0x1e4]
push ebx
mov ebx, dword [ebp + 0x1e0]
push esi
push edi
push 0x44273c
push eax
mov dword [ebp - 0x80], eax
call fcn.0042530c
mov esi, eax
push esi
call fcn.00432db9
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x432d0f
lea eax, [ebp - 0x7c]
push eax
push 0x444fbc
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x432cf1
mov ecx, 0x444fc4
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x432c64
test dx, dx
je 0x432c60
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x432c64
add eax, 4
add ecx, 4
test dx, dx
jne 0x432c3e
xor eax, eax
jmp 0x432c69
sbb eax, eax
or eax, 1
test eax, eax
je 0x432cde
mov ecx, 0x444fc8
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x432c9b
test dx, dx
je 0x432c97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x432c9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x432c75
xor eax, eax
jmp 0x432ca0
sbb eax, eax
or eax, 1
test eax, eax
je 0x432cde
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x80]
call fcn.0042530c
test byte [ebp - 0x7c], 0x10
mov esi, eax
pop ecx
pop ecx
lea eax, [ebp - 0x50]
je 0x432cc8
push esi
push eax
call fcn.00432bc3
pop ecx
pop ecx
jmp 0x432cd2
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x432d0f
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x432c36
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x43fd80
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
inc eax
jmp 0x432d11
xor eax, eax
mov ecx, dword [ebp + 0x1d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043cf52
add ebp, 0x1d8
leave
ret
Function at 0x432db9
Capabilities:
Create directory

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
pop ecx
movzx ecx, word [esi]
xor edx, edx
mov edi, eax
mov eax, ecx
push 0x5c
pop ebp
test cx, cx
je 0x432df7
xor ecx, ecx
mov ebx, eax
cmp bx, 0x2f
jne 0x432de8
mov word [ecx + edi], bp
inc edx
lea ecx, [edx + edx]
movzx eax, word [ecx + esi]
mov ebx, eax
test ax, ax
jne 0x432dde
xor ebx, ebx
push ebp
inc ebx
push edi
jmp 0x432e30
xor eax, eax
cmp word [esi - 2], 0x3a
mov word [esi], ax
je 0x432e23
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x432e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x432e3f
mov word [esi], bp
sub esi, edi
sar esi, 1
inc esi
push ebp
lea eax, [edi + esi*2]
push eax
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x432dfe
jmp 0x432e41
xor ebx, ebx
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x432e50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x44b240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x432f5b
lea eax, [ebp - 0x254]
push eax
push 0x444fbc
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x432f40
mov ecx, 0x444fc4
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x432ec5
test dx, dx
je 0x432ec1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x432ec5
add eax, 4
add ecx, 4
test dx, dx
jne 0x432e9f
xor eax, eax
jmp 0x432eca
sbb eax, eax
or eax, 1
test eax, eax
je 0x432f2a
mov ecx, 0x444fc8
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x432eff
test dx, dx
je 0x432efb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x432eff
add eax, 4
add ecx, 4
test dx, dx
jne 0x432ed9
xor eax, eax
jmp 0x432f04
sbb eax, eax
or eax, 1
test eax, eax
je 0x432f2a
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
push eax
je 0x432f20
call fcn.00432e50
pop ecx
jmp 0x432f26
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x432f5b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x432e94
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x43fd80
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x432f5d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043cf52
leave
ret
Function at 0x433665
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
xor ecx, ecx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push 1
push dword [esi + 4]
mov dword [ebp - 0xc], ecx
push dword [esi + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4336d9
push edi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov edi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
push dword [esi + 4]
push dword [esi + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4336d0
mov eax, dword [ebp - 4]
mov dword [esi + 8], edi
mov dword [esi + 4], eax
jmp 0x4336d8
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4336dc
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
push eax
xor edi, edi
push edi
push 0x40000001
push dword [ebx + 4]
mov dword [ebp - 4], edi
push dword [ebx + 8]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x433744
push esi
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0x40000001
push dword [ebx + 4]
push dword [ebx + 8]
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x43373b
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sym.luart.exe_lua_pushlstring
add esp, 0xc
inc edi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x434a72
Capabilities:
Delete file

Disassembly:
push edi
mov edi, dword [esp + 8]
push str.DLL_binary_modules
push 0xfff0b9d8
push edi
call sym.luart.exe_lua_getfield
add esp, 0xc
test eax, eax
je 0x434ae8
push edi
call sym.luart.exe_lua_pushnil
push 0xfffffffffffffffe
push edi
call sym.luart.exe_lua_next
add esp, 0xc
test eax, eax
je 0x434ae8
push esi
push 0
push 0xfffffffffffffffe
push edi
call sym.luart.exe_lua_tolwstring
push 0xffffffffffffffff
push edi
mov esi, eax
call sym.luart.exe_lua_touserdata
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push 0xfffffffffffffffe
push edi
call sym.luart.exe_lua_settop
push 0xfffffffffffffffe
push edi
call sym.luart.exe_lua_next
add esp, 0x14
test eax, eax
jne 0x434aa4
pop esi
xor eax, eax
pop edi
ret
Function at 0x434aec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0xa
push 0x64
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [0x44b36c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x44b36c]
test ecx, ecx
je 0x434b89
cmp eax, 2
jbe 0x434b89
push eax
push ecx
call fcn.00434e12
mov dword [0x44b34c], eax
pop ecx
pop ecx
test eax, eax
je 0x434b89
mov esi, dword [esp + 0xc]
push str.package
push esi
call sym.luart.exe_lua_getglobal
push str.searchers
push 0xffffffffffffffff
push esi
call sym.luart.exe_lua_getfield
push edi
push 0x434c30
push esi
call sym.luart.exe_lua_pushcclosure
push 0xfffffffffffffffe
push esi
call sym.luart.exe_luaL_len
add eax, 1
adc edx, edi
push edx
push eax
push 0xfffffffffffffffe
push esi
call sym.luart.exe_lua_rawseti
push 0xfffffffffffffffd
push esi
call sym.luart.exe_lua_settop
xor eax, eax
add esp, 0x40
inc eax
jmp 0x434b8b
xor eax, eax
pop edi
pop esi
ret
Function at 0x436851
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov eax, dword [0x44b240]
xor eax, esp
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
push ebp
push esi
push edi
mov edi, dword [ecx + 0x74]
xor esi, esi
push esi
push eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call dword [0x446668]
pop ecx
xor ebp, ebp
pop ecx
cmp dword [esp + 0x68], esi
jbe 0x43699d
push ebx
mov ebx, dword [esp + 0x6c]
mov eax, dword [edi + 0x10]
sub ebx, ebp
cmp dword [edi + 0x18], ebx
cmovb ebx, dword [edi + 0x18]
add eax, dword [edi + 0x14]
add eax, ebx
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x436993
mov eax, dword [esp + 0x18]
add eax, ebp
push ebx
push eax
mov eax, dword [edi + 0x10]
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi + 0x10]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
add ecx, eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ebx
lea eax, [ecx + ebx]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x48], eax
xor ebx, ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x38], 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push ebx
push eax
mov eax, dword [esp + 0x1c]
push ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], 6
mov eax, dword [eax + 0x74]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], ebx
push dword [eax + 0xc]
call sub.Secur32.dll_EncryptMessage
test eax, eax
js 0x436987
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x43698e
push ebx
add esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add ebp, dword [edi + 0x18]
pop ecx
cmp ebp, dword [esp + 0x6c]
jb 0x436892
jmp 0x43699c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x43699c
push 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop ebx
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043cf52
add esp, 0x4c
ret
Function at 0x436da4
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x98
mov eax, dword [0x44b240]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
lea ecx, [esp]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
push edi
xor edi, edi
push edi
push ecx
push edi
push edi
push dword [esp + 0xc4]
push eax
call sub.DNSAPI.dll_DnsQuery_A
xor ebp, ebp
mov esi, eax
inc ebp
test esi, esi
jne 0x436e74
cmp word [esp + 0xb4], bp
jne 0x436e07
mov eax, dword [esp + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x436e5f
cmp word [esp + 0xb4], 0x1c
jne 0x436e58
mov ebp, 0x80
lea eax, [esp + 0x24]
push ebp
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x24]
lea esi, [esi + 0x18]
movsd dword es:[edi], dword [esi]
push ebp
push eax
lea eax, [esp + 0x1c]
movsd dword es:[edi], dword [esi]
push eax
push 0x17
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.WS2_32.dll_inet_ntop
lea eax, [esp + 0x24]
push eax
push ebx
call dword [0x446664]
xor ebp, ebp
inc ebp
jmp 0x436e66
mov eax, dword [esp + 0x10]
push dword [eax + 0x18]
push ebx
call dword [0x446664]
pop ecx
pop ecx
push ebp
push dword [esp + 0x14]
call sub.DNSAPI.dll_DnsFree
jmp 0x436ea7
cmp esi, 0x251d
je 0x436e9f
cmp esi, 0x25e5
je 0x436e9f
cmp esi, 0x232b
je 0x436e9f
push edi
push ebx
call dword [0x446668]
pop ecx
pop ecx
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x436ea7
push ebx
call dword [0x446658]
pop ecx
mov ecx, dword [esp + 0xa4]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043cf52
add esp, 0x98
ret
Function at 0x438cc0
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Write file on windows

Disassembly:
sub esp, 0x70
mov eax, dword [0x44b240]
xor eax, esp
mov dword [esp + 0x6c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x88]
push esi
call fcn.0043a103
pop ecx
test al, al
jne 0x438ec3
mov dword [edi], 0x3e3
mov byte [esi + 0xe8], 1
push esi
call fcn.0043a700
pop ecx
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043cf52
add esp, 0x70
ret
mov ecx, dword [esi + 0x10]
cmp ecx, 7
je 0x438ecd
sub ecx, 0
je 0x438e9f
sub ecx, 1
je 0x438e56
sub ecx, 3
je 0x438dff
sub ecx, 1
je 0x438de4
sub ecx, 1
jne 0x438ec3
and dword [esp + 0x38], ecx
lea eax, [esp + 0x14]
push esi
push 0xc
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x28
push eax
push dword [esi + 8]
lea ebp, [esi + 0x108]
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 0xffff
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x438daa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
cmp eax, 0x3e5
je 0x438ec3
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x438ee5
mov eax, dword [esi + 0x80]
test eax, eax
je 0x438dd0
push eax
push ebx
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x438dd9
push ebp
lea ecx, [esi + 0x4c]
call fcn.004396bd
add dword [esi + 0x84], ebx
jmp 0x438ec3
push 0
push 8
push 0
push dword [esi + 8]
mov dword [esi + 0x10], 6
call dword [sym.imp.WININET.dll_HttpEndRequestA]
jmp 0x438eb7
lea eax, [esp + 0x13]
mov dword [esi + 0x10], 5
push eax
push 0xffffffffffffffff
lea ebp, [esi + 0xec]
push dword [ebp]
lea ebx, [esi + 0xf0]
push ebx
lea ecx, [esp + 0x74]
call fcn.0043857f
lea eax, [esp + 0x64]
mov ecx, ebx
push eax
call fcn.004388a6
lea ecx, [esp + 0x64]
call fcn.00439667
cmp dword [ebx + 0x14], 0xf
jbe 0x438e43
mov ebx, dword [ebx]
push ebp
push dword [esi + 0x100]
push ebx
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
jmp 0x438eb7
mov eax, dword [esi + 0x100]
xorps xmm0, xmm0
push esi
push 0
mov dword [esp + 0x60], eax
lea eax, [esp + 0x44]
push 0
push eax
push dword [esi + 8]
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x70], xmm0
mov dword [esp + 0x50], 0x28
mov dword [esi + 0x10], 4
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
jmp 0x438eb7
push 0
push 0
push 0
push 0
push dword [esi + 8]
mov dword [esi + 0x10], 6
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x438ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, dword [edi]
test eax, eax
je 0x438d16
test eax, eax
je 0x438cfc
cmp eax, 0x3e5
je 0x438cfc
jmp 0x438cf5
mov dword [esi + 0x10], 7
mov byte [esi + 0xe9], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x1012c]
mov dword [esi + 0x1012c], eax
jmp 0x438cfc
Function at 0x43a5a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1018
call fcn.0043d400
mov eax, dword [0x44b240]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x1020]
push ebx
mov ebx, dword [esp + 0x1020]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1034]
mov dword [esp + 0x14], eax
xor eax, eax
push eax
push 0x80
push 3
push eax
push 3
push accept
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43a620
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call dword [0x4466a8]
push 0
push 0xffffffffffffffff
push ebx
call dword [0x446650]
push eax
push str.cannot_open_File_:__s
push ebx
call dword [0x44668c]
add esp, 0x20
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a5f7
mov eax, dword [esp + 0x14]
add eax, 0xf0
mov dword [esp + 0x18], eax
push dword [esp + 0x10]
add ebp, dword [esp + 0x14]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.004396dc
xor eax, eax
cmp eax, dword [esp + 0x20]
jg 0x43a69d
jl 0x43a679
cmp ebp, dword [esp + 0x1c]
jae 0x43a69d
push eax
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov eax, dword [esp + 0x18]
jne 0x43a655
jmp 0x43a5f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043cf52
add esp, 0x1018
ret

Function at 0x43b363
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push edi
call dword [0x44666c]
push 1
push 0x43b231
push edi
call dword [0x4466bc]
push 1
push str.Task
push edi
call dword [0x446698]
push 0xffffffffffffffff
push edi
call dword [0x4466ac]
add esp, 0x28
xor ebx, ebx
push ebx
push ebx
push esi
push dword [esp + 0x24]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x43b3c5
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x4466d0]
add esp, 0x14
jmp 0x43b3ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call dword [0x4466a8]
push ebx
push 0xffffffffffffffff
push edi
call dword [0x446650]
push eax
push str.async_error_:__s
push edi
call dword [0x44668c]
add esp, 0x20
pop edi
pop esi
pop ebx
ret