joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x53b8], 0
lea esi, [edi + 0x53bc]
je 0x1001c4f2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1001c4ac
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1002b730
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.10005b90
mov edx, dword [esi]
mov ecx, 0x10072677
push dword [edi + 0x53b8]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x53c4]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.10005b90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001c9c0
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
or ecx, 0xffffffff
mov al, byte [edi]
lea esi, [edi + 1]
test al, al
je 0x1001c9fc
push ebx
or ebx, 0xffffffff
cmp al, 0x23
jne 0x1001c9e2
cmp byte [esi], al
jne 0x1001c9e2
cmp byte [esi + 1], al
cmove ecx, ebx
movzx edx, cl
movzx eax, al
xor edx, eax
shr ecx, 8
mov al, byte [esi]
inc esi
xor ecx, dword [edx*4 + 0x10059a10]
test al, al
jne 0x1001c9d4
pop ebx
not ecx
call fcn.1001c900
test eax, eax
jne 0x1001ca10
mov ecx, edi
pop edi
pop esi
jmp fcn.1001c820
pop edi
pop esi
ret

Function at 0x1001ca20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x100726d8]
lea edx, [ecx + 1]
push ebx
mov dword [ebp - 4], eax
or ebx, 0xffffffff
mov al, byte [ecx]
push esi
push edi
test al, al
je 0x1001ca67
or esi, 0xffffffff
nop
cmp al, 0x23
jne 0x1001ca4e
cmp byte [edx], al
jne 0x1001ca4e
cmp byte [edx + 1], al
cmove ebx, esi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x10059a10]
test al, al
jne 0x1001ca40
mov ecx, dword [ebp - 4]
xor esi, esi
not ebx
mov eax, dword [ecx + 0x537c]
test eax, eax
jle 0x1001cabf
mov edx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor edi, edi
test esi, esi
js 0x1001ca88
cmp esi, eax
jl 0x1001caa5
push 0x74d
push str.D:MyFilesDLLDLL_WITH_HWIDSIGSCAN_RANPINAS1ImGui_StandaloneImGuiimgui.h
push str.i___0__i___Size
call edx
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [ecx + 0x5384]
cmp dword [eax + edi + 4], ebx
je 0x1001cac8
mov eax, dword [ecx + 0x537c]
inc esi
add edi, 0x24
cmp esi, eax
jl 0x1001ca80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
js 0x1001cad4
cmp esi, dword [ecx + 0x537c]
jl 0x1001cae8
push 0x74d
push str.D:MyFilesDLLDLL_WITH_HWIDSIGSCAN_RANPINAS1ImGui_StandaloneImGuiimgui.h
push str.i___0__i___Size
call edx
add esp, 0xc
mov eax, dword [ebp - 4]
lea ecx, [esi + esi*8]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 0x5384]
lea eax, [eax + ecx*4]
mov esp, ebp
pop ebp
ret
Function at 0x100283c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov dword [ebp - 4], ebx
push dword [ebx + 0x390]
lea ecx, [esi + 0x5340]
call fcn.10005930
cmp dword [ebx + 0x388], 0
mov edi, eax
je 0x10028402
push 0x41bf
push str.D:MyFilesDLLDLL_WITH_HWIDSIGSCAN_RANPINAS1ImGui_StandaloneImGuiimgui.cpp
push str.window__DockNode__0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
test edi, edi
je 0x10028421
cmp dword [edi + 0x1c], 0
je 0x10028452
push 1
mov edx, ebx
call fcn.10021440
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x390]
mov ecx, esi
call fcn.10020520
mov edi, eax
mov eax, dword [edi + 0x9c]
and eax, 0xfffffe92
or eax, 0x92
mov dword [edi + 0x9c], eax
mov eax, dword [esi + 0x3ea0]
mov dword [edi + 0x84], eax
test byte [edi + 0xa0], 1
jne 0x10028516
mov esi, edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10028473
mov esi, eax
test byte [esi + 0xa0], 1
je 0x10028461
movss xmm0, dword [esi + 0x3c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1002848a
movss xmm0, dword [esi + 0x40]
comiss xmm0, xmm1
ja 0x100284a2
push 0x41d9
push str.D:MyFilesDLLDLL_WITH_HWIDSIGSCAN_RANPINAS1ImGui_StandaloneImGuiimgui.cpp
push str.ancestor_node__Size.x___0.0f__ancestor_node__Size.y___0.0f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, dword [esi + 0x18]
mov edx, esi
test eax, eax
je 0x100284b9
nop dword [eax + eax]
mov edx, eax
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x100284b0
and byte [edx + 0xa0], 0xdf
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x100284cc
call fcn.100225a0
mov ecx, dword [edx + 0x20]
test ecx, ecx
je 0x100284d8
call fcn.100225a0
cmp dword [edx + 0x18], 0
jne 0x100284fe
mov eax, dword [edx + 0x78]
test eax, eax
je 0x100284fe
nop word [eax + eax]
or byte [eax + 0xa0], 0x20
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x100284f0
push dword [esi + 0x40]
mov edx, edi
mov ecx, esi
push dword [esi + 0x3c]
push dword [esi + 0x38]
push dword [esi + 0x34]
call fcn.100268f0
add esp, 0x10
mov esi, dword [ebp - 4]
mov ecx, edi
mov bl, byte [edi + 0xa0]
mov edx, esi
push 1
call fcn.10021aa0
mov al, byte [edi + 0xa0]
add esp, 4
xor al, bl
and al, 1
xor byte [edi + 0xa0], al
cmp edi, dword [esi + 0x388]
je 0x1002855d
push 0x41e2
push str.D:MyFilesDLLDLL_WITH_HWIDSIGSCAN_RANPINAS1ImGui_StandaloneImGuiimgui.cpp
push str.node__window__DockNode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10033d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10033d8a
mov eax, dword [0x100726d8]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10033d7d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10033dbb
mov eax, dword [0x100726d8]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x10033dae
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10033dec
mov eax, dword [0x100726d8]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x10033ddf
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10033e39
mov eax, dword [0x100726d8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x10033e2c
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10033e6a
mov eax, dword [0x100726d8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10033e5d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x10033e9b
mov eax, dword [0x100726d8]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10033e8e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100367d0
Function at 0x10055370
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x10055381
pop esi
ret
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x100553b9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
jne 0x100553c5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
xor eax, eax
pop esi
ret
cmp dword [esi + 0x14], 8
jb 0x100553cd
mov esi, dword [esi]
mov eax, dword [ebx]
push esi
inc eax
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, 1
pop esi
ret
Function at 0x42ee20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x29000]
push edi
jmp 0x42ee3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42ee41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42ee30
mov eax, 1
add ebx, ebx
jne 0x42ee53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42ee48
jne 0x42ee64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ee48
xor ecx, ecx
sub eax, 3
jb 0x42ee78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42eeea
mov ebp, eax
add ebx, ebx
jne 0x42ee83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ee90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42eeb4
inc ecx
add ebx, ebx
jne 0x42eea0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ee95
jne 0x42eeb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ee95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42eed4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42eec5
jmp 0x42ee36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42eed4
add edi, ecx
jmp 0x42ee36
pop esi
mov edi, esi
mov ecx, 0x581
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42eef2
cmp byte [edi], 1
jne 0x42eef2
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 al, bl
loop 0x42eef7
lea edi, [esi + 0x2c000]
mov eax, dword [edi]
or eax, eax
je 0x42ef66
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x32164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32204]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42ef24
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x32208]
or eax, eax
je 0x42ef60
mov dword [ebx], eax
add ebx, 4
jmp 0x42ef41
call dword [esi + 0x32218]
mov ebp, dword [esi + 0x3220c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42ef9a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401443
pop dword [ebp - 8]
mov eax, 0x2864c740
add eax, 0xd7db4d03
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xd5a88501
add dword [ebp - 0x18], 0x78a9c04a
mov dword [ebp - 0x14], 0x55e1a9fa
sub dword [ebp - 0x14], 0x23ae5db5
mov dword [ebp - 0x10], 0xac01fee6
add dword [ebp - 0x10], 0xa04a4548
mov dword [ebp - 0xc], 0x4c2a84c7
add dword [ebp - 0xc], 0xb3d57b39
lea eax, [ebp - 0x18]
push eax
mov eax, 0xe6ef759d
add eax, 0x19510b67
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x70b4d543
add dword [ebp - 0x18], 0x3bd9413
mov dword [ebp - 0x14], 0x1f651ec1
add dword [ebp - 0x14], 0x220742b4
mov dword [ebp - 0x10], 0x851fc824
sub dword [ebp - 0x10], 0x21b05bb8
mov dword [ebp - 0xc], 0x9ffb7454
add dword [ebp - 0xc], 0x60048bac
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x4527ad4
add eax, 0xfbee062c
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3a24a
push 0
call eax
mov ecx, 0x111706f0
sub ecx, 0x1116b787
xor edi, edi
add edi, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 8]
mov esi, 0x89e2fc9a
mov edx, dword [ebx]
xor dword [ebp - 4], 0xef2e384
xor edx, esi
xor dword [ebp - 4], ecx
mov dword [edi], edx
xor dword [ebp - 4], 0x5be62fc3
add edi, 0x2b1e041b
add edi, 0xd4e1fbe9
add ebx, 4
loop 0x40155b
add eax, 0x13077
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x40d46d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x40d4a5
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x40d493
mov al, 1
jmp 0x40d504
cmp dword [ebx + 0x54], ecx
jne 0x40d49c
mov al, 2
jmp 0x40d504
cmp dword [ebx + 0x7c], ecx
jne 0x40d504
mov al, 3
jmp 0x40d504
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x40d4ba
mov al, 4
jmp 0x40d504
cmp ecx, 5
jne 0x40d4da
cmp ebx, 0
jne 0x40d4c8
mov al, 5
jmp 0x40d504
cmp ebx, 1
jne 0x40d4d1
mov al, 6
jmp 0x40d504
cmp ebx, 2
jne 0x40d4da
mov al, 7
jmp 0x40d504
cmp ecx, 6
jne 0x40d502
cmp ebx, 0
jne 0x40d4e8
mov al, 8
jmp 0x40d504
cmp ebx, 1
jne 0x40d4ef
mov al, 9
cmp ebx, 2
jne 0x40d4f6
mov al, 0xa
cmp ebx, 3
jne 0x40d4fd
mov al, 0xb
cmp ebx, 4
jne 0x40d504
mov al, 0xc
pop ebx
leave
ret
Function at 0x482ce1
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [0x5fe388], 0
jne 0x482d47
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
push 0x80000301
push 0
push 0x9c8
push 2
mov eax, 2
mov ebx, 0x53ba60
call fcn.004c9fef
add esp, 0x1c
mov dword [0x5fe388], eax
cmp dword [0x5fe388], 0
jne 0x482d47
mov eax, dword [ebp + 8]
jmp 0x482e99
mov eax, dword [0x5fe388]
mov dword [ebp - 4], eax
pushal
cmp dword [eax + 8], 0
jne 0x482dae
mov edx, dword fs:[0x20]
imul edx, dword fs:[0x24]
mov eax, dword fs:[0x2c]
xor eax, dword fs:[0x30]
imul eax, edx
imul edx, eax, 0x41c64e6d
imul edx, dword [ebp - 4]
add edx, 0x3039
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebx], edx
xor eax, eax
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
inc eax
add edx, eax
mov dword [ebx + eax*4], edx
cmp eax, 0x26f
jb 0x482d8f
call fcn.00482e28
mov ecx, 1
test byte [eax + 4], 1
jne 0x482db3
xchg dword [eax + 4], ecx
test ecx, ecx
jne 0x482db3
cmp dword [eax], 0x270
jne 0x482dcd
call fcn.00482e28
mov edx, dword [eax]
inc dword [eax]
mov ecx, dword [eax + edx*4 + 8]
mov dword [eax + 4], 0
mov eax, ecx
shr ecx, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp ecx, ebx
jg 0x482e12
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
sub ecx, ebx
inc ecx
test ecx, ecx
xor edx, edx
div ecx
mov eax, edx
add eax, ebx
mov dword [esp + 0x1c], eax
popal
leave
ret 8
mov esp, ebp
pop ebp
ret 8

Function at 0x482e28
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
xor esi, esi
mov edi, dword [ebp - 4]
push edi
push ebp
add edi, 8
mov ebp, edi
mov ebx, 0x18d
inc esi
mov edx, esi
xor eax, eax
cmp esi, 0x270
cmove edx, eax
mov edx, dword [ebp + edx*4]
xor edx, dword [edi]
and edx, 0x7fffffff
xor edx, dword [edi]
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x9908b0df
and dl, 1
cmove ecx, eax
xor edx, edx
cmp ebx, 0x270
cmove ebx, edx
mov edx, ebx
xor ecx, dword [ebp + edx*4]
mov dword [edi], ecx
lea edi, [edi + 4]
inc ebx
cmp ebx, 0x18d
jne 0x482e39
pop ebp
pop eax
mov dword [eax], 0
ret
Function at 0x4db340
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x57756b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0056b6bb
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4db3c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00568bff
mov eax, dword [eax]
push 0x5e8d44
push eax
call fcn.00559574
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0056b946
test bl, bl
je 0x4db3c2
push 0x5e8d44
lea ecx, [esp + 0xc]
call fcn.0056bcd6
push 0x5e8d50
lea ecx, [esp + 0xc]
call fcn.0056bcd6
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4db3fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0056b946
jmp 0x4db4c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4db482
lea edx, [esp + 0x7c]
push 0x5e8d4c
push edx
call fcn.00559574
add esp, 8
test eax, eax
je 0x4db482
lea eax, [esp + 0x7c]
push 0x5e8d48
push eax
call fcn.00559574
add esp, 8
test eax, eax
je 0x4db482
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4db412
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0056b946
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4dbcc0
Capabilities:
Query or enumerate registry value

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

Disassembly:
push 0xffffffffffffffff
push 0x5775eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5fa0d0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4dbe68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4dbd96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0056b946
xor eax, eax
jmp 0x4dbedf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0056ba83
push esi
lea ecx, [esp + 0xc]
call fcn.0056bd12
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4dbebd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004dbcc0
test eax, eax
jne 0x4dbebd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004dbcc0
test eax, eax
jne 0x4dbebd
lea eax, [esp + 0x14]
push 0x5e8d60
push eax
call fcn.0055a6c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dbe9c
lea ecx, [esp + 0x14]
push 0x5e8d5c
push ecx
call fcn.0055a640
mov esi, eax
add esp, 8
test esi, esi
jne 0x4dbe9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4dbe9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0056ba33
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4dbdae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0056b946
xor eax, eax
jmp 0x4dbedf
mov byte [esi], 0
push 0x5e8d58
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0056b946
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4