joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
mov eax, section..rdata
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1f12c30
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3e8924b4
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4028b5
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1400
call fcn.00408eb0
mov eax, dword [0x2ae6ff8]
mov ecx, dword [0x2ae5f48]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402992
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2ae6ff8], 0x959
jne 0x402980
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
lea eax, [ebp - 0x1400]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.004026fe
add edi, 8
dec ebx
jne 0x4028e1
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403880
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4720c8]
jne 0x40388a
repz ret
jmp fcn.00405dde

Function at 0x405a04
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404519
and dword [ebp - 4], 0
cmp dword [0x473884], 0
mov ebx, eax
jne 0x405ab5
push 0x401930
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405b66
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401924
push edi
call esi
test eax, eax
je 0x405b66
push eax
call fcn.004044a7
mov dword [esp], 0x401914
push edi
mov dword [0x473884], eax
call esi
push eax
call fcn.004044a7
mov dword [esp], 0x401900
push edi
mov dword [0x473888], eax
call esi
push eax
call fcn.004044a7
mov dword [esp], 0x4018e4
push edi
mov dword [0x47388c], eax
call esi
push eax
call fcn.004044a7
pop ecx
mov dword [0x473894], eax
test eax, eax
je 0x405ab5
push 0x4018cc
push edi
call esi
push eax
call fcn.004044a7
pop ecx
mov dword [0x473890], eax
mov eax, dword [0x473890]
cmp eax, ebx
je 0x405b0d
cmp dword [0x473894], ebx
je 0x405b0d
push eax
call fcn.00404522
push dword [0x473894]
mov esi, eax
call fcn.00404522
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405b0d
test edi, edi
je 0x405b0d
call esi
test eax, eax
je 0x405b04
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405b04
test byte [ebp - 0xc], 1
jne 0x405b0d
or dword [ebp + 0x10], 0x200000
jmp 0x405b46
mov eax, dword [0x473888]
cmp eax, ebx
je 0x405b46
push eax
call fcn.00404522
pop ecx
test eax, eax
je 0x405b46
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405b46
mov eax, dword [0x47388c]
cmp eax, ebx
je 0x405b46
push eax
call fcn.00404522
pop ecx
test eax, eax
je 0x405b46
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x473884]
call fcn.00404522
pop ecx
test eax, eax
je 0x405b66
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405b68
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.004423bd

Function at 0x401d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401d59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401d94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401d90
lea ebx, [ebx]
cmp esi, eax
jae 0x401d94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d80
cmp esi, eax
jb 0x401d9a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407410
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bedad
mov eax, dword fs:[0]
push eax
sub esp, 0x87c
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x878], eax
push esi
mov eax, dword [0x4e5b00]
xor eax, esp
push eax
lea eax, [esp + 0x884]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x781]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x788], 0
call fcn.00465660
add esp, 0xc
push 0x104
lea ecx, [esp + 0x780]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.0040a660
test eax, eax
jne 0x4074a6
push 1
push eax
push eax
lea edx, [esp + 0x788]
push edx
push str.runas
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call fcn.00461027
call fcn.004073b0
test eax, eax
jne 0x4074c9
push eax
push 0x4c9f98
push 0x4cafec
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00427a90
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0044ba08
push 0
call fcn.0044ca87
add esp, 4
push 0x4caffc
mov ecx, esi
call fcn.0044cf5a
lea ecx, [esp + 0x10]
push ecx
call fcn.004077a0
lea edx, [esp + 0x10]
mov dword [esp + 0x88c], 0
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.00442185
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x890], 0xffffffff
call fcn.00407570
xor eax, eax
mov ecx, dword [esp + 0x884]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.004606fe
add esp, 0x888
ret
Function at 0x4076c0
Capabilities:
Check os version

Disassembly:
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4076f5
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4076e3
mov al, 1
jmp 0x407754
cmp dword [ebx + 0x54], ecx
jne 0x4076ec
mov al, 2
jmp 0x407754
cmp dword [ebx + 0x7c], ecx
jne 0x407754
mov al, 3
jmp 0x407754
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x40770a
mov al, 4
jmp 0x407754
cmp ecx, 5
jne 0x40772a
cmp ebx, 0
jne 0x407718
mov al, 5
jmp 0x407754
cmp ebx, 1
jne 0x407721
mov al, 6
jmp 0x407754
cmp ebx, 2
jne 0x40772a
mov al, 7
jmp 0x407754
cmp ecx, 6
jne 0x407752
cmp ebx, 0
jne 0x407738
mov al, 8
jmp 0x407754
cmp ebx, 1
jne 0x40773f
mov al, 9
cmp ebx, 2
jne 0x407746
mov al, 0xa
cmp ebx, 3
jne 0x40774d
mov al, 0xb
cmp ebx, 4
jne 0x407754
mov al, 0xc
pop ebx
ret

Function at 0x409990
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp], eax
push ebx
push edi
xor ebx, ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4099de
push esi
push 0xc8
push 0xd
push edi
mov dword [esi + 0x190], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x190]
push 0xc8
lea eax, [esi + 0xc8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
lea eax, [ebx + 1]
jne 0x4099e0
mov eax, ebx
mov ecx, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.004606fe
pop ecx
ret
Function at 0x4099f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4bf8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e5b00]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov word [esp + 0x25], ax
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x1cc]
push eax
lea ecx, [esp + 0x20]
push str._08X
xor ebx, ebx
push ecx
mov byte [esp + 0x28], bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
call fcn.0044916d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409a70
push 0x80004005
call fcn.004020d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], ebx
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
mov ebp, 0xffff
sub eax, ebp
or eax, ecx
jge 0x409aa8
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401ee0
mov edi, dword [esp + 0x18]
cmp dword [edi - 8], ebp
jge 0x409ab7
push 0x80070057
call fcn.004020d0
mov dword [edi - 0xc], ebp
push ebp
mov byte [edi + 0xffff], bl
mov ecx, dword [esp + 0x1d0]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.0046174d
add esp, 8
cmp eax, ebx
jl 0x409aad
cmp eax, dword [edi - 8]
jg 0x409aad
mov dword [edi - 0xc], eax
mov byte [eax + edi], bl
call fcn.0044916d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x409b06
push 0x80004005
call fcn.004020d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x34], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebp
or eax, ecx
jge 0x409b3a
push ebp
lea ecx, [esp + 0x18]
call fcn.00401ee0
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], ebp
jge 0x409b49
push 0x80070057
call fcn.004020d0
mov dword [esi - 0xc], ebp
push ebp
mov byte [esi + 0xffff], bl
mov ecx, dword [esp + 0x1d0]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0046174d
add esp, 8
cmp eax, ebx
jl 0x409aad
cmp eax, dword [esi - 8]
jg 0x409aad
mov dword [esi - 0xc], eax
mov byte [eax + esi], bl
lea eax, [esi - 0x10]
mov byte [esp + 0x34], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409ba6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004606fe
add esp, 0x24
ret 0x194
Function at 0x409e30
Capabilities:
Read file via mapping

Disassembly:
push esi
push 0x4cb888
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
jne 0x409e5e
push 0x4cb888
push 4
push eax
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
push 4
push 0
push 0
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x409e7f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov eax, 1
pop esi
ret

Function at 0x409e90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xa8
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
mov ebx, dword [esp + 0xb0]
push esi
push edi
push 0x63
lea eax, [esp + 0x11]
push 0
push eax
mov byte [esp + 0x18], 0
call fcn.00465660
add esp, 0xc
jmp fcn.00944f99

Function at 0x409f70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [edi], ebx
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x409fbd
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004606fe
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40a027
lea esp, [esp]
lea eax, [esp + 0x2c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409fd7
sub eax, edx
push eax
lea ecx, [esp + 0x30]
push ecx
push str.QQ.exe
call fcn.00461a77
add esp, 0xc
test eax, eax
je 0x40a01c
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x409fd0
mov eax, ebx
pop esi
pop ebx
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.004606fe
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov ebx, 1
mov dword [edi], eax
mov ecx, dword [esp + 0x134]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004606fe
mov esp, ebp
pop ebp
ret
Function at 0x40a040
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x1a0], eax
push esi
lea eax, [esp + 8]
push eax
push 0x202
mov esi, ecx
mov byte [esp + 0x1a4], 0x44
mov byte [esp + 0x1a5], 0x6a
mov byte [esp + 0x1a6], 0x53
mov byte [esp + 0x1a7], 0x73
mov byte [esp + 0x1a8], 0x61
mov byte [esp + 0x1a9], 0x66
mov byte [esp + 0x1aa], 0x65
mov byte [esp + 0x1ab], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40a0ec
push 0x104
push esi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x40a0d3
push esi
call fcn.00461f92
add esp, 4
mov edx, esi
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x40a0c7
jmp 0x40a101
lea eax, [esp + 0x19c]
mov ecx, eax
sub esi, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x40a0e0
jmp 0x40a101
lea eax, [esp + 0x19c]
mov edx, eax
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x40a0f7
mov ecx, dword [esp + 0x1a4]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004606fe
add esp, 0x1a8
ret

Function at 0x40a4a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40a4b7
pop esi
pop ebx
ret
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [edi], eax
call fcn.0046110e
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov edx, dword [edi]
push edx
push esi
push eax
call fcn.00469530
add esp, 0x10
pop esi
mov eax, 1
pop ebx
ret

Function at 0x40a660
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, 1
jne 0x40a6e2
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40a6d3
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
xor ecx, esp
call fcn.004606fe
add esp, 0x14
ret
Function at 0x40ad70
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push 0x518bd8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40ad9b
xor eax, eax
pop ebx
pop ecx
ret
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0046110e
mov esi, eax
add esp, 4
test esi, esi
jne 0x40adc5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push ebx
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40adf8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call fcn.0040ad30
push 0
push 0
push 0
push ebx
call ebp
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
je 0x40adea
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x40b1a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40b1f8
mov eax, dword [esp]
cmp al, 2
jne 0x40b1f2
shr eax, 8
cmp al, 2
jne 0x40b1f2
mov eax, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004606fe
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor eax, eax
call fcn.004606fe
mov esp, ebp
pop ebp
ret
Function at 0x40bda0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
push edi
push 0x4cba04
push eax
call fcn.00461c5e
mov esi, eax
xor eax, eax
add esp, 8
cmp esi, eax
jne 0x40bde3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004606fe
add esp, 0x6c
ret
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.004623de
add esp, 4
test eax, eax
jne 0x40be4b
push 0x40
call fcn.004419e3
add esp, 4
push esi
push 0x40
mov ebx, eax
push 1
push ebx
call fcn.004626e6
push ebx
lea edi, [esp + 0x2c]
call fcn.0040b630
add esp, 0x14
push esi
call fcn.004623de
add esp, 4
test eax, eax
je 0x40be18
jmp 0x40be4f
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
call fcn.0040b6c0
push ebx
call fcn.004419ee
add esp, 4
push esi
call fcn.00461d3f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [ebp], eax
mov eax, dword [esp + 0x24]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x74]
pop edi
mov dword [ebp + 8], edx
pop esi
mov dword [ebp + 0xc], eax
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004606fe
add esp, 0x6c
ret
Function at 0x40bf70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [esp + 8], eax
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
cmp ebx, eax
jbe 0x40bfe8
mov edx, dword [esp + 0x6c]
add edx, esi
push edx
mov eax, 0x40
lea edi, [esp + 0x14]
call fcn.0040b630
add esi, 0x40
add esp, 4
cmp esi, ebx
jb 0x40bfc5
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
shr eax, 3
and eax, 0x3f
mov dword [esp + 0x70], ecx
mov ecx, eax
mov eax, 0x38
cmp ecx, 0x38
jb 0x40c00b
mov eax, 0x78
sub eax, ecx
push 0x50cef0
lea edi, [esp + 0x14]
call fcn.0040b630
lea edx, [esp + 0x70]
add esp, 4
push edx
mov eax, 8
call fcn.0040b630
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
mov eax, dword [esp + 0x24]
push edx
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
mov eax, dword [esp + 0x30]
push edx
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
push ecx
movzx edx, al
mov eax, dword [esp + 0x3c]
push edx
mov ecx, eax
shr ecx, 0x18
push ecx
mov edx, eax
shr edx, 0x10
movzx ecx, dl
push ecx
mov edx, eax
shr edx, 8
movzx ecx, dl
movzx edx, al
mov eax, dword [esp + 0x44]
push ecx
push edx
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0xbc]
add esp, 0x48
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004606fe
mov esp, ebp
pop ebp
ret