joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bd26
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41bd3f
or eax, 0xffffffff
jmp 0x41bda0
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41bd9c
push 0x3d
push esi
call fcn.0041af21
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41bd9c
cmp esi, eax
je 0x41bd9c
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4270ec]
sete cl
cmp eax, dword [0x4270f0]
mov dword [ebp - 8], ecx
jne 0x41bd82
mov edi, eax
call fcn.0041bcc5
mov dword [0x4270ec], eax
cmp eax, ebx
jne 0x41bddb
cmp dword [ebp + 0xc], ebx
je 0x41bda4
cmp dword [0x4270f4], ebx
je 0x41bda4
call fcn.0041afea
test eax, eax
je 0x41bddb
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41bdad
xor eax, eax
jmp 0x41bd9f
push 4
call fcn.00411be5
cmp eax, ebx
pop ecx
mov dword [0x4270ec], eax
je 0x41bd9c
mov dword [eax], ebx
cmp dword [0x4270f4], ebx
jne 0x41bddb
push 4
call fcn.00411be5
cmp eax, ebx
pop ecx
mov dword [0x4270f4], eax
je 0x41bd9c
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4270ec]
call fcn.0041bc78
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41be3c
cmp dword [esi], ebx
je 0x41be3c
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00411acd
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41be1f
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41be7d
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41be16
mov eax, edi
shl eax, 2
push eax
push dword [0x4270ec]
call fcn.00411c96
cmp eax, ebx
pop ecx
pop ecx
je 0x41be7d
jmp 0x41be78
cmp dword [ebp - 8], ebx
jne 0x41bee8
cmp edi, ebx
jge 0x41be4b
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4270ec]
call fcn.00411c96
cmp eax, ebx
pop ecx
pop ecx
je 0x41bd9c
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4270ec], eax
cmp dword [ebp + 0xc], ebx
je 0x41bed2
push dword [ebp - 4]
call fcn.004168a0
inc eax
inc eax
push eax
call fcn.00411be5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41bed2
push dword [ebp - 4]
push esi
call fcn.004167a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41becb
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00411acd
pop ecx
cmp dword [ebp - 8], ebx
je 0x41bee0
push dword [ebp - 4]
call fcn.00411acd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41bd9f
push dword [ebp - 4]
call fcn.00411acd
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41bda9
Function at 0x4019a1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
jb 0x4018c7
jae 0x4018c7
call 0x66b03e4e
inc eax
add byte [eax], al
and dword [0x406670], 0
mov eax, dword [ebp + 0xc]
mov dword [0x406c00], eax
pushf
jb 0x4018e4
je 0x4018df
jne 0x4018df
call fcn.00401bcb
add byte [edx - 0xc], dh
call 0x4018e6
jb 0x4018da
add esp, 4
popf
je 0x4018f0
jne 0x4018f0
call 0x40ac1995
add byte [ebx + 0x48030c4d], cl
cmp al, 0x89
or eax, 0x406c14
mov eax, dword [0x406c00]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [0x406c14], ecx
jl 0x401906
jge 0x401906
call 0x163f1974
add al, 0x50
inc eax
add byte [eax + 0x3c], ch
pushal
inc eax
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetModuleHandleA
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x406be8], eax
push 0xd23230
push dword [0x406be8]
call fcn.00401d0d
pop ecx
pop ecx
mov dword [0x406bfc], eax
jge 0x40193c
je 0x40193e
jne 0x40193e
call 0x30a912b5
pushal
inc eax
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetModuleHandleA
jne 0x401937
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x406bcc], eax
push 0xedd8440
push dword [0x406bcc]
call fcn.00401d0d
pop ecx
pop ecx
mov dword [0x406bd4], eax
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
jb 0x401970
jae 0x401970
call 0x3907a5dc
add bh, bh
xor eax, 0x406be8
push 0x38c78c
push dword [0x406be8]
call fcn.00401d0d
pop ecx
pop ecx
mov dword [0x406c24], eax
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [0x406948], 0x44
call 0x4019a1
call 0xc4c4028b
add al, 0xeb
add ebp, eax
call 0xe8430594
call 0x66b81f78
inc eax
add byte [edi], al
add byte [ecx], al
add bl, ch
add cl, ch
and byte [eax - 0x6a], ch
iretd

Function at 0x401b28
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [0x406670]
inc eax
mov dword [0x406670], eax
mov eax, dword [0x406c14]
movzx eax, word [eax + 6]
cmp dword [0x406670], eax
jge 0x401ba1
push 0
call dword [sym.imp.USER32.dll_OpenIcon]
call fcn.00401b28
call 0x84290411
add esp, 4
mov eax, dword [0x406c00]
add esp, 4
mov eax, dword [0x406c00]
mov eax, dword [eax + 0x3c]
mov ecx, dword [0x406670]
imul ecx, ecx, 0x28
add ecx, dword [ebp + 0xc]
lea eax, [ecx + eax + 0xf8]
mov dword [0x406c18], eax
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
jl 0x401b57
jmp 0x401b59
je 0x401b55
jge 0x401b5d
jmp 0x401b5f
jne 0x401b5b
jl 0x401b66
je 0x401b68
jne 0x401b68
call 0xab14de
je 0x401b61
push 0
mov eax, dword [0x406c18]
push dword [eax + 0x10]
mov eax, dword [0x406c18]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x14]
push ecx
mov eax, dword [0x406c14]
mov eax, dword [eax + 0x34]
mov ecx, dword [0x406c18]
add eax, dword [ecx + 0xc]
push eax
push dword [0x406990]
call dword [0x406db0]
jmp 0x401af7
push 0x406678
push dword [0x406994]
call dword [0x406bfc]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 4
mov eax, dword [0x406c14]
add eax, 0x34
push eax
mov eax, dword [0x40671c]
add byte [ebx - 0xaff740], al
xor eax, 0x406990
Function at 0x402d5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406200
cmp edx, dword [eax]
je 0x402d7f
add eax, 8
inc ecx
cmp eax, 0x406290
jl 0x402d70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406200]
jne 0x402ead
mov eax, dword [0x4069a8]
cmp eax, 1
je 0x402e87
test eax, eax
jne 0x402db0
cmp dword [0x406134], 1
je 0x402e87
cmp edx, 0xfc
je 0x402ead
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402de7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004033d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403550
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402e2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403550
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053b0
push edi
call fcn.00404270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004033d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004033e0
lea eax, [ebp - 0xa0]
push 0x405390
push eax
call fcn.004033e0
push dword [esi + 0x406204]
lea eax, [ebp - 0xa0]
push eax
call fcn.004033e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004041db
add esp, 0x2c
pop edi
jmp 0x402ead
lea eax, [ebp + 8]
lea esi, [esi + 0x406204]
push 0
push eax
push dword [esi]
call fcn.00403550
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 0x421560
Capabilities:
Parse pe header

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

Function at 0x433000
Capabilities:
Encode data using base64
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3f76756a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x7f697b07
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401014
Capabilities:
Terminate process

Disassembly:
jmp 0x40453c
push 0x14
push 0x40b130
call fcn.004010b4
push 1
call fcn.00401267
pop ecx
test al, al
je 0x404454
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401294
mov byte [ebp - 0x24], al
mov eax, dword [0x40c444]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x404454
test eax, eax
jne 0x404372
mov dword [0x40c444], ecx
push 0x40971c
push 0x409410
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x404355
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404444
push 0x40930c
push section..rdata
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x40c444], 2
jmp 0x404377
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040114f
pop ecx
call fcn.0040104b
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4043a8
push esi
call fcn.004010ff
pop ecx
test al, al
je 0x4043a8
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.00401023
mov esi, eax
cmp dword [esi], edi
je 0x4043c6
push esi
call fcn.004010ff
pop ecx
test al, al
je 0x4043c6
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov edi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov esi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
push edi
push esi
push dword [eax]
call fcn.0040128a
add esp, 0xc
mov esi, eax
call fcn.004012a3
test al, al
je 0x40445b
test bl, bl
jne 0x4043f9
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.00401159
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x404444
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0040118b
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.004012fd
jmp 0x4042e8

Function at 0x4012a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x4053e7
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405426
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405426
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405426
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405426
cmp dword [ecx + 0x74], 0xe
jbe 0x405426
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7c666912
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x50436046
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401530
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea edi, [ebp - 0x40]
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0xc
call fcn.00401f25
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x401572
push 3
call fcn.00401e50
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ecx + 8], 0
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x40
cmp ebp, esp
call fcn.00401de4
mov esp, ebp
pop ebp
ret

Function at 0x401680
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
push 0xc
call fcn.00401f25
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4016b2
push 3
call fcn.00401e50
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 4]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x44
cmp ebp, esp
call fcn.00401de4
mov esp, ebp
pop ebp
ret

Function at 0x403879
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a520
cmp edx, dword [eax]
je 0x40389b
add eax, 8
inc ecx
cmp eax, 0x40a5b0
jl 0x40388c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a520]
jne 0x4039c9
mov eax, dword [0x40b250]
cmp eax, 1
je 0x4039a3
test eax, eax
jne 0x4038cc
cmp dword [0x40a1d0], 1
je 0x4039a3
cmp edx, 0xfc
je 0x4039c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403903
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004050c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403946
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409488
push edi
call fcn.004063f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004050c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004050d0
lea eax, [ebp - 0xa0]
push 0x40a09c
push eax
call fcn.004050d0
push dword [esi + 0x40a524]
lea eax, [ebp - 0xa0]
push eax
call fcn.004050d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406365
add esp, 0x2c
pop edi
jmp 0x4039c9
lea eax, [ebp + 8]
lea esi, [esi + 0x40a524]
push 0
push eax
push dword [esi]
call fcn.00404660
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 0x4bbf20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x61092b
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.005ff9ae
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4bbfa2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005fc27a
mov eax, dword [eax]
push 0x7a4d94
push eax
call fcn.0057d064
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005ffc39
test bl, bl
je 0x4bbfa2
push 0x7a4d94
lea ecx, [esp + 0xc]
call fcn.00600015
push 0x7a4da0
lea ecx, [esp + 0xc]
call fcn.00600015
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 0x4bbfde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005ffc39
jmp 0x4bc0a9
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 0x4bc062
lea edx, [esp + 0x7c]
push 0x7a4d9c
push edx
call fcn.0057d064
add esp, 8
test eax, eax
je 0x4bc062
lea eax, [esp + 0x7c]
push 0x7a4d98
push eax
call fcn.0057d064
add esp, 8
test eax, eax
je 0x4bc062
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 0x4bbff2
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.005ffc39
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 0x4bc8c0
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 0x4bc922
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 0x4bc930
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x6109ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x7b6374]
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 0x4bca68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4bc996
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005ffc39
xor eax, eax
jmp 0x4bcadf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005ffdc2
push esi
lea ecx, [esp + 0xc]
call fcn.00600051
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x7a4dd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4bcabd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004bc8c0
test eax, eax
jne 0x4bcabd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004bc8c0
test eax, eax
jne 0x4bcabd
lea eax, [esp + 0x14]
push 0x7a4db0
push eax
call fcn.0057e440
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bca9c
lea ecx, [esp + 0x14]
push 0x7a4dac
push ecx
call fcn.0057e3c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bca9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4bca9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005ffd72
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4bc9ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005ffc39
xor eax, eax
jmp 0x4bcadf
mov byte [esi], 0
push 0x7a4da8
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.005ffc39
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 0x4d46e0
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 0x4d474e
cmp si, 0x69
ja 0x4d474e
add esi, 0xffd0
cmp si, 0x11
je 0x4d471e
push 0x11
call edi
test ax, ax
jge 0x4d471e
or esi, 0x2000
cmp si, 0x10
je 0x4d4733
push 0x10
call edi
test ax, ax
jge 0x4d4733
or esi, 0x4000
cmp si, 0x12
je 0x4d4748
push 0x12
call edi
test ax, ax
jge 0x4d4748
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4d475b
mov esi, 0xbd
jmp 0x4d470f
cmp si, 0x6e
jne 0x4d4768
mov esi, 0xbe
jmp 0x4d470f
cmp si, 0x6f
jne 0x4d4709
mov esi, 0xbf
jmp 0x4d470f

Function at 0x4d6380
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x87b148]
xor edx, edx
cmp eax, edx
jne 0x4d63a6
xor eax, eax
mov byte [eax + 0x87b048], al
inc eax
cmp eax, 0x100
jl 0x4d638e
mov dword [0x87b148], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x87b048
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4d6437
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 0x4d640a
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 0x4d63d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4d64b0
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 0x4d6503
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 0x4d64ea
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