joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4334e6
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 0x433524
xor ecx, ecx
mov ebx, eax
cmp bx, 0x2f
jne 0x433515
mov word [ecx + edi], bp
inc edx
lea ecx, [edx + edx]
movzx eax, word [ecx + esi]
mov ebx, eax
test ax, ax
jne 0x43350b
xor ebx, ebx
push ebp
inc ebx
push edi
jmp 0x43355d
xor eax, eax
cmp word [esi - 2], 0x3a
mov word [esi], ax
je 0x433550
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x433550
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43356c
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 0x43352b
jmp 0x43356e
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 0x43357d
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 [0x459c80]
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 0x433688
lea eax, [ebp - 0x254]
push eax
push 0x4513a4
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43366d
mov ecx, 0x4513ac
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4335f2
test dx, dx
je 0x4335ee
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4335f2
add eax, 4
add ecx, 4
test dx, dx
jne 0x4335cc
xor eax, eax
jmp 0x4335f7
sbb eax, eax
or eax, 1
test eax, eax
je 0x433657
mov ecx, 0x4513b0
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43362c
test dx, dx
je 0x433628
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43362c
add eax, 4
add ecx, 4
test dx, dx
jne 0x433606
xor eax, eax
jmp 0x433631
sbb eax, eax
or eax, 1
test eax, eax
je 0x433657
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
push eax
je 0x43364d
call fcn.0043357d
pop ecx
jmp 0x433653
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x433688
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4335c1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x44c180
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43368a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00449662
leave
ret
Function at 0x433d92
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 0x433e06
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 0x433dfd
mov eax, dword [ebp - 4]
mov dword [esi + 8], edi
mov dword [esi + 4], eax
jmp 0x433e05
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 0x433e09
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 0x433e71
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 0x433e68
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sym.wluart.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 0x43519f
Capabilities:
Delete file

Disassembly:
push edi
mov edi, dword [esp + 8]
push str.DLL_binary_modules
push 0xfff0b9d8
push edi
call sym.wluart.exe_lua_getfield
add esp, 0xc
test eax, eax
je 0x435215
push edi
call sym.wluart.exe_lua_pushnil
push 0xfffffffffffffffe
push edi
call sym.wluart.exe_lua_next
add esp, 0xc
test eax, eax
je 0x435215
push esi
push 0
push 0xfffffffffffffffe
push edi
call sym.wluart.exe_lua_tolwstring
push 0xffffffffffffffff
push edi
mov esi, eax
call sym.wluart.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.wluart.exe_lua_settop
push 0xfffffffffffffffe
push edi
call sym.wluart.exe_lua_next
add esp, 0x14
test eax, eax
jne 0x4351d1
pop esi
xor eax, eax
pop edi
ret
Function at 0x435219
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 [0x459fbc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x459fbc]
test ecx, ecx
je 0x4352b6
cmp eax, 2
jbe 0x4352b6
push eax
push ecx
call fcn.0043553f
mov dword [0x459f9c], eax
pop ecx
pop ecx
test eax, eax
je 0x4352b6
mov esi, dword [esp + 0xc]
push str.package
push esi
call sym.wluart.exe_lua_getglobal
push str.searchers
push 0xffffffffffffffff
push esi
call sym.wluart.exe_lua_getfield
push edi
push 0x43535d
push esi
call sym.wluart.exe_lua_pushcclosure
push 0xfffffffffffffffe
push esi
call sym.wluart.exe_luaL_len
add eax, 1
adc edx, edi
push edx
push eax
push 0xfffffffffffffffe
push esi
call sym.wluart.exe_lua_rawseti
push 0xfffffffffffffffd
push esi
call sym.wluart.exe_lua_settop
xor eax, eax
add esp, 0x40
inc eax
jmp 0x4352b8
xor eax, eax
pop edi
pop esi
ret
Function at 0x436f7d
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov eax, dword [0x459c80]
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 [0x45404c]
pop ecx
xor ebp, ebp
pop ecx
cmp dword [esp + 0x68], esi
jbe 0x4370c9
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 0x4370bf
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 0x4370b3
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 0x4370ba
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 0x436fbe
jmp 0x4370c8
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
or esi, 0xffffffff
jmp 0x4370c8
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.00449662
add esp, 0x4c
ret
Function at 0x4374d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x98
mov eax, dword [0x459c80]
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 0x4375a0
cmp word [esp + 0xb4], bp
jne 0x437533
mov eax, dword [esp + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x43758b
cmp word [esp + 0xb4], 0x1c
jne 0x437584
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 [0x453fd8]
xor ebp, ebp
inc ebp
jmp 0x437592
mov eax, dword [esp + 0x10]
push dword [eax + 0x18]
push ebx
call dword [0x453fd8]
pop ecx
pop ecx
push ebp
push dword [esp + 0x14]
call sub.DNSAPI.dll_DnsFree
jmp 0x4375d3
cmp esi, 0x251d
je 0x4375cb
cmp esi, 0x25e5
je 0x4375cb
cmp esi, 0x232b
je 0x4375cb
push edi
push ebx
call dword [0x45404c]
pop ecx
pop ecx
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x4375d3
push ebx
call dword [0x454040]
pop ecx
mov ecx, dword [esp + 0xa4]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449662
add esp, 0x98
ret
Function at 0x4393ed
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 [0x459c80]
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.0043a832
pop ecx
test al, al
jne 0x4395f0
mov dword [edi], 0x3e3
mov byte [esi + 0xe8], 1
push esi
call fcn.0043ae2f
pop ecx
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00449662
add esp, 0x70
ret
mov ecx, dword [esi + 0x10]
cmp ecx, 7
je 0x4395fa
sub ecx, 0
je 0x4395cc
sub ecx, 1
je 0x439583
sub ecx, 3
je 0x43952c
sub ecx, 1
je 0x439511
sub ecx, 1
jne 0x4395f0
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 0x4394d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
cmp eax, 0x3e5
je 0x4395f0
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x439612
mov eax, dword [esi + 0x80]
test eax, eax
je 0x4394fd
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 0x439506
push ebp
lea ecx, [esi + 0x4c]
call fcn.00439dea
add dword [esi + 0x84], ebx
jmp 0x4395f0
push 0
push 8
push 0
push dword [esi + 8]
mov dword [esi + 0x10], 6
call dword [sym.imp.WININET.dll_HttpEndRequestA]
jmp 0x4395e4
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.00438cac
lea eax, [esp + 0x64]
mov ecx, ebx
push eax
call fcn.00438fd3
lea ecx, [esp + 0x64]
call fcn.00439d94
cmp dword [ebx + 0x14], 0xf
jbe 0x439570
mov ebx, dword [ebx]
push ebp
push dword [esi + 0x100]
push ebx
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
jmp 0x4395e4
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 0x4395e4
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 0x4395f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, dword [edi]
test eax, eax
je 0x439443
test eax, eax
je 0x439429
cmp eax, 0x3e5
je 0x439429
jmp 0x439422
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 0x439429
Function at 0x43accf
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1018
call fcn.00449ba0
mov eax, dword [0x459c80]
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 SysReAllocString
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43ad4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
call dword [0x454084]
push 0
push 0xffffffffffffffff
push ebx
call dword [0x453fd4]
push eax
push str.cannot_open_File_:__s
push ebx
call dword [0x454070]
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 0x43ad26
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.00439e09
xor eax, eax
cmp eax, dword [esp + 0x20]
jg 0x43adcc
jl 0x43ada8
cmp ebp, dword [esp + 0x1c]
jae 0x43adcc
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 0x43ad84
jmp 0x43ad26
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.00449662
add esp, 0x1018
ret

Function at 0x43ba93
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 [0x454050]
push 1
push 0x43b961
push edi
call dword [0x453fdc]
push 1
push str.Task
push edi
call dword [0x454010]
push 0xffffffffffffffff
push edi
call dword [0x454088]
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 0x43baf5
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x4540a0]
add esp, 0x14
jmp 0x43bb1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call dword [0x454084]
push ebx
push 0xffffffffffffffff
push edi
call dword [0x453fd4]
push eax
push str.async_error_:__s
push edi
call dword [0x454070]
add esp, 0x20
pop edi
pop esi
pop ebx
ret
Function at 0x43c248
Capabilities:
Parse url

Disassembly:
push ecx
push ebp
push esi
push edi
xor ebp, ebp
push 0x3c
inc ebp
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [0x454014]
mov edi, dword [esp + 0x30]
add esp, 0x14
mov dword [edi], eax
push esi
push 0
mov dword [esi], 0x3c
mov dword [esi + 0x14], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x30], ebp
mov dword [esi + 8], ebp
push dword [esp + 0x14]
push dword [edi]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x43c2a2
mov eax, esi
jmp 0x43c2be
push 0x2ee5
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
push dword [edi]
call esi
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x43c36c
Capabilities:
Initialize winsock library

Disassembly:
push esi
push 0x459fd8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x43c2c3
push 0x4521e0
push 0x452208
push 0x45233c
push dword [esp + 0x18]
call dword [0x4540d0]
mov esi, dword [sym.wluart.exe_lua_registerobject]
push 0x451b48
push 0x451aa8
push 0x437272
push str.Socket
push 0x45a5cc
push dword [esp + 0x30]
call esi
push 0x451c60
push 0x451bf0
push 0x439177
push str.Http
push 0x459fc8
push dword [esp + 0x48]
call esi
add esp, 0x44
push 0x452170
push 0x4520f0
push 0x43b579
push 0x452348
push 0x459fcc
push dword [esp + 0x1c]
call esi
add esp, 0x18
xor eax, eax
inc eax
pop esi
ret

Function at 0x43cc6f
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x43cc7c
xor eax, eax
pop esi
ret
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
not edx
test edi, edi
je 0x43ccbb
mov al, byte [esi]
inc esi
movzx ecx, al
mov eax, ecx
shr ecx, 4
xor eax, edx
shr edx, 4
and eax, 0xf
xor edx, dword [eax*4 + 0x4525c0]
mov eax, edx
shr edx, 4
and eax, 0xf
xor ecx, eax
xor edx, dword [ecx*4 + 0x4525c0]
sub edi, 1
jne 0x43cc8b
not edx
pop edi
mov eax, edx
pop esi
ret
Function at 0x43ccdf
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 2
push dword [ebp + 8]
call sym.wluart.exe_luart_tobuffer
pop ecx
pop ecx
mov edi, eax
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push esi
push esi
push dword [ebp + 0xc]
push dword [0x45a1ac]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x43cd7d
push esi
push dword [edi + 4]
push dword [edi + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43cd74
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x43cd74
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
push esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x43cd6c
push dword [ebp - 4]
push edi
push dword [ebp + 8]
call sym.wluart.exe_lua_toBuffer
add esp, 0xc
inc esi
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x43cd83
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push str.AdvAPI32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CryptDecrypt
push eax
mov dword [0x45a1b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43ccc2
push 0x452698
push 0x452678
push str.crypto
push dword [esp + 0x14]
mov dword [0x45a1b0], eax
call sym.wluart.exe_lua_registermodule
push 0x452388
push 0x452350
push 0x43c8a3
push str.Cipher
push 0x45a5c8
push dword [esp + 0x2c]
call sym.wluart.exe_lua_registerobject
add esp, 0x2c
push 0xf0000000
push 0x18
push 0
push 0
push 0x45a1ac
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor eax, eax
inc eax
ret
Function at 0x43d8f3
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push ebp
push 0x7f
call fcn.0043d791
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x45a1c4], eax
test eax, eax
jne 0x43d929
push 0x65
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x45a1c4], eax
mov esi, dword [esp + 0x20]
push esi
call dword [0x45402c]
mov edi, dword [esp + 0x2c]
pop ecx
cmp eax, 1
jle 0x43d951
push ebp
push 2
push esi
call dword [0x454014]
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x43d955
mov dword [esp + 0x10], edi
push ebp
push 1
push esi
call dword [0x454060]
push ebp
push 0xffffffffffffffff
push esi
call dword [0x454014]
add esp, 0x18
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
or eax, 0x1000
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 0xffffffffffffffff
push ebp
push ebp
push eax
push 0x43d674
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x10], edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
je 0x43d9ad
push dword [esp + 0x10]
call edi
pop ecx
push dword [esp + 0xc]
call edi
mov ecx, dword [esp + 0x1c]
push dword [ecx*4 + 0x459210]
push esi
call dword [0x453fd8]
add esp, 0xc
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x44059c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
lea edi, [ebx + ebx]
lea ecx, [edi + 2]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
lea ecx, [ebx + 1]
mov esi, eax
push ecx
push esi
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
push esi
push dword [esp + 0x18]
call dword [0x454048]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
ret