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

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x486eda
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x486d88
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x486d9b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x486daf
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x486df6.3
jmp 0x486dc0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x486dcc
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x486dd1
mov esi, 1
inc eax
cmp eax, edi
jl 0x486dc0
cmp si, cx
je case.0x486df6.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x486df6.3
movzx eax, byte [eax + 0x486ef4]
jmp dword [eax*4 + 0x486ee0]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x486df6.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x486e10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x486df6.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x486e50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x486df6.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x486e76
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x486df6.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x486ea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x486e91
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x486eda
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x486d88
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x486d9b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x486daf
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x486df6.3
jmp 0x486dc0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x486dcc
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x486dd1
mov esi, 1
inc eax
cmp eax, edi
jl 0x486dc0
cmp si, cx
je case.0x486df6.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x486df6.3
movzx eax, byte [eax + 0x486ef4]
jmp dword [eax*4 + 0x486ee0]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x486df6.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x486e10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, 0xf0
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x486df6.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x486e50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x486df6.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x486e76
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x486df6.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x486ea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x49536b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ccf60]
jne 0x495375
repz ret
jmp fcn.0049a784

Function at 0x4a1ea8
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.0049d29e
and dword [ebp - 4], 0
cmp dword [0x4d6714], 0
mov ebx, eax
jne 0x4a1f59
push 0x4b7aa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4a200a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x4a200a
push eax
call fcn.0049d22c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d6714], eax
call esi
push eax
call fcn.0049d22c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d6718], eax
call esi
push eax
call fcn.0049d22c
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x4d671c], eax
call esi
push eax
call fcn.0049d22c
pop ecx
mov dword [0x4d6724], eax
test eax, eax
je 0x4a1f59
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049d22c
pop ecx
mov dword [0x4d6720], eax
mov eax, dword [0x4d6720]
cmp eax, ebx
je 0x4a1fb1
cmp dword [0x4d6724], ebx
je 0x4a1fb1
push eax
call fcn.0049d2a7
push dword [0x4d6724]
mov esi, eax
call fcn.0049d2a7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a1fb1
test edi, edi
je 0x4a1fb1
call esi
test eax, eax
je 0x4a1fa8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a1fa8
test byte [ebp - 0xc], 1
jne 0x4a1fb1
or dword [ebp + 0x10], 0x200000
jmp 0x4a1fea
mov eax, dword [0x4d6718]
cmp eax, ebx
je 0x4a1fea
push eax
call fcn.0049d2a7
pop ecx
test eax, eax
je 0x4a1fea
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a1fea
mov eax, dword [0x4d671c]
cmp eax, ebx
je 0x4a1fea
push eax
call fcn.0049d2a7
pop ecx
test eax, eax
je 0x4a1fea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d6714]
call fcn.0049d2a7
pop ecx
test eax, eax
je 0x4a200a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a200c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a8187
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.0049d29e
and dword [ebp - 4], 0
cmp dword [0x4d69e4], 0
mov ebx, eax
jne 0x4a8238
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a82e9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a82e9
push eax
call fcn.0049d22c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d69e4], eax
call esi
push eax
call fcn.0049d22c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d69e8], eax
call esi
push eax
call fcn.0049d22c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d69ec], eax
call esi
push eax
call fcn.0049d22c
pop ecx
mov dword [0x4d69f4], eax
test eax, eax
je 0x4a8238
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049d22c
pop ecx
mov dword [0x4d69f0], eax
mov eax, dword [0x4d69f0]
cmp eax, ebx
je 0x4a8290
cmp dword [0x4d69f4], ebx
je 0x4a8290
push eax
call fcn.0049d2a7
push dword [0x4d69f4]
mov esi, eax
call fcn.0049d2a7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a8290
test edi, edi
je 0x4a8290
call esi
test eax, eax
je 0x4a8287
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a8287
test byte [ebp - 0xc], 1
jne 0x4a8290
or dword [ebp + 0x10], 0x200000
jmp 0x4a82c9
mov eax, dword [0x4d69e8]
cmp eax, ebx
je 0x4a82c9
push eax
call fcn.0049d2a7
pop ecx
test eax, eax
je 0x4a82c9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a82c9
mov eax, dword [0x4d69ec]
cmp eax, ebx
je 0x4a82c9
push eax
call fcn.0049d2a7
pop ecx
test eax, eax
je 0x4a82c9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d69e4]
call fcn.0049d2a7
pop ecx
test eax, eax
je 0x4a82e9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a82eb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bfd
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov byte [ebp - 0x50], 0x41
mov byte [ebp - 0x4f], 0x42
Function at 0x403ebd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0xc], 0
jmp 0x403ef1
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jae 0x403fa3
mov edx, dword [ebp - 8]
add edx, 1
and edx, 0x800000ff
jns 0x403f13
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x10]
and ecx, 0x800000ff
jns 0x403f32
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
mov byte [ecx], dl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
movzx eax, byte [edx]
add ecx, eax
and ecx, 0x800000ff
jns 0x403f7f
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0xc]
mov byte [edx], cl
jmp 0x403ee8
mov esp, ebp
pop ebp
ret

Function at 0x4040cd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov byte [ebp - 0x14], 0x59
mov byte [ebp - 0x13], 0x68
mov byte [ebp - 0x12], 0x2d
mov byte [ebp - 0x11], 0x69
mov byte [ebp - 0x10], 0x6f
mov byte [ebp - 0xf], 0x6b
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0x64
mov byte [ebp - 0xb], 0x66
mov byte [ebp - 0xa], 0x2d
mov byte [ebp - 9], 0x73
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x6e
mov byte [ebp - 6], 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1cc]
call edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40414a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
call ecx
cmp eax, 0xb7
jne 0x404145
xor eax, eax
jmp 0x40414a
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40a1fb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402a18
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a252
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x40e52c
lea eax, [ebp - 0xc]
push eax
push 0
push 0x402a30
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [0x40e52c]
mov esp, ebp
pop ebp
ret

Function at 0x40a7c0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40c1b8
call fcn.0040ab4c
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x40e5c0
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40a5c5
cmp eax, edi
jne 0x40a5d7
mov esi, ebx
cmp dword [0x40e5c4], ebx
jne 0x40a5e4
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40a613
push 0x3e8
call dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x40a5ae
cmp dword [0x40e5c4], 0
jne 0x40a60d
mov dword [0x40e5c4], ebx
push 0x40102c
push 0x401020
call fcn.0040a764
pop ecx
pop ecx
test eax, eax
je 0x40a613
jmp 0x40a74d
mov dword [0x40e0f4], ebx
cmp dword [0x40e5c4], ebx
jne 0x40a636
push 0x40101c
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40e5c4], 2
test esi, esi
jne 0x40a643
xor eax, eax
mov ecx, 0x40e5c0
xchg dword [ecx], eax
cmp dword [0x40e5c8], 0
je 0x40a671
push 0x40e5c8
call fcn.0040a970
pop ecx
test eax, eax
je 0x40a671
push 0
push 2
push 0
mov esi, dword [0x40e5c8]
mov ecx, esi
call dword [0x40f210]
call esi
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov ecx, dword [eax]
test ecx, ecx
je 0x40a74d
mov dword [ebp - 0x20], ecx
push 0x20
pop esi
mov edx, dword [ebp - 0x24]
movzx eax, word [ecx]
cmp ax, si
ja 0x40a6e1
test ax, ax
je 0x40a69a
test edx, edx
jne 0x40a6e1
movzx eax, word [ecx]
test ax, ax
je 0x40a6af
cmp ax, si
ja 0x40a6af
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40a69a
test byte [ebp - 0x40], 1
je 0x40a6bb
movzx eax, word [ebp - 0x3c]
jmp 0x40a6be
push 0xa
pop eax
push eax
push ecx
push 0
push 0x400000
call main
mov dword [0x40e0f0], eax
cmp dword [0x40e108], 0
jne 0x40a729
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0x22
jne 0x40a6f2
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [ebp - 0x24], edx
add ecx, 2
mov dword [ebp - 0x20], ecx
jmp 0x40a689
cmp dword [0x40e0f4], 0
jne 0x40a73d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40e0f0]
mov dword [ebp - 4], 0xfffffffe
jmp 0x40a759
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0040ab94
ret
call fcn.0040aa78
jmp 0x40a578
Function at 0x40a85f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40c1e0
call fcn.0040add8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a8bf
cmp eax, 0xffffffff
je 0x40a8bf
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40a8b8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40a8b8
cmp edx, 0x10000000
jae 0x40a8b8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40a8b5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040ae1d
ret 4

Function at 0x40a920
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40a95e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40a956
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40a960
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40a946
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40aa40
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40aa56
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x40aa71
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x9ff69d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x9ff69d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0xc38d292
xor ebx, 0x50f8b59d
mov esi, 0x705656f0
xor ebx, esi
add esp, 0xfffffffc
mov ecx, esp
mov dword [ecx], ebx
mov edi, 0x44a3f8aa
xor edi, 0x1ac7c251
xor esi, esi
add esi, esi
jmp 0x403f43

Function at 0x40520c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404de0
add esp, 0x104
pop ebx
ret
Function at 0x402ed7
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x47d6d4]
mov ecx, dword [0x47d640]
sub esp, 0x808
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x402f7b
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x47d6d4], 0x5d
jne 0x402f6d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x408]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0x402308
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0x402310
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
push edi
call fcn.00402681
add edi, 8
dec ebx
jne 0x402eff
pop edi
pop ebx
pop esi
leave
ret