joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43efb0
Capabilities:
Copy file
Delete directory
Enumerate files on windows
Enumerate files recursively
Set current directory

Disassembly:
sub esp, 0x258
mov eax, dword [0x470d10]
xor eax, esp
mov dword [esp + 0x254], eax
push ebx
push ebp
mov ebp, dword [esp + 0x268]
push esi
push edi
mov edi, dword [esp + 0x26c]
push 0x464c0c
push ebp
mov dword [esp + 0x18], edi
call fcn.0042f1a0
mov esi, eax
push esi
call fcn.0043f220
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call ebx
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43f109
lea eax, [esp + 0x14]
push eax
push 0x467434
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43f0e6
mov ecx, 0x46743c
lea eax, [esp + 0x40]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f056
test dx, dx
je 0x43f052
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f056
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f030
xor eax, eax
jmp 0x43f05b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f0d2
mov ecx, 0x467440
lea eax, [esp + 0x40]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f08e
test dx, dx
je 0x43f08a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f08e
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f068
xor eax, eax
jmp 0x43f093
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f0d2
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.0042f1a0
add esp, 8
mov esi, eax
test byte [esp + 0x14], 0x10
lea eax, [esp + 0x40]
je 0x43f0be
push esi
push eax
call fcn.0043efb0
add esp, 8
jmp 0x43f0c8
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x43f109
push esi
call ebx
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43f023
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x462248
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x43f10b
xor eax, eax
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f441
add esp, 0x258
ret
Function at 0x43f220
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
movzx ecx, word [ebx]
xor edx, edx
add esp, 4
mov edi, eax
mov eax, ecx
lea ebp, [edx + 0x5c]
test cx, cx
je 0x43f260
xor ecx, ecx
mov esi, eax
cmp si, 0x2f
jne 0x43f251
mov word [ecx + edi], bp
inc edx
lea ecx, [edx + edx]
movzx eax, word [ecx + ebx]
mov esi, eax
test ax, ax
jne 0x43f247
push 0x5c
push edi
mov dword [esp + 0x1c], 1
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
je 0x43f2dd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp word [esi - 2], 0x3a
mov word [esi], ax
je 0x43f2a2
push eax
push edi
call ebx
test eax, eax
jne 0x43f2a2
call ebp
cmp eax, 0xb7
jne 0x43f2d5
mov eax, 0x5c
mov word [esi], ax
sub esi, edi
sar esi, 1
inc esi
push eax
lea eax, [edi + esi*2]
push eax
call sub.VCRUNTIME140.dll_wcschr
mov esi, eax
add esp, 8
test esi, esi
jne 0x43f285
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esp + 0x14], 0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
sub esp, 0x254
mov eax, dword [0x470d10]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
mov ebp, dword [esp + 0x260]
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x43f40e
lea eax, [esp + 0x10]
push eax
push 0x467434
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43f3f3
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov ecx, 0x46743c
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43f386
test dx, dx
je 0x43f382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43f386
add eax, 4
add ecx, 4
test dx, dx
jne 0x43f360
xor eax, eax
jmp 0x43f38b
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f3e3
mov eax, 0x467440
lea ecx, [esp + 0x3c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x43f3be
test dx, dx
je 0x43f3ba
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x43f3be
add ecx, 4
add eax, 4
test dx, dx
jne 0x43f398
xor eax, eax
jmp 0x43f3c3
sbb eax, eax
or eax, 1
test eax, eax
je 0x43f3e3
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
push eax
je 0x43f3dd
call fcn.0043f2f0
add esp, 4
jmp 0x43f3df
call edi
test eax, eax
je 0x43f40e
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x43f350
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x462248
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x43f410
xor eax, eax
mov ecx, dword [esp + 0x260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f441
add esp, 0x254
ret
Function at 0x4439c0
Capabilities:
Encrypt data via sspi
Send data
Send data on socket

Disassembly:
sub esp, 0x4c
mov eax, dword [0x470d10]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
push ebx
push esi
push edi
mov edi, dword [esp + 0x60]
xor esi, esi
push esi
mov dword [esp + 0x18], edi
push eax
mov edi, dword [edi + 0x74]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
call dword [0x46a5b0]
mov eax, dword [esp + 0x70]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x443b54
push ebp
mov esi, eax
mov eax, dword [edi + 0x10]
sub esi, ebx
cmp dword [edi + 0x18], esi
cmovb esi, dword [edi + 0x18]
add eax, dword [edi + 0x14]
add eax, esi
push eax
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x443b32
mov eax, dword [esp + 0x14]
add eax, ebx
push esi
push eax
mov eax, dword [edi + 0x10]
add eax, ebp
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x2c], 7
lea ecx, [eax + ebp]
mov dword [esp + 0x30], ebp
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], eax
lea eax, [ecx + esi]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push 0
push eax
mov eax, dword [esi + 0x74]
push 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], 6
mov dword [esp + 0x5c], 0
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 0
push dword [eax + 0xc]
call sub.Secur32.dll_EncryptMessage
test eax, eax
js 0x443b15
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x28]
push 0
push eax
push ebp
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x443b1c
mov esi, dword [esp + 0x10]
add esi, eax
push ebp
mov dword [esp + 0x14], esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add ebx, dword [edi + 0x18]
add esp, 4
mov eax, dword [esp + 0x6c]
cmp ebx, eax
jb 0x443a08
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045f441
add esp, 0x4c
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045f441
add esp, 0x4c
ret
push 0
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x14]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045f441
add esp, 0x4c
ret
mov ecx, dword [esp + 0x54]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045f441
add esp, 0x4c
ret
Function at 0x4440d0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x98
mov eax, dword [0x470d10]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xa0]
lea ecx, [esp]
push ebx
mov ebx, dword [esp + 0xa8]
push esi
push edi
mov edi, dword [esp + 0xa8]
push 0
push ecx
push 0
push 0
push ebx
push eax
call sub.DNSAPI.dll_DnsQuery_A
mov esi, eax
test esi, esi
jne 0x44418b
cmp bx, 1
jne 0x444129
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
jmp 0x444174
cmp bx, 0x1c
jne 0x44416d
push 0x80
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x18]
add esp, 0xc
movups xmm0, xmmword [eax + 0x18]
push 0x80
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push 0x17
movups xmmword [esp + 0x20], xmm0
call sub.WS2_32.dll_inet_ntop
lea eax, [esp + 0x20]
push eax
jmp 0x444174
mov eax, dword [esp + 0xc]
push dword [eax + 0x18]
push edi
call dword [0x46a540]
add esp, 8
push 1
push dword [esp + 0x10]
call sub.DNSAPI.dll_DnsFree
jmp 0x4441c2
cmp esi, 0x251d
je 0x4441b8
cmp esi, 0x25e5
je 0x4441b8
cmp esi, 0x232b
je 0x4441b8
push 0
push edi
call dword [0x46a5b0]
add esp, 8
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x4441c2
push edi
call dword [0x46a5a4]
add esp, 4
mov ecx, dword [esp + 0xa0]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045f441
add esp, 0x98
ret
Function at 0x453b80
Capabilities:
Get file attributes
Get file system object information

Disassembly:
sub esp, 0x2c0
mov eax, dword [0x470d10]
xor eax, esp
mov dword [esp + 0x2bc], eax
push ebx
push edi
mov edi, dword [esp + 0x2cc]
push 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x2b4
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
call dword [0x46a590]
add esp, 0x10
cmp eax, 1
jle 0x453d29
push 2
push edi
call dword [0x46a598]
add esp, 8
test eax, eax
je 0x453d29
push esi
cmp eax, 5
jne 0x453c72
lea eax, [esp + 0x10]
push eax
push 2
push edi
call dword [0x46a6a8]
mov ecx, dword [sym.wluart_static.exe_TBuffer]
add esp, 0xc
mov esi, dword [esp + 0x10]
mov edx, eax
cmp esi, dword [ecx]
jne 0x453c47
push 0
push 0x10
push 0x10
push 0x30000
push 1
push dword [edx + 4]
push dword [edx + 8]
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.0045f441
add esp, 0x2c0
ret
mov eax, dword [sym.wluart_static.exe_TWidget]
cmp esi, dword [eax]
jne 0x453c72
push dword [edx + 0x30]
push ebx
call dword [sym.imp.SHELL32.dll_DuplicateIcon]
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.0045f441
add esp, 0x2c0
ret
push 2
push edi
call dword [0x46a630]
mov esi, eax
add esp, 8
mov edx, esi
lea eax, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x453c85
push 1
sub edx, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
sar edx, 1
push 1
push 3
push edi
movzx ebx, word [esi + edx*2 - 2]
call dword [0x46a5d0]
add esp, 0x10
dec eax
push eax
push esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x453cc4
cmp eax, 0xffffffff
jne 0x453d03
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp ebx, 0x5c
je 0x453cdf
cmp ebx, 0x2f
je 0x453cdf
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
jmp 0x453ce4
mov eax, 0x10
push 0x111
push 0x2b4
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x10]
add esp, 4
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.0045f441
add esp, 0x2c0
ret
mov ecx, dword [esp + 0x2c4]
mov eax, dword [esp + 8]
pop edi
pop ebx
xor ecx, esp
call fcn.0045f441
add esp, 0x2c0
ret
Function at 0x45de10
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x80
mov eax, dword [0x470d10]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
lea eax, [esp + 0x44]
push esi
mov esi, dword [esp + 0xa4]
push edi
push eax
push ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.USER32.dll_BeginPaint]
push 0xffffffffffffffeb
xorps xmm0, xmm0
mov ebx, eax
push ebp
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x2c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [esp + 0x10], eax
lea ecx, [eax*2 + 2]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [esp + 0x14]
add esp, 4
inc ecx
mov esi, eax
mov dword [esp + 0x14], esi
push ecx
push esi
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x420
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov esi, dword [sym.imp.GDI32.dll_GetStockObject]
test edi, edi
je 0x45deca
mov ebp, dword [edi + 0x50]
test ebp, ebp
jne 0x45ded0
push 4
call esi
mov ebp, eax
push 0x13
call esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call esi
push 0x848484
push ebx
mov edi, eax
call dword [sym.imp.GDI32.dll_SetDCPenColor]
push ebp
push ebx
call esi
push ebp
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x30]
cdq
inc esi
sub eax, edx
mov dword [esp + 0x30], esi
sar eax, 1
sub ecx, eax
add eax, esi
push ecx
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffffc
push ecx
push eax
mov eax, dword [esp + 0x38]
add eax, 4
push eax
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [esp + 0x10], 0
je 0x45df9f
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0xb
sub dword [esp + 0x28], eax
push 0
push ebx
mov dword [esp + 0x24], 0xa
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xffffff
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
movups xmm0, xmmword [esp + 0x1c]
push ebp
lea eax, [esp + 0x40]
push eax
movups xmmword [esp + 0x44], xmm0
push ebx
mov dword [esp + 0x48], 8
call dword [sym.imp.USER32.dll_FillRect]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push 0x20
push eax
push 0xffffffffffffffff
push esi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x45dfa3
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x8c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045f441
add esp, 0x80
ret
Function at 0x460371
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4603b0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4603b0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4603b0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4603b0
cmp dword [ecx + 0x74], 0xe
jbe 0x4603b0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.ac75eipq]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.ac75eipq]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.ac75eipq]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.ac75eipq]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.ac75eipq]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.ac75eipq]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40bc80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40bd12
mov eax, dword [0x418284]
test eax, eax
je 0x40bd06
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40bd81
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40bd27
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040b8d0
cmp eax, 7
jne 0x40bd9f
mov eax, dword [0x418284]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40bd72
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40bd90
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40bd53
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040b0e0
mov eax, dword [0x418284]
jmp 0x40bca2
mov dword [esp], edi
call fcn.0040b740
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40bcb7
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40bcf5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40bcf5
call fcn.0040b0e0
mov eax, dword [0x418284]
jmp 0x40bce0
call fcn.0040b3b0
mov eax, dword [0x418284]
jmp 0x40bcad
call fcn.0040b3b0
mov eax, dword [0x418284]
jmp 0x40bceb
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x408030
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4713ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00469373
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4080b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463b5b
mov eax, dword [eax]
push 0x48dbbc
push eax
call fcn.0045678a
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004695fe
test bl, bl
je 0x4080b2
push 0x48dbbc
lea ecx, [esp + 0xc]
call fcn.0046998e
push 0x48dbc8
lea ecx, [esp + 0xc]
call fcn.0046998e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4080ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004695fe
jmp 0x4081b9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408172
lea edx, [esp + 0x7c]
push 0x48dbc4
push edx
call fcn.0045678a
add esp, 8
test eax, eax
je 0x408172
lea eax, [esp + 0x7c]
push 0x48dbc0
push eax
call fcn.0045678a
add esp, 8
test eax, eax
je 0x408172
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408102
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004695fe
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4089e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408a42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc