joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53de78
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00537903
add esp, 4
and eax, 0xff
test eax, eax
je 0x53df01
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00548da0
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x53deff
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x53deff
jmp 0x53df01
jmp 0x53de81
mov esp, ebp
pop ebp
ret

Function at 0x53e373
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x565ab4]
test eax, eax
jne 0x53e387
call fcn.0053e2a4
xor ecx, ecx
mov cl, byte [0x565ab1]
test ecx, ecx
jne 0x53e40e
xor edx, edx
mov dl, byte [0x565ab0]
test edx, edx
jne 0x53e40e
cmp dword [0x565cbc], 0
je 0x53e3e9
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0x565cbc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0x565cbc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x565cbc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x53e40e
push 0x10001
push 0x565ab4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x53e40e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x54151a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x54152a
xor eax, eax
jmp 0x5416f3
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x5416ab
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x563a0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x563a0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x563a0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x563a0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x563a0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x563a0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x563a0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x563a0c]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x541533
cmp dword [ebp + 0x10], 0
je 0x5416ed
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x563a0c]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x5416b1
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x54aea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x561028
cmp edx, dword [eax]
je 0x54aec2
add eax, 8
inc ecx
cmp eax, 0x5610b8
jl 0x54aeb3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x561028]
jne 0x54aff0
mov eax, dword [0x565d38]
cmp eax, 1
je 0x54afca
test eax, eax
jne 0x54aef3
cmp dword [0x560d64], 1
je 0x54afca
cmp edx, 0xfc
je 0x54aff0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x54af2a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00548f00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00549020
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x54af6d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00549020
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x564e24
push edi
call fcn.005490a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00548f00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00548f10
lea eax, [ebp - 0xa0]
push 0x564e04
push eax
call fcn.00548f10
push dword [esi + 0x56102c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00548f10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0054d468
add esp, 0x2c
pop edi
jmp 0x54aff0
lea eax, [ebp + 8]
lea esi, [esi + 0x56102c]
push 0
push eax
push dword [esi]
call fcn.00549020
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Create process on windows
Shutdown system

Disassembly:
sub esp, 0x54
xor eax, eax
mov ecx, 0x11
push ebx
push esi
push edi
lea edi, [esp + 0x1c]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [eax], esi
push str.C:DISNEYCOLDSHDW
mov dword [eax + 4], esi
push esi
mov dword [eax + 8], esi
push esi
mov dword [eax + 0xc], esi
mov dword [esp + 0x34], 0x44
push esi
push esi
push esi
push esi
push str.c:DISNEYCOLDSHDWCOLDSHDW.EXE
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x10]
push 0xbb8
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call ebx
push esi
mov ebp, dword [sym.imp.USER32.dll_FindWindowA]
push str.Cold_Shadow
call ebp
push eax
mov edi, eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push 0x1e0
push 0x280
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
push 0x14
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.Cold_Shadow
call ebp
test eax, eax
jne 0x4010d3
push 0xffffffffffffffff
push 0
call edi
jmp 0x4010be
push 0x3e8
call esi
jmp 0x4010be
Function at 0x4010e0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402090
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x404080], eax
xor eax, eax
mov al, byte [0x404081]
mov dword [0x40408c], eax
mov eax, dword [0x404080]
shr dword [0x404080], 0x10
and eax, 0xff
mov dword [0x404088], eax
shl eax, 8
add eax, dword [0x40408c]
mov dword [0x404084], eax
call fcn.00402070
mov dword [ebp - 4], 0
call fcn.00401e90
call fcn.00401e80
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x404890], eax
call fcn.00401a20
mov dword [0x404060], eax
test eax, eax
je 0x401179
cmp dword [0x404890], 0
jne 0x401183
push 0xffffffffffffffff
call fcn.004012d0
add esp, 4
call fcn.004017a0
call fcn.004016c0
call fcn.004012a0
mov esi, dword [0x404890]
mov al, byte [esi]
cmp al, 0x22
je 0x4011aa
cmp al, 0x20
jbe 0x4011d7
inc esi
cmp byte [esi], 0x20
ja 0x4011a2
jmp 0x4011d7
inc esi
cmp byte [esi], 0x22
je 0x4011d6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4011d1
xor eax, eax
mov al, bl
push eax
call fcn.00401660
add esp, 4
test eax, eax
je 0x4011cb
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4011b3
cmp byte [esi], 0x22
jne 0x4011d7
inc esi
cmp byte [esi], 0
je 0x4011e7
cmp byte [esi], 0x20
ja 0x4011e7
inc esi
cmp byte [esi], 0
jne 0x4011dc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x40120b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004012d0
jmp 0x40124c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401310
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4040bc], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40132e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4040b8], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4040b4], bl
jne 0x401388
cmp dword [0x404888], 0
je 0x401376
mov edi, dword [0x404884]
sub edi, 4
cmp dword [0x404888], edi
ja 0x401376
mov eax, dword [edi]
test eax, eax
je 0x40136b
call eax
sub edi, 4
cmp dword [0x404888], edi
jbe 0x401363
push 0x404014
push 0x404010
call fcn.004013c0
add esp, 8
push 0x40401c
push 0x404018
call fcn.004013c0
add esp, 8
test ebx, ebx
jne 0x4013af
mov dword [0x4040bc], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x401a20
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x404160], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x401a6c
call esi
mov edi, eax
test edi, edi
je 0x401a4a
mov dword [0x404160], 1
jmp 0x401a70
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x401a62
mov dword [0x404160], 2
jmp 0x401a74
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x404160], 1
jne 0x401b23
test edi, edi
jne 0x401a97
call esi
mov edi, eax
test edi, edi
jne 0x401a97
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x401ab1
add esi, 2
cmp word [esi], 0
jne 0x401a9f
add esi, 2
cmp word [esi], 0
jne 0x401a9f
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x401b12
push ebp
call fcn.004023c0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x401b12
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401b01
push ebx
call fcn.004023a0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x404160], 2
jne 0x401ba7
test ebx, ebx
jne 0x401b46
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x401b46
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x401b5b
inc ebp
cmp byte [ebp], 0
jne 0x401b4d
inc ebp
cmp byte [ebp], 0
jne 0x401b4d
sub ebp, ebx
inc ebp
push ebp
call fcn.004023c0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x401b80
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4021b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x404390
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4021d7
add eax, 8
inc ecx
cmp eax, 0x404418
jb 0x4021c8
cmp dword [ecx*8 + 0x404390], edx
lea ebx, [ecx*8]
jne 0x402392
cmp dword [0x40406c], 1
je 0x402357
cmp dword [0x40406c], 0
jne 0x40220e
cmp dword [0x404070], 1
je 0x402357
cmp edx, 0xfc
je 0x402392
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40224b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40228f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4032b8
push ebp
call fcn.004024e0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x403298
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x404394]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00402440
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x404780]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40236e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x404394]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x40be80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x469b5b
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.0045e4e6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bf02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045c3fd
mov eax, dword [eax]
push 0x4841c0
push eax
call fcn.0044f284
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045e771
test bl, bl
je 0x40bf02
push 0x4841c0
lea ecx, [esp + 0xc]
call fcn.0045eb01
push 0x487d50
lea ecx, [esp + 0xc]
call fcn.0045eb01
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 0x40bf3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045e771
jmp 0x40c009
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 0x40bfc2
lea edx, [esp + 0x7c]
push 0x487d4c
push edx
call fcn.0044f284
add esp, 8
test eax, eax
je 0x40bfc2
lea eax, [esp + 0x7c]
push 0x487d48
push eax
call fcn.0044f284
add esp, 8
test eax, eax
je 0x40bfc2
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 0x40bf52
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.0045e771
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 0x40c800
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 0x40c862
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 0x40c870
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x469bdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48e2b8]
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 0x40c9a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c8d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e771
xor eax, eax
jmp 0x40ca1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045e8ae
push esi
lea ecx, [esp + 0xc]
call fcn.0045eb3d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x487d88
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c9fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push connect
call fcn.0040c800
test eax, eax
jne 0x40c9fd
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 connect
mov ecx, edi
call fcn.0040c800
test eax, eax
jne 0x40c9fd
lea eax, [esp + 0x14]
push 0x487d64
push eax
call fcn.004502c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c9dc
lea ecx, [esp + 0x14]
push 0x487d60
push ecx
call fcn.00450240
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c9dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c9df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045e85e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c8ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e771
xor eax, eax
jmp 0x40ca1f
mov byte [esi], 0
push 0x487d5c
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.0045e771
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
Function at 0x41f1e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41f24e
cmp si, 0x69
ja 0x41f24e
add esi, 0xffd0
cmp si, 0x11
je 0x41f21e
push 0x11
call edi
test ax, ax
jge 0x41f21e
or esi, 0x2000
cmp si, 0x10
je 0x41f233
push 0x10
call edi
test ax, ax
jge 0x41f233
or esi, 0x4000
cmp si, 0x12
je 0x41f248
push 0x12
call edi
test ax, ax
jge 0x41f248
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f25b
mov esi, 0xbd
jmp 0x41f20f
cmp si, 0x6e
jne 0x41f268
mov esi, 0xbe
jmp 0x41f20f
cmp si, 0x6f
jne 0x41f209
mov esi, 0xbf
jmp 0x41f20f

Function at 0x420900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49e910]
xor edx, edx
cmp eax, edx
jne 0x420926
xor eax, eax
mov byte [eax + 0x49e810], al
inc eax
cmp eax, 0x100
jl 0x42090e
mov dword [0x49e910], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49e810
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4209b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42098a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x420958
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x420a83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x420a6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret