joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419150
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x50f70b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x20c], eax
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.004f08c0
add esp, 0xc
push 0x104
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
call fcn.00406d70
push edi
push 0x80
push 3
push edi
push 1
mov dword [esp + 0x234], edi
mov ecx, dword [esp + 0x1c]
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x41920d
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
mov ecx, 0x548980
call fcn.004dfa90
add esp, 0xc
jmp 0x419253
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
cmp eax, 0x100000
jae 0x419233
push str.the_packet_is_too_small
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
jmp 0x419253
cmp eax, 0x6400000
jbe 0x41924e
push str.the_packet_is_too_large
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
jmp 0x419253
mov edi, 1
mov dword [esp + 0x220], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41927e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004ea83a
add esp, 0x21c
ret

Function at 0x4193c0
Capabilities:
Create thread

Disassembly:
push edi
push 0x40
xor edi, edi
call fcn.004eac13
add esp, 4
test eax, eax
je 0x4193d9
push eax
call fcn.004d6aa0
jmp 0x4193db
xor eax, eax
mov dword [esi + 0x1c], eax
test eax, eax
je 0x419429
cmp dword [0x5487cc], edi
je 0x4193f5
push esi
call fcn.00419900
mov dword [esi + 0x28], eax
pop edi
ret
push 0
push 0
push esi
push 0x4198e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push str.LoadProductPacket_CreateThread_return:_d
mov ecx, 0x548980
mov dword [esi + 0x14], eax
call fcn.004dfa90
add esp, 8
mov eax, 1
cmp dword [esi + 0x14], edi
jne 0x41942b
mov eax, edi
pop edi
ret
Function at 0x4194c0
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x50e648
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x546fac]
mov edx, dword [eax + 0xc]
xor ebp, ebp
mov ecx, 0x546fac
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
push str.GetPacketData__d
mov ecx, 0x548980
mov dword [esp + 0x30], ebp
call fcn.004dfa90
mov edi, dword [esp + 0x38]
add esp, 8
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00419650
mov ebx, dword [esp + 0x14]
push ebx
push str.GetPacketData_return:_d
mov ecx, 0x548980
mov edi, eax
call fcn.004dfa90
add esp, 8
test edi, edi
je 0x4195e7
push 0x40
call fcn.004eac13
add esp, 4
test eax, eax
je 0x419569
push eax
call fcn.004d6aa0
mov esi, eax
jmp 0x41956b
xor esi, esi
mov ebp, esi
test esi, esi
je 0x4195e7
push str.Extract...
mov ecx, 0x548980
call fcn.004dfa90
mov edx, dword [esp + 0x38]
mov ecx, dword [esi]
mov eax, dword [ecx]
add esp, 4
push 1
push edx
push ebx
push edi
push esi
call eax
xor ecx, ecx
mov esi, eax
test esi, esi
sete cl
push ecx
push str.Extract_return:_d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
test esi, esi
je 0x4195df
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4195db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41962d
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
je 0x4195f8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebp, ebp
je 0x419605
mov ecx, dword [ebp]
mov edx, dword [ecx + 0xc]
push ebp
call edx
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419629
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x4196f0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [ebx - 0x100000]
cmp edi, eax
jb 0x419710
mov esi, ebx
sub esi, edi
jmp 0x419715
mov esi, 0x100000
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push esi
lea edx, [edi + ecx]
push edx
push eax
call ebp
test eax, eax
je 0x41974a
mov eax, dword [esp + 0xc]
cmp eax, esi
jne 0x41974a
add edi, eax
cmp edi, ebx
jb 0x419700
mov eax, 1
pop edi
pop esi
pop ebp
pop ecx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_new_error:_d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
Function at 0x419770
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
cmp dword [esi + 0x20], 0xffffffff
push edi
mov dword [esp + 0x10], ebp
jne 0x419799
push str.LoadImageToMem_m_hFile_is_NUll
mov ecx, 0x548980
call fcn.004dfa90
add esp, 4
jmp 0x41983b
mov eax, dword [esi + 8]
push 0x54712d
push eax
call fcn.004ec858
add esp, 8
mov dword [esi + 4], eax
cmp eax, ebp
jne 0x4197cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.m_pFileBuffer_new_error:_d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
jmp 0x41983b
mov edx, dword [esi + 8]
push ebp
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419836
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.ReadFile_new_error:_d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 4]
mov ebx, dword [esi + 8]
push ecx
push edx
call fcn.004196f0
test eax, eax
jne 0x419836
call edi
push eax
push str.ReadMem_error:_d
mov ecx, 0x548980
call fcn.004dfa90
add esp, 8
jmp 0x41983b
mov ebp, 1
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x419851
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0xffffffff
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x41a890
Capabilities:
Create thread
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x511ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x5b4]
test eax, eax
jne 0x41a978
push 2
call fcn.0041c4a0
push 0
push 0x517283
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
call fcn.00401820
push 0
push 0
push 0xa
push 0x5487c0
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], 0
call fcn.004310c0
cmp dword [esp + 0x3c], 0x10
jb 0x41a921
mov eax, dword [esp + 0x28]
push eax
call fcn.004ea82f
add esp, 4
mov eax, dword [0x548880]
test eax, eax
je 0x41a9cf
lea edx, [esp + 0x18]
push edx
push 0
push 0x4a
lea ecx, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x24], 0xa
mov dword [esp + 0x28], 0x2711
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], 8
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret
cmp eax, 2
jne 0x41a9cf
push eax
call fcn.0041c4a0
add esi, 0x50
mov edi, 0x519
mov eax, esi
mov dword [0x544940], 1
call fcn.0041d970
mov dword [0x54835c], eax
mov edi, 0x51a
mov eax, esi
call fcn.0041d970
push 0
push 0
push 0x5487c0
push 0x434be0
push 0
push 0
mov dword [0x548360], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x548848], eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x40
ret

Function at 0x41aa50
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x511ebb
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov ecx, edi
call fcn.0041c4a0
cmp esi, 1
jne 0x41aae5
push 4
call fcn.004eac13
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
test esi, esi
je 0x41aab4
mov eax, dword [edi + 0x5bc]
sub eax, 0x10
call fcn.00404fe0
add eax, 0x10
mov dword [esi], eax
jmp 0x41aab6
xor esi, esi
push 0
push 0
push esi
push 0x41cb40
push 0
push 0
mov dword [0x544940], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
mov dword [0x544940], 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x41b8d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x510c46
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x42]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov word [esp + 0x48], ax
call fcn.004f08c0
mov eax, dword [esi + 0x5bc]
add esp, 0xc
lea edi, [esi + 0x5bc]
push 0x103
push eax
lea edx, [esp + 0x44]
push edx
call fcn.004ec863
mov ecx, dword [esi + 4]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x11
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x51f5cc
mov dword [esp + 0x30], 0x8041
mov dword [esp + 0x34], 0x41b8a0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
cmp eax, ebx
je 0x41ba62
lea ecx, [esp + 0x244]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x41ba62
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x248]
call fcn.00406d70
lea eax, [esp + 0x10]
mov dword [esp + 0x458], ebx
call fcn.00415730
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, str.Shuame_
call fcn.00418040
add esp, 8
mov byte [esp + 0x458], 1
call fcn.00405050
mov byte [esp + 0x458], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ba27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [edi]
push edi
lea eax, [esi + 0x50]
mov ecx, 0x4b7
call fcn.0041d8f0
mov dword [esp + 0x458], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ba62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.004ea83a
add esp, 0x450
ret

Function at 0x41c310
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov ecx, 1
call fcn.0041aa50
lea esi, [edi + 0x50]
mov edi, 0x519
mov eax, esi
call fcn.0041d970
mov dword [0x54835c], eax
mov edi, 0x51a
mov eax, esi
call fcn.0041d970
push 0
push 0
push 0x5487c0
push 0x434be0
push 0
push 0
mov dword [0x548360], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [0x548848], eax
pop esi
pop ecx
ret
Function at 0x41e440
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41e494
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x41e48a
cmp ebx, 0x1b
jne 0x41e476
mov ecx, dword [esi + 4]
push 0
push 2
push 0x111
push ecx
jmp 0x41e488
cmp ebx, 0xd
jne 0x41e48a
mov edx, dword [esi + 4]
push 0
push 1
push 0x111
push edx
call edi
mov dword [esi + 0x584], 0
cmp dword [esi + 4], 0
je 0x41e4b6
movzx eax, word [esp + 0xc]
movzx ecx, word [esp + 8]
mov edx, dword [esi + 0x30]
shl eax, 0x10
or eax, ecx
push eax
push ebx
push pe_nt_image_headers32
push edx
call edi
pop edi
ret 8

Function at 0x420770
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x24
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebp
cmp dword [ebx + 0x4d0], ebp
je 0x420794
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [ebx + 0x4d0], ebp
mov edi, dword [ebx + 0x4c0]
cmp edi, ebp
je 0x4208a5
call fcn.00402930
mov esi, eax
mov edi, 1
cmp esi, ebp
je 0x420851
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 2
push ebp
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
mov ecx, esi
call edx
test eax, eax
je 0x4207d8
push edi
push ebx
mov eax, esi
call fcn.004020d0
mov eax, dword [ebx + 0x4c0]
cmp eax, dword [ebx + 0x4bc]
je 0x4207ee
cmp dword [esi + 0xac], ebp
je 0x420851
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
mov dword [esi + 0xfc], ebp
movzx ecx, word [esp + 0x3c]
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x3c]
shl ecx, 0x10
or ecx, eax
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push 0x202
push ebp
mov ecx, esi
mov dword [esp + 0x28], ebp
call edx
mov eax, dword [esi + 0xa0]
cmp eax, ebp
je 0x420842
cmp word [eax], bp
je 0x420842
push edi
push ebp
push ebp
push eax
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x420851
mov eax, dword [esi + 0x14]
cmp eax, ebp
je 0x420851
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [ebx + 0x4c0], ebp
cmp dword [esp + 0xc], ebp
je 0x4208a5
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [ebx + 4]
push ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ecx
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebx + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
movzx ecx, word [esp + 0x3c]
movzx edx, word [esp + 0x38]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [esp + 0x38]
push ecx
push 0x202
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
add esp, 0x24
ret 0xc
Function at 0x4208e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
xor edi, edi
call esi
test al, al
js 0x4208fe
push 0xa1
call esi
test al, al
jns 0x420903
mov edi, 4
push 0x11
call esi
test al, al
js 0x420913
push 0x11
call esi
test al, al
jns 0x420916
or edi, 8
push 1
call esi
test al, al
js 0x420926
push 1
call esi
test al, al
jns 0x420929
or edi, 1
push 2
call esi
test al, al
js 0x420939
push 2
call esi
test al, al
jns 0x42093c
or edi, 2
push 4
call esi
test al, al
js 0x42094c
push 0x10
call esi
test al, al
jns 0x42094f
or edi, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
call fcn.00420770
pop edi
mov eax, 1
pop esi
pop ecx
ret 8

Function at 0x421490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebx
push 0x400000
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x4214af
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4214a9
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x4214d4
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 1]
sub eax, ecx
or edx, eax
jge 0x4214f4
mov eax, esi
call fcn.00402380
mov ecx, dword [esi]
push edi
push ebp
push ecx
call fcn.004f26c0
add esp, 0xc
mov eax, edi
call fcn.00418e30
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x421520
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x50dc38
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004213e0
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x421686
mov edx, dword [0x546fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x546fac
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
call fcn.004213e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [eax]
push ecx
push edx
push eax
push str._s_d._s
lea edi, [esp + 0x20]
call fcn.004190d0
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x42165e
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x421657
mov eax, dword [esi]
sub eax, 0x10
mov dword [esp + 0x14], 0
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [edi + 0xa]
sub eax, ecx
or eax, edx
jge 0x4215ff
mov eax, esi
call fcn.00402380
mov eax, dword [esi]
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421643
cmp dword [esp + 0x14], edi
jne 0x421643
mov eax, edi
call fcn.00418e30
lea ecx, [esp + 0x10]
call fcn.00406e40
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x4216b3
mov dword [eax - 0xc], 0
mov eax, dword [esi]
mov byte [eax], 0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421686
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
movzx edx, word [esp + 0x28]
push ecx
push edx
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x4216bd
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x80070057
call fcn.00402a90
mov ecx, esi
call fcn.00421490
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x421a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, eax
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push edi
xor edi, edi
mov dword [esp + 0x18], edi
cmp eax, edi
je 0x421b1e
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x421b27
call fcn.00407550
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
inc ecx
sub eax, ecx
or edx, eax
jge 0x421ae5
mov eax, esi
call fcn.00407670
mov edi, dword [esi]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x421b31
mov edx, dword [esp + 0x1c]
shr edx, 1
mov word [edi + edx*2], ax
call fcn.00418f40
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8

Function at 0x421c30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x4c
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebp
mov ebp, dword [esp + 0x54]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421c50
sub eax, edx
mov edi, eax
mov ecx, edi
xor eax, eax
and ecx, 0x800000ff
mov dword [esp + 0xc], edi
jns 0x421c73
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [eax + 0x544900]
xor dl, cl
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, 0x40
jl 0x421c73
xor esi, esi
test edi, edi
jle 0x421cd6
jmp 0x421c90
mov al, byte [esi + ebp]
mov ecx, esi
and ecx, 0x3f
movzx edi, byte [esp + ecx + 0x14]
and edi, 0x80000007
not al
jns 0x421cac
dec edi
or edi, 0xfffffff8
inc edi
mov ecx, edi
mov dl, 1
shl dl, cl
mov ecx, 8
sub ecx, edi
mov dword [esp + 0x10], edi
dec dl
and dl, al
shl dl, cl
mov cl, byte [esp + 0x10]
shr al, cl
inc esi
or dl, al
cmp esi, dword [esp + 0xc]
mov byte [esi + ebp - 1], dl
jl 0x421c90
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004ea83a
add esp, 0x4c
ret
Function at 0x421cf0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x44
mov eax, dword [0x53c1a4]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421d03
sub eax, edx
push ebp
mov ebp, eax
mov ecx, ebp
xor eax, eax
and ecx, 0x800000ff
push esi
jns 0x421d24
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [eax + 0x544900]
xor dl, cl
mov byte [esp + eax + 8], dl
inc eax
cmp eax, 0x40
jl 0x421d24
xor esi, esi
test ebp, ebp
jle 0x421d86
push ebx
lea ecx, [ecx]
mov eax, esi
and eax, 0x3f
movzx ecx, byte [esp + eax + 0xc]
and ecx, 0x80000007
jns 0x421d57
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dl, byte [edi + esi]
mov eax, 8
sub eax, ecx
mov ecx, eax
mov bl, 1
shl bl, cl
mov ecx, 8
sub ecx, eax
inc esi
dec bl
and bl, dl
shl bl, cl
mov cl, al
shr dl, cl
or bl, dl
cmp esi, ebp
not bl
mov byte [edi + esi - 1], bl
jl 0x421d40
pop ebx
mov ecx, dword [esp + 0x48]
pop esi
pop ebp
xor ecx, esp
call fcn.004ea83a
add esp, 0x44
ret