joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bdf5
Capabilities:
Accept command line arguments
Query environment variable
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416400
push 0x40dcc8
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 [0x43a548], eax
mov al, ah
and eax, 0xff
mov dword [0x43a554], eax
mov eax, dword [0x43a548]
shr dword [0x43a548], 0x10
and eax, 0xff
mov dword [0x43a550], eax
shl eax, 8
add eax, dword [0x43a554]
mov dword [0x43a54c], eax
call fcn.0040dc1d
mov dword [ebp - 4], 0
call fcn.0040db2f
call fcn.0040db24
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x413858], eax
call fcn.0040d698
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x43a460], eax
call fcn.0040d5cd
call fcn.0040d24f
mov esi, dword [0x413858]
mov al, byte [esi]
cmp al, 0x22
je 0x40bea9
cmp al, 0x20
jbe 0x40bed5
inc esi
cmp byte [esi], 0x20
ja 0x40bea1
jmp 0x40bed5
inc esi
cmp byte [esi], 0x22
je 0x40bed4
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40becf
movzx eax, bl
push eax
call fcn.0040d58a
add esp, 4
test eax, eax
je 0x40bec9
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x40beb2
cmp byte [esi], 0x22
jne 0x40bed5
inc esi
cmp byte [esi], 0
je 0x40bee5
cmp byte [esi], 0x20
ja 0x40bee5
inc esi
cmp byte [esi], 0
jne 0x40beda
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 0x40bf05
movzx eax, word [ebp - 0x40]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040d27f
jmp 0x40bf41
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 0x40d2a1
Capabilities:
Terminate process

Disassembly:
mov dword [0x43a580], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x43a57c], bl
jne 0x40d2fd
cmp dword [0x413854], 0
je 0x40d2eb
mov esi, dword [0x413850]
sub esi, 4
cmp dword [0x413854], esi
ja 0x40d2eb
mov eax, dword [esi]
test eax, eax
je 0x40d2e0
call eax
sub esi, 4
cmp dword [0x413854], esi
jbe 0x40d2d8
push 0x43b510
push 0x43b508
call fcn.0040d320
add esp, 8
push 0x43b518
push 0x43b514
call fcn.0040d320
add esp, 8
test ebx, ebx
jne 0x40d31d
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x40f15e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov ebp, esp
sub esp, 0x410
cmp eax, dword [0x43a830]
push ebx
push esi
push edi
jb 0x40f194
mov dword [0x43a53c], 9
mov dword [0x43a540], 0
mov eax, 0xffffffff
jmp 0x40f2f0
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x40f1a5
xor eax, eax
jmp 0x40f2f0
mov eax, dword [ebp + 8]
test byte [eax + 0x43a838], 0x20
je 0x40f1be
push 2
push 0
push eax
call fcn.0040f328
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x43a838], 0x80
je 0x40f248
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x40f280
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x40f212
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x40f1fe
inc esi
mov byte [ebx], 0xd
inc ebx
lea ecx, [ebp - 0x410]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, ecx
cmp eax, 0x400
jl 0x40f1e8
lea eax, [ebp - 0x410]
push 0
sub ebx, eax
lea ecx, [ebp - 0x410]
lea eax, [ebp - 4]
push eax
push ebx
push ecx
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x43a878]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f277
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x40f1d4
jmp 0x40f280
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax*4 + 0x43a878]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f277
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x40f280
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x40f2eb
cmp dword [ebp - 0xc], 0
je 0x40f2b8
cmp dword [ebp - 0xc], 5
jne 0x40f2a6
mov dword [0x43a53c], 9
mov eax, dword [ebp - 0xc]
mov dword [0x43a540], eax
jmp 0x40f2b1
push dword [ebp - 0xc]
call fcn.004104b8
add esp, 4
mov eax, 0xffffffff
jmp 0x40f2f0
mov eax, dword [ebp + 8]
test byte [eax + 0x43a838], 0x40
je 0x40f2d0
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x40f2d0
xor eax, eax
jmp 0x40f2f0
mov dword [0x43a53c], 0x1c
mov dword [0x43a540], 0
mov eax, 0xffffffff
jmp 0x40f2f0
mov eax, dword [ebp - 8]
sub eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410996
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
cmp esi, dword [0x43a830]
jb 0x4109c8
mov dword [0x43a53c], 9
mov dword [0x43a540], 0
mov eax, 0xffffffff
jmp 0x410b89
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], 0
test edx, edx
je 0x410b87
mov al, byte [esi + 0x43a838]
test al, 2
jne 0x410b87
test al, 0x48
je 0x410a0b
mov al, byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_nC]
cmp al, 0xa
je 0x410a0b
dec edx
mov byte [ecx], al
mov dword [ebp - 8], 1
mov byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_nC], 0xa
inc ecx
push 0
lea eax, [ebp - 0x10]
push eax
push edx
push ecx
push dword [esi*4 + 0x43a878]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x410a48
mov dword [0x43a53c], 9
mov dword [0x43a540], eax
mov eax, 0xffffffff
jmp 0x410b89
cmp eax, 0x6d
je 0x410b87
push eax
call fcn.004104b8
add esp, 4
mov eax, 0xffffffff
jmp 0x410b89
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov al, byte [esi + 0x43a838]
test al, 0x80
je 0x410b82
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], 0xa
jne 0x410a84
or al, 4
jmp 0x410a86
and al, 0xfb
mov ebx, dword [ebp + 0xc]
mov byte [esi + 0x43a838], al
mov edi, ebx
mov eax, dword [ebp - 8]
add eax, ebx
mov dword [ebp - 0xc], eax
cmp ebx, eax
jae 0x410b7c
mov al, byte [edi]
cmp al, 0x1a
je 0x410b6a
cmp al, 0xd
je 0x410ab7
inc edi
mov byte [ebx], al
jmp 0x410b5e
mov ecx, dword [ebp - 0xc]
dec ecx
cmp ecx, edi
jbe 0x410adb
lea ecx, [edi + 1]
cmp byte [ecx], 0xa
jne 0x410ad2
add edi, 2
mov byte [ebx], 0xa
jmp 0x410b5e
mov edi, ecx
mov byte [ebx], al
jmp 0x410b5e
inc edi
push 0
lea eax, [ebp - 0x10]
lea ecx, [ebp - 1]
mov dword [ebp - 8], 0
push eax
push 1
push ecx
push dword [esi*4 + 0x43a878]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410b09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410b5b
cmp dword [ebp - 0x10], 0
je 0x410b5b
test byte [esi + 0x43a838], 0x48
je 0x410b38
cmp byte [ebp - 1], 0xa
jne 0x410b29
mov byte [ebx], 0xa
jmp 0x410b5e
mov byte [ebx], 0xd
inc ebx
mov al, byte [ebp - 1]
mov byte [esi + str._n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_n_nC], al
jmp 0x410b5f
cmp dword [ebp + 0xc], ebx
jne 0x410b48
cmp byte [ebp - 1], 0xa
jne 0x410b48
mov byte [ebx], 0xa
jmp 0x410b5e
push 1
push 0xffffffffffffffff
push esi
call fcn.0040f328
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x410b5f
mov byte [ebx], 0xd
inc ebx
cmp edi, dword [ebp - 0xc]
jb 0x410aa1
jmp 0x410b7c
mov al, byte [esi + 0x43a838]
test al, 0x40
jne 0x410b7c
or al, 2
mov byte [esi + 0x43a838], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x410b89
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4111ee
Capabilities:
Clear file content

Disassembly:
push ebp
mov eax, 0x1008
mov ebp, esp
call fcn.00411620
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [0x43a830], esi
ja 0x41121f
mov dword [0x43a53c], 9
jmp 0x411316
push 1
push 0
push esi
call fcn.0040f328
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x411316
push 2
push 0
push esi
call fcn.0040f328
add esp, 0xc
cmp eax, 0xffffffff
je 0x411316
mov ecx, dword [ebp + 0xc]
mov ebx, ecx
sub ebx, eax
test ebx, ebx
jle 0x4112c3
lea edi, [ebp - 0x1008]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.004115a4
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebx, eax
jge 0x411283
mov eax, ebx
push eax
lea ecx, [ebp - 0x1008]
push ecx
push esi
call fcn.0040f15e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4112a1
sub ebx, eax
test ebx, ebx
jg 0x411278
jmp 0x4112b7
cmp dword [0x43a540], 5
jne 0x4112b4
mov dword [0x43a53c], 0xd
mov dword [ebp - 4], eax
push edi
push esi
call fcn.004115a4
add esp, 8
jmp 0x411303
jge 0x411303
push 0
push ecx
push esi
call fcn.0040f328
add esp, 0xc
push esi
call fcn.00410480
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ecx, ecx
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
jne 0x411303
mov dword [0x43a53c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x43a540], eax
push 0
push dword [ebp - 8]
push esi
call fcn.0040f328
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x41131b
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411dfc
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
test esi, esi
je 0x411fec
push 0x3d
push esi
call fcn.004120c6
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x411fec
cmp ebp, esi
je 0x411fec
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x43a568]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x43a564], ecx
jne 0x411e59
mov eax, dword [0x43a564]
push eax
call fcn.00412056
add esp, 4
mov dword [0x43a564], eax
cmp dword [0x43a564], 0
jne 0x411ee8
cmp dword [esp + 0x1c], 0
je 0x411e84
cmp dword [0x43a56c], 0
je 0x411e84
call fcn.00411a47
test eax, eax
je 0x411ee8
jmp 0x411fec
cmp dword [esp + 0x10], 0
je 0x411e92
xor eax, eax
jmp 0x411ff1
cmp dword [0x43a564], 0
jne 0x411ebd
push 4
call fcn.0040bf8d
add esp, 4
mov dword [0x43a564], eax
test eax, eax
je 0x411fec
mov eax, dword [0x43a564]
mov dword [eax], 0
cmp dword [0x43a56c], 0
jne 0x411ee8
push 4
call fcn.0040bf8d
add esp, 4
mov dword [0x43a56c], eax
test eax, eax
je 0x411fec
mov eax, dword [0x43a56c]
mov dword [eax], 0
mov edi, dword [0x43a564]
sub ebp, esi
push ebp
push esi
call fcn.00411ff9
add esp, 8
mov ebx, eax
test ebx, ebx
jl 0x411f3e
cmp dword [edi], 0
je 0x411f3e
cmp dword [esp + 0x10], 0
je 0x411f39
lea eax, [edi + ebx*4]
cmp dword [eax], 0
je 0x411f22
mov ecx, dword [eax + 4]
inc ebx
mov dword [eax], ecx
add eax, 4
cmp dword [eax], 0
jne 0x411f14
lea eax, [ebx*4]
push eax
push edi
call fcn.0040c10c
add esp, 8
test eax, eax
je 0x411f79
jmp 0x411f74
mov dword [edi + ebx*4], esi
jmp 0x411f79
cmp dword [esp + 0x10], 0
jne 0x411fe8
test ebx, ebx
jge 0x411f4f
neg ebx
lea eax, [ebx*4 + 8]
push eax
push edi
call fcn.0040c10c
add esp, 8
test eax, eax
je 0x411fec
lea ecx, [eax + ebx*4]
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov dword [0x43a564], eax
cmp dword [esp + 0x1c], 0
je 0x411fe4
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040bf8d
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x411fe4
mov edi, esi
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov ebp, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call ebp
push ebx
call fcn.0040c0a4
add esp, 4
xor eax, eax
jmp 0x411ff1
xor eax, eax
jmp 0x411ff1
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x401ae8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebx, section..text
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
sub ebx, 0x1000
mov dword [0x4028f4], ebx
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401b11
push esp
mov eax, str.contents
mov dword [ebp - 4], eax
lea eax, [0x401187]
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4028f4]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x67
push dword [0x4028f4]
call dword [sym.imp.USER32.dll_LoadBitmapA]
xor eax, eax
push eax
push dword [0x4028f4]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x402904], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x402904]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401bc9
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401bb0
pop ebp
ret 0x10

Function at 0x401820
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x401846
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4018da
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401895
cmp eax, 0x40
je 0x401895
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401839
cmp eax, 0x40
je 0x401839
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x401839
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x40b000
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47724b
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.0046bc6d
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b082
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046964d
mov eax, dword [eax]
push 0x4ad1e0
push eax
call fcn.0045bbb4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046bef8
test bl, bl
je 0x40b082
push 0x4ad1e0
lea ecx, [esp + 0xc]
call fcn.0046c288
push 0x4b0d54
lea ecx, [esp + 0xc]
call fcn.0046c288
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 0x40b0be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046bef8
jmp 0x40b189
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 0x40b142
lea edx, [esp + 0x7c]
push 0x4b0d50
push edx
call fcn.0045bbb4
add esp, 8
test eax, eax
je 0x40b142
lea eax, [esp + 0x7c]
push 0x4b0d4c
push eax
call fcn.0045bbb4
add esp, 8
test eax, eax
je 0x40b142
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 0x40b0d2
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.0046bef8
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 0x40b980
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 0x40b9e2
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 0x40b9f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4772cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bb95c]
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 0x40bb28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ba56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046bef8
xor eax, eax
jmp 0x40bb9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046c035
push esi
lea ecx, [esp + 0xc]
call fcn.0046c2c4
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 0x40bb7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.0040b980
test eax, eax
jne 0x40bb7d
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 bind
mov ecx, edi
call fcn.0040b980
test eax, eax
jne 0x40bb7d
lea eax, [esp + 0x14]
push 0x4b0d68
push eax
call fcn.0045cbf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bb5c
lea ecx, [esp + 0x14]
push 0x4b0d64
push ecx
call fcn.0045cb70
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bb5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bb5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046bfe5
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ba6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046bef8
xor eax, eax
jmp 0x40bb9f
mov byte [esi], 0
push 0x4b0d60
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.0046bef8
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 0x411ec6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x411eee
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3ac], eax
pop esi
add esp, 0x190
ret
Function at 0x41c040
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 0x41c0ae
cmp si, 0x69
ja 0x41c0ae
add esi, 0xffd0
cmp si, 0x11
je 0x41c07e
push 0x11
call edi
test ax, ax
jge 0x41c07e
or esi, 0x2000
cmp si, 0x10
je 0x41c093
push 0x10
call edi
test ax, ax
jge 0x41c093
or esi, 0x4000
cmp si, 0x12
je 0x41c0a8
push 0x12
call edi
test ax, ax
jge 0x41c0a8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41c0bb
mov esi, 0xbd
jmp 0x41c06f
cmp si, 0x6e
jne 0x41c0c8
mov esi, 0xbe
jmp 0x41c06f
cmp si, 0x6f
jne 0x41c069
mov esi, 0xbf
jmp 0x41c06f

Function at 0x41d760
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4cc050]
xor edx, edx
cmp eax, edx
jne 0x41d786
xor eax, eax
mov byte [eax + 0x4cbf50], al
inc eax
cmp eax, 0x100
jl 0x41d76e
mov dword [0x4cc050], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4cbf50
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d817
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 0x41d7ea
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 0x41d7b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d890
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 0x41d8e3
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 0x41d8ca
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