joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002860
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002899
xor eax, eax
jmp 0x1000293e
mov edx, dword [ebp - 8]
push edx
call fcn.1000c5e0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100028dc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000c5d0
add esp, 4
xor eax, eax
jmp 0x1000293e
push 1
mov edx, dword [ebp - 0xc]
add edx, 1
push edx
call fcn.1000c5c0
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10008170
add esp, 0xc
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.100032f0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000c5d0
add esp, 4
mov eax, dword [ebp - 4]
push eax
call fcn.1000c5d0
add esp, 4
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x10002950
Capabilities:
Connect socket
Initialize winsock library
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x1002e340]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x298]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x10002989
jmp 0x10002af8
mov dword [ebp - 0x2a0], 0
lea ecx, [ebp - 0x2a0]
push ecx
push 0
push str.1500
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x100029bf
jmp 0x10002af8
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x2a0]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0xffffffff
jne 0x100029f7
jmp 0x10002af8
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x2a0]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0
je 0x10002a2c
jmp 0x10002af8
push 0x104
push 0
lea edx, [ebp - 0x108]
push edx
call fcn.10008010
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.GET__s__HTTP_1.1_nHost:__s_n_n
lea edx, [ebp - 0x108]
push edx
call fcn.10001c40
add esp, 0x10
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.1000c530
add esp, 4
push eax
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x2a4]
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x10002a95
jmp 0x10002af8
push 1
mov eax, dword [ebp - 0x2a4]
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x10002ab5
jmp 0x10002af8
mov ecx, dword [ebp - 0x2a4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x10002ad3
jmp 0x10002af8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x29c], eax
cmp dword [ebp - 0x29c], 0xffffffff
jne 0x10002aea
jmp 0x10002af8
mov edx, dword [ebp - 0x2a0]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100070f0
mov esp, ebp
pop ebp
ret
Function at 0x10003210
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push 0
push 0x80
push 3
push 0
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10003252
or ecx, 0xffffffff
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], ecx
jmp 0x10003276
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x10003340
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x1002e340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x1002e264
mov eax, dword [ebp + 8]
push eax
call fcn.100086e4
add esp, 8
test eax, eax
je 0x10003507
push 0x208
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.10008010
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.10008010
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x61c]
push eax
call fcn.10008010
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x824]
push ecx
call fcn.10008010
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call fcn.1000c110
add esp, 4
mov esi, eax
push str.Hand2Note.exe
call fcn.1000c110
add esp, 4
sub esi, eax
sub esi, 1
push esi
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x414]
push ecx
call fcn.1000c3e0
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.1000bfb3
add esp, 8
push str.umpdc.dll
lea ecx, [ebp - 0x20c]
push ecx
call fcn.1000bf90
add esp, 8
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x61c]
push eax
call fcn.1000bfb3
add esp, 8
push str.umpdc.tmp
lea ecx, [ebp - 0x61c]
push ecx
call fcn.1000bf90
add esp, 8
lea edx, [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x824]
push ecx
call fcn.1000bfb3
add esp, 8
push str.integrationumpdc.dll
lea edx, [ebp - 0x824]
push edx
call fcn.1000bf90
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call fcn.10003210
add esp, 4
mov esi, eax
mov edi, edx
lea ecx, [ebp - 0x824]
push ecx
call fcn.10003210
add esp, 4
mov dword [ebp - 0x82c], esi
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x830], edx
mov edx, dword [ebp - 0x82c]
cmp edx, dword [ebp - 0x834]
jne 0x100034db
mov eax, dword [ebp - 0x828]
cmp eax, dword [ebp - 0x830]
je 0x100034f0
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
nop
push 0
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
nop
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100070f0
mov esp, ebp
pop ebp
ret
Function at 0x10003700
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10003727
xor eax, eax
jmp 0x1000383c
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
jmp 0x10003755
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x30]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jae 0x10003824
push 0x1c
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x1000377e
jmp 0x10003824
mov ecx, dword [ebp - 0x28]
and ecx, 0x20
jne 0x1000379a
mov edx, dword [ebp - 0x28]
and edx, 0x80
jne 0x1000379a
mov dword [ebp - 0x10], 0
jmp 0x100037a1
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0
je 0x1000381f
mov eax, dword [ebp - 0x30]
push eax
call fcn.1000c5e0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x100037e0
jmp 0x1000374c
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10003950
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x1000381f
mov ecx, dword [ebp - 8]
push ecx
call fcn.1000c5d0
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x18]
jmp 0x1000383c
jmp 0x1000374c
mov eax, dword [ebp - 8]
push eax
call fcn.1000c5d0
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10003c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10003e00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10003d1d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002e320]
jb 0x10003c9a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002e324]
ja 0x10003c9a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10003c6a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10008010
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10003cc0
jmp 0x10003d1d
cmp dword [ebp - 0x14], 0x10000
jne 0x10003d03
cmp dword [ebp - 0x18], 0x10000
jb 0x10003d03
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003cf6
mov eax, dword [ebp - 8]
jmp 0x10003d1f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10003d18
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10003e00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10003c6a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10003d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10003e30
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10003df5
mov edx, dword [ebp - 4]
cmp edx, dword [0x1002e320]
jb 0x10003d75
mov eax, dword [ebp - 4]
cmp eax, dword [0x1002e324]
ja 0x10003d75
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10003d45
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10008010
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10003d9b
jmp 0x10003df5
cmp dword [ebp - 0x14], 0x10000
jne 0x10003dde
cmp dword [ebp - 0x18], 0x10000
jb 0x10003dde
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003dd1
mov eax, dword [ebp - 8]
jmp 0x10003df7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10003df0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10003e30
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10003d45
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000ebae
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100132ea
push ebx
push esi
call fcn.10013216
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100131ac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10013297
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100132e9
push edi
push eax
call fcn.1000f970
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100132b7
call fcn.1000f920
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100132e8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100131ac
add esp, 0x20
test eax, eax
jne 0x100132d6
push edi
call fcn.1000f920
jmp 0x100132de
push ebx
call fcn.1000f920
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10014102
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x1001411c
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x10014133
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1001418b
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.10015612
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1001418b
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1001418b
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001418b
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x10014185
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x10014187
xor bl, bl
mov al, bl
jmp 0x1001418d
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x1001b3a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b3cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b3cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x408dc2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x126]
sub esp, 0x134
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408dff
xor edx, edx
cmp byte [ebp + eax - 0x127], 0x5c
sete dl
jmp 0x408e06
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, 0x40c4a0
add eax, ebx
mov dword [esp + 4], str._s_s.dll
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408f60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x42ece4], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x408f9d
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x408f88
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408f7a
mov dword [ecx*4 + 0x42ece0], eax
inc ecx
cmp ecx, 0x100
jne 0x408f73
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x408fbf
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42ece0]
jmp 0x408fa7
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x420374
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
mov edx, dword [esp]
call fcn.0041b4c0
mov esi, ebx
mov eax, dword [ebp]
call fcn.0041b700
test ax, ax
jbe 0x4203df
mov word [esp + 4], ax
mov bx, 1
mov eax, ebp
call fcn.0041b950
movzx edi, bx
mov edx, dword [ebp]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xce6d
add ax, 0x58bf
mov esi, eax
inc ebx
dec word [esp + 4]
jne 0x4203a4
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420728
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.0041b4c0
mov eax, dword [esi]
call fcn.0041b700
test ax, ax
jbe 0x420788
mov word [esp], ax
mov bx, 1
mov eax, esi
call fcn.0041b950
movzx ebp, bx
mov edx, dword [esi]
mov dl, byte [edx + ebp - 1]
movzx ecx, di
shr ecx, 8
xor dl, cl
mov byte [eax + ebp - 1], dl
mov eax, dword [esi]
movzx eax, byte [eax + ebp - 1]
add di, ax
imul ax, di, 0xce6d
add ax, 0x58bf
mov edi, eax
inc ebx
dec word [esp]
jne 0x420750
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x991370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x99138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x9ba074
push ecx
mov edi, eax
call fcn.009a5198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9913cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009a502e
push esi
call fcn.009a4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x994850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x9948ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x9bf720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9948ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.009a51e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x9948ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9bf720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x99492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.009a6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x994957
mov word [eax], si
add eax, 2
push eax
call fcn.009a6030
add esp, 4
jmp 0x994959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x9948ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9948b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x994ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x995080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9950c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x9ba458
push ecx
call fcn.009a51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009a51e1
add esp, 0x10
jmp 0x9950d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009a520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009a4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00995050
mov eax, dword [0x9bf728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x99513b
push esi
call fcn.00994fb0
add esp, 4
mov dword [0x9bf728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x99514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00994ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x998440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9984b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x99848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x998471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x99847e
add edx, ecx
cmp ebx, edx
jb 0x99848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x998467
xor ecx, ecx
jmp 0x9984a2
test eax, eax
jne 0x998492
xor ecx, ecx
jmp 0x9984a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.009983c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9988f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x998921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x998946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x99896e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x998993
push ecx
push esi
call fcn.009984c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret