joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401422
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x133f
sub esp, 0x70
push fcn.00401422
xor esi, esi
mov ecx, 0x50
push esi
dec ecx
jne 0x40143c
xor eax, eax
call fcn.00403ff7
mov dword [ebp - 0x98], 0
push 0
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
fldcw word [ebp - 0x10]
mov esi, eax
mov eax, 0x128
mov dword [ebp - 0x1c4], eax
lea ebx, [ebp - 0x1c4]
push ebx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_Process32First]
fldcw word [ebp - 0x10]
nop
nop
push 1
lea ebx, [ebp - 0x1c4]
push ebx
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_Process32Next]
fldcw word [ebp - 0x10]
pop dword [ebp - 0x30]
cmp eax, dword [ebp - 0x30]
jl 0x4014ea
lea ebx, [ebp - 0x1a0]
call fcn.00403e46
xor eax, eax
call fcn.00402102
mov edx, dword [ebp + 8]
call fcn.00403fb5
xor eax, eax
call fcn.00402102
call fcn.00403d5d
jne 0x4014de
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x98], eax
jmp 0x4014ea
mov eax, 1
call fcn.004024d5
jmp 0x401480
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
fldcw word [ebp - 0x10]
call fcn.00403ee5
mov eax, dword [ebp - 0x98]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4016c8
Capabilities:
Accept command line arguments
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, section..data
test word [0x4016aa], 4
jne 0x4016e3
jmp 0x401b12
jmp fcn.00401915
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
call fcn.00401811
mov dword [ebx + 0x3f0], 1
lea eax, [ebx + 0x5c4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
sub esp, 0x44
mov dword [esp], 0x44
mov dword [esp + 0x2c], 0
push esp
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov eax, 0xa
test dword [esp + 0x2c], 1
je 0x401b63
movzx eax, word [esp + 0x30]
add esp, 0x44
mov dword [ebx + 0x3e4], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.004018b7
mov dword [ebx + 0x3e0], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebx + 0x3ec], eax
call fcn.004016e8
push 0xff
jb 0x401be2
pop eax
movzx ecx, word [0x4016a8]
jecxz 0x401bad
push ecx
push 8
push esp
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
pop eax
pop eax
call fcn.0040175d
push eax
mov ebx, section..data
mov ecx, dword [ebx + 0xd8]
call fcn.00401bee
mov ecx, dword [ebx + 0xb4]
jecxz 0x401bd2
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov edi, dword [ebx + 0x428]
call fcn.00401762
call fcn.00401749
call dword [sym.imp.OLE32.DLL_CoUninitialize]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x4016e8
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
stc
je 0x401748
mov dword [ebx + 0x3d0], eax
mov dword [ebx + 0x3d8], 0
mov dword [ebx + 0x3d4], 0
call fcn.004019f4
jb 0x401748
mov dword [ebx + 0x3d4], eax
mov word [eax + 0xac], 8
call fcn.00401737
dec ebp
push ebx
and byte [ebx + 0x61], dl
outsb dx, byte [esi]
jae 0x401751
push ebx
jb 0x40179e
add byte [esi - 4], bl
mov bl, 0xd0
add eax, dword [eax]
add bh, bh
adc eax, sym.imp.KERNEL32.DLL_TlsFree
ret

Function at 0x401915
Capabilities:
Terminate process

Disassembly:
mov edx, 0xf4
jmp 0x401921
mov dh, 0xb0
mov word [ebp - 0x90], dx
jmp 0x401937
test byte [ebp - 0x90], 0xff
jne 0x401949
mov word [ebp - 0x90], 0xb033
push eax
push ebx
push ecx
push esi
push edi
mov ax, word [ebp - 0x8e]
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
call fcn.004019f4
jb 0x401983
test dword [eax + 0x28], 0xffffffff
je 0x401983
test dword [eax + 0x24], 0xffffffff
je 0x401983
call fcn.00401915
mov edi, dword [ebp - 0x84]
mov ecx, dword [edi - 6]
jecxz 0x4019b6
xor ebx, ebx
mov edx, dword [esp + 0x14]
xor esi, esi
mov bl, byte [ecx]
inc ecx
cmp bl, 0xff
jne 0x4019a6
add esi, 0xfe
jmp 0x401996
add esi, ebx
add edi, esi
cmp edi, edx
jb 0x401994
mov dword [eax + 0x30], edi
sub edi, esi
mov dword [eax + 0x2c], edi
test word [0x4016aa], 0x2000
je 0x4019d7
test dword [ebp - 0x8c], 0xffffffff
jne 0x4019d7
call fcn.00401915
cmp eax, 1
jne 0x4019e6
cmp byte [ebp - 0x90], 0xf1
jae 0x4019e6
pop edi
pop esi
pop ecx
pop ebx
pop eax
ret
push 0xff
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x401bf8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
sub esp, 0x170
mov dword [esp], eax
mov dword [esp + 4], ecx
and eax, 0x7fff
mov esi, eax
cld
xor eax, eax
mov ecx, 4
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x5c]
call fcn.00403c83
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], si
lea eax, [esp + 8]
lea ebx, [esp + 0x18]
mov edi, dword [esp + 4]
push edi
push 0
push 0xc
mov ecx, esp
push eax
push ebx
push 0
push 0
push 0x20
push edi
push ecx
push ecx
push edx
push 0
mov edx, dword [sym.imp.KERNEL32.DLL_CreateProcessA]
call fcn.0040410e
pop ecx
pop ecx
pop ecx
jae 0x401c7b
test eax, eax
je 0x401cc2
mov ebx, dword [esp + 0x10]
test dword [esp], 0x8000
je 0x401ca2
push 0xffffffffffffffff
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esp + 8]
push eax
push esp
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
pop ebx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
add esp, 0x170
pop edi
pop esi
pop ebx
ret
add esp, 0x170
pop edi
pop esi
pop ebx
xor eax, eax
jmp 0x401921
Function at 0x401cd2
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push ecx
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x258
mov edi, eax
call fcn.004019f4
mov ebx, eax
lea edx, [ebp - 0x114]
push ebp
mov ebp, dword [ebp]
call fcn.00403c83
pop ebp
or eax, eax
je 0x401e05
xor ecx, ecx
xchg dword [ebx + 0xc], ecx
jecxz 0x401d18
push eax
push edx
push ecx
mov edx, dword [sym.imp.KERNEL32.DLL_FindClose]
call fcn.0040410e
pop edx
pop eax
mov esi, edx
add esi, eax
mov al, byte [esi - 1]
and edi, 0x9e
test edi, 0x80
je 0x401d3b
test edi, 0x16
jne 0x401d3b
xor edi, 0x80
mov dword [ebx + 0x10], edi
test edi, 8
jne 0x401d7f
cmp al, 0x3a
je 0x401d4e
cmp al, 0x5c
jne 0x401d59
mov word [esi], 0x2e2a
mov word [esi + 2], 0x2a
lea eax, [ebp - 0x258]
push eax
push edx
mov edx, dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
call fcn.0040410e
cmp eax, 0xffffffff
stc
je 0x401e36
mov dword [ebx + 0xc], eax
cmc
jmp 0x401e36
push eax
cld
xor al, al
mov ecx, 0x140
lea edi, [ebp - 0x258]
rep stosb byte es:[edi], al
pop eax
cmp word [edx], 0x5c5c
jne 0x401da3
cmp al, 0x5c
je 0x401dad
mov word [esi], 0x5c
jmp 0x401dad
mov byte [edx + 1], 0x3a
mov word [edx + 2], 0x5c
push 0
push 0
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x234]
push eax
push 0
push 0x104
lea eax, [ebp - 0x22c]
push eax
push edx
mov edx, dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
call fcn.0040410e
xor ecx, ecx
xor esi, esi
test eax, eax
je 0x401f02
lea esi, [ebp - 0x22c]
jmp 0x401ed5
xor ecx, ecx
test dword [ebx + 0xc], 0xffffffff
je 0x401f02
test dword [ebx + 0x10], 8
jne 0x401f02
lea edx, [ebp - 0x258]
push edx
push dword [ebx + 0xc]
mov edx, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
call fcn.0040410e
mov word [ebp - 0x90], 0
lea esi, [ebp - 0x22c]
jae 0x401e71
cld
xor al, al
mov ecx, 0x140
lea edi, [ebp - 0x258]
rep stosb byte es:[edi], al
xor ecx, ecx
mov byte [esi], cl
mov dword [ebx + 0x10], ecx
xchg dword [ebx + 0xc], ecx
jecxz 0x401e6f
push ecx
mov edx, dword [sym.imp.KERNEL32.DLL_FindClose]
call fcn.0040410e
jmp 0x401ed5
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebx + 0x10]
test ecx, 8
je 0x401e8b
test eax, 8
je 0x401e21
jmp 0x401ed5
and eax, 0x16
je 0x401ec5
test eax, 2
je 0x401e9f
test ecx, 2
je 0x401e21
test eax, 4
je 0x401eb2
test ecx, 4
je 0x401e21
test eax, 0x10
je 0x401ec5
test ecx, 0x10
je 0x401e21
test ecx, 0x80
je 0x401ed5
test ecx, eax
je 0x401e21
cld
xor al, al
mov ecx, 0x103
mov edi, esi
repne scasb al, byte es:[edi]
lea ecx, [edi - 1]
sub ecx, esi
mov ax, word [esi]
cmp ax, 0x2e
je 0x401e21
cmp ax, 0x2e2e
jne 0x401f02
cmp ecx, 2
je 0x401e21
push ecx
push esi
cld
mov ecx, 0x140
lea esi, [ebp - 0x258]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x401f19
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
push ebp
mov ebp, dword [ebp]
call fcn.00404090
pop ebp
mov esp, ebp
pop ebp
pop edi
pop esi
pop ecx
pop ebx
jb 0x401f30
pop eax
ret
mov edx, eax
pop eax
jmp 0x401921
Function at 0x402102
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
push ebp
add ebp, dword [ebp - 0x88]
mov esi, dword [ebp - 0x6c]
call fcn.004025da
jecxz 0x402144
call fcn.0040257e
jb 0x402190
cld
test eax, eax
je 0x40212f
lodsb al, byte [esi]
call fcn.0040225b
stosb byte es:[edi], al
loop 0x402122
mov esi, edx
jmp 0x40213c
push edi
push ecx
push edi
cld
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.DLL_CharLowerBuffA]
pop esi
xchg dword [ebp - 0x6c], esi
call fcn.004025b2
pop ebp
pop edi
pop esi
pop ecx
ret

Function at 0x402149
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
push ebp
add ebp, dword [ebp - 0x88]
mov esi, dword [ebp - 0x6c]
call fcn.004025da
jecxz 0x40218b
call fcn.0040257e
jb 0x402190
cld
test eax, eax
je 0x402176
lodsb al, byte [esi]
call fcn.00402297
stosb byte es:[edi], al
loop 0x402169
mov esi, edx
jmp 0x402183
push edi
push ecx
push edi
cld
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.DLL_CharUpperBuffA]
pop esi
xchg dword [ebp - 0x6c], esi
call fcn.004025b2
pop ebp
pop edi
pop esi
pop ecx
ret
mov edx, eax
pop ebp
pop edi
pop esi
pop ecx
jmp 0x401921

Function at 0x402318
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edx, ecx
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
call fcn.004025da
test eax, eax
jns 0x402331
add eax, ecx
test edx, edx
je 0x402371
jns 0x40233c
add edx, ecx
js 0x402371
inc edx
dec edx
add esi, edx
sub ecx, edx
jae 0x402345
xor ecx, ecx
cmp ecx, eax
jb 0x40234b
mov ecx, eax
call fcn.0040257e
jb 0x402375
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402db2
mov esi, dword [ebp - 0x88]
mov dword [ebp + esi - 0x6c], edx
pop edi
pop esi
ret
xor edx, edx
jmp 0x40235f
pop edi
pop esi
jmp fcn.0040192c

Function at 0x403c09
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov esi, dword [ebp - 0x88]
mov esi, dword [ebp + esi - 0x6c]
add dword [ebp - 0x88], 4
test esi, 1
je 0x403c29
and esi, 0xfffffffe
jne 0x403c33
xchg dword [ebx], esi
call fcn.004025b2
pop edi
pop esi
ret
call fcn.004025da
mov edi, dword [ebx]
or edi, edi
je 0x403c43
cmp ecx, dword [edi - 4]
je 0x403c63
call fcn.0040257e
jb 0x403c73
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xchg dword [ebx], edx
mov esi, edx
call fcn.004025b2
pop edi
pop esi
ret
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret
xchg dword [ebx], edx
mov esi, edx
call fcn.004025b2
pop edi
pop esi
jmp fcn.0040192c
Function at 0x403cc8
Capabilities:
Terminate process

Disassembly:
push ebx
push ecx
push esi
push edi
mov edi, dword [ebp - 0x88]
mov esi, dword [ebp + edi - 0x6c]
call fcn.004025da
mov ebx, ecx
push esi
mov esi, dword [ebp + edi - 0x68]
call fcn.004025da
jecxz 0x403d3e
test ebx, ebx
je 0x403d46
add ebx, ecx
xchg ecx, ebx
call fcn.0040257e
jb 0x403d53
xchg ecx, ebx
sub ebx, ecx
cld
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, ebx
push ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x88]
mov esi, edx
xchg dword [ebp + edi - 0x68], esi
call fcn.004025b2
mov esi, dword [ebp + edi - 0x6c]
call fcn.004025b2
add dword [ebp - 0x88], 4
pop edi
pop esi
pop ecx
pop ebx
ret
mov esi, dword [ebp + edi - 0x6c]
mov dword [ebp + edi - 0x68], esi
add dword [ebp - 0x88], 4
pop esi
pop edi
pop esi
pop ecx
pop ebx
ret
pop esi
pop edi
pop esi
pop ecx
pop ebx
jmp fcn.0040192c

Function at 0x403ee5
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push esi
mov ebx, dword [ebp - 0x84]
sub ebx, 0xa
mov esi, dword [ebx]
sub ebx, 4
shr esi, 1
jb 0x403f12
je 0x403f0e
shr esi, 1
jae 0x403f33
shl esi, 2
mov esi, dword [ebp + esi]
call fcn.004025b2
jmp 0x403ef1
pop esi
pop edx
pop eax
ret
shr esi, 1
jb 0x403f44
push ebx
shl esi, 2
lea ebx, [ebp + esi]
mov eax, 1
call fcn.00401915
pop ebx
jae 0x403ef1
pop esi
pop edx
pop eax
jmp fcn.0040192c
shl esi, 2
mov ecx, dword [ebp + esi]
jecxz 0x403ef1
push ecx
mov ecx, dword [ecx]
call dword [ecx + 8]
jmp 0x403ef1
lea ecx, [ebp + esi*4]
push ecx
call dword [sym.imp.OLEAUT32.DLL_VariantClear]
jmp 0x403ef1
Function at 0x10014d2
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1001cd0
call fcn.01001914
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x100367c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x1001280
cmp eax, esi
jne 0x1001273
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1001283
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100125a
xor esi, esi
inc esi
mov eax, dword [0x1003678]
cmp eax, esi
jne 0x1001296
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10012c5
mov eax, dword [0x1003678]
test eax, eax
jne 0x10012bf
mov dword [0x1003678], esi
push 0x1001094
push 0x100108c
call fcn.010011bf
pop ecx
pop ecx
test eax, eax
je 0x10012c5
jmp 0x10013ed
mov dword [0x100333c], esi
mov eax, dword [0x1003678]
cmp eax, esi
jne 0x10012e9
push 0x1001088
push 0x1001080
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1003678], 2
test ebx, ebx
jne 0x10012f5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1003684], 0
je 0x1001319
push 0x1003684
call fcn.0100188b
pop ecx
test eax, eax
je 0x1001319
push 0
push 2
push 0
call dword [0x1003684]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1001375
test al, al
je 0x1001333
cmp dword [ebp - 0x1c], 0
jne 0x1001375
mov al, byte [esi]
test al, al
je 0x1001343
cmp al, 0x20
ja 0x1001343
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1001333
test byte [ebp - 0x3c], 1
je 0x100134f
movzx eax, word [ebp - 0x38]
jmp 0x1001352
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1003338], eax
cmp dword [0x100332c], 0
jne 0x10013c9
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1001384
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1001397
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x1001320
cmp dword [0x100333c], 0
jne 0x10013d8
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1003338]
jmp 0x10013f9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01001959
ret
call fcn.01001a5e
jmp 0x1001220

Function at 0x1001800
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1001813
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100180f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x1001840
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100187f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1001875
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1001881
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1001865
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x408fb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46868b
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.0045d15e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409032
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045aedd
mov eax, dword [eax]
push 0x4ba1c0
push eax
call fcn.0044dd44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d3e9
test bl, bl
je 0x409032
push 0x4ba1c0
lea ecx, [esp + 0xc]
call fcn.0045d779
push 0x4bdd3c
lea ecx, [esp + 0xc]
call fcn.0045d779
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 0x40906e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d3e9
jmp 0x409139
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 0x4090f2
lea edx, [esp + 0x7c]
push 0x4bdd38
push edx
call fcn.0044dd44
add esp, 8
test eax, eax
je 0x4090f2
lea eax, [esp + 0x7c]
push 0x4bdd34
push eax
call fcn.0044dd44
add esp, 8
test eax, eax
je 0x4090f2
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 0x409082
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.0045d3e9
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 0x409930
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 0x409992
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 0x4099a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46870b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c4218]
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 0x409ad8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409a06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d3e9
xor eax, eax
jmp 0x409b4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045d526
push esi
lea ecx, [esp + 0xc]
call fcn.0045d7b5
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 0x409b2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409930
test eax, eax
jne 0x409b2d
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 accept
mov ecx, edi
call fcn.00409930
test eax, eax
jne 0x409b2d
lea eax, [esp + 0x14]
push 0x4bdd50
push eax
call fcn.0044ed80
mov esi, eax
add esp, 8
test esi, esi
jne 0x409b0c
lea ecx, [esp + 0x14]
push 0x4bdd4c
push ecx
call fcn.0044ed00
mov esi, eax
add esp, 8
test esi, esi
jne 0x409b0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409b0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045d4d6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409a1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d3e9
xor eax, eax
jmp 0x409b4f
mov byte [esi], 0
push 0x4bdd48
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.0045d3e9
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 0x41bba0
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 0x41bc0e
cmp si, 0x69
ja 0x41bc0e
add esi, 0xffd0
cmp si, 0x11
je 0x41bbde
push 0x11
call edi
test ax, ax
jge 0x41bbde
or esi, 0x2000
cmp si, 0x10
je 0x41bbf3
push 0x10
call edi
test ax, ax
jge 0x41bbf3
or esi, 0x4000
cmp si, 0x12
je 0x41bc08
push 0x12
call edi
test ax, ax
jge 0x41bc08
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41bc1b
mov esi, 0xbd
jmp 0x41bbcf
cmp si, 0x6e
jne 0x41bc28
mov esi, 0xbe
jmp 0x41bbcf
cmp si, 0x6f
jne 0x41bbc9
mov esi, 0xbf
jmp 0x41bbcf

Function at 0x41d2c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d4868]
xor edx, edx
cmp eax, edx
jne 0x41d2e6
xor eax, eax
mov byte [eax + 0x4d4768], al
inc eax
cmp eax, 0x100
jl 0x41d2ce
mov dword [0x4d4868], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d4768
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d377
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 0x41d34a
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 0x41d318
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d3f0
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 0x41d443
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 0x41d42a
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