joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493040
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x493048
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x49323a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x493250
mov eax, esi
call fcn.00497e10
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0042f538
lea ecx, [ebp - 0x10]
mov edx, 0x493264
mov eax, esi
call fcn.00497e10
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0042f538
lea ecx, [ebp - 0x14]
mov edx, 0x49327c
mov eax, esi
call fcn.00497e10
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0042f538
lea ecx, [ebp - 0x18]
mov edx, 0x493298
mov eax, esi
call fcn.00497e10
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0042f538
lea ecx, [ebp - 0x1c]
mov edx, 0x4932b4
mov eax, esi
call fcn.00497e10
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0042f538
lea ecx, [ebp - 0x24]
mov edx, 0x4932cc
mov eax, esi
call fcn.00497e10
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0041d5fc
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0041dbd0
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4932e4
mov eax, esi
call fcn.00497e10
mov eax, dword [ebp - 0x28]
call fcn.0049951c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4932f4
mov eax, esi
call fcn.00497e10
mov eax, dword [ebp - 0x2c]
call fcn.0049951c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x49330c
mov eax, esi
call fcn.00497e10
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0041dbd0
inc eax
je 0x4931dd
lea ecx, [ebp - 0x34]
mov edx, 0x49330c
mov eax, esi
call fcn.00497e10
mov eax, dword [ebp - 0x34]
call fcn.0041db94
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
movzx edx, word [ebp - 4]
movzx eax, word [ebp - 8]
call fcn.0041f3ac
fstp qword [ebp - 0x3c]
wait
call fcn.0041f714
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4931f8
lea ecx, [ebp - 0x40]
mov edx, 0x49330c
mov eax, esi
call fcn.00497e10
mov eax, dword [ebp - 0x40]
call fcn.0049951c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x49331c
mov eax, esi
call fcn.00497e10
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0042f538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493241
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0042f508
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0042f508
ret
Function at 0x498b40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x498bb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.0042fc04
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x498b7a
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx]
call fcn.0042f974
push eax
push esi
call sub.KERNEL32.DLL_GetTempPathA
mov edx, ebx
xchg edx, eax
call fcn.0042fc04
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.004987fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498bb7
lea eax, [ebp - 8]
call fcn.0042f4e4
ret

Function at 0x4a2cac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4a2d06
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004a2c9c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00482f1c
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00482b14
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2d0d
lea eax, [ebp - 4]
call fcn.0042f4e4
ret

Function at 0x4a6cb8
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x4cdd28
call fcn.004afeb0
mov word [ebp - 0x18], 0xc
mov edx, 0x4ce22c
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.004ab848
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4a6d05
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.004aa02c
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4a6d08
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ac658
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x4cf1a0
call fcn.004afeb0
mov word [ebp - 0x18], 0xc
mov edx, 0x4cf528
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.004ab848
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4ac6a5
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.004aa02c
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4ac6a8
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4b0d3c
call fcn.004b1e90
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4b0d5b
test bl, 1
je 0x4b0d5b
call fcn.004b7e8c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4b4b0c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004afadc
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004afb6c
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004afb6c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4d1339
lea ecx, [ebp - 0x200]
push ecx
call fcn.004afadc
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004afb6c
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004b5ea8
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4b4c1d
push esi
call fcn.004afb6c
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004afb6c
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004af734
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4b4bf4
xor eax, eax
jmp 0x4b4ca4
push esi
call fcn.004afb6c
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004afb6c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004afa34
add esp, 0xc
jmp 0x4b4c5d
mov edi, dword [ebx + 0x24]
push edi
call fcn.004afb6c
pop ecx
push eax
push esi
call fcn.004afb6c
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004afb6c
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004af754
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4b4c5d
xor eax, eax
jmp 0x4b4ca4
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004afadc
add esp, 8
push 0x4d133b
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004afadc
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004afadc
add esp, 8
push 0x4d133d
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004afadc
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4b7e4d
jmp 0x4b7e84
call fcn.004b7dd0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004afb6c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004afb6c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b7f08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d196c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4b7fe2
cmp dword [0x4d1968], 0
jne 0x4b7fe2
cmp dword [0x4d1b4c], 0
je 0x4b7f9c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004b7cd0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b7f82
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004b7cd0
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b7f82
lea ebx, [ebp - 0x84]
jmp 0x4b7f83
inc ebx
call fcn.004b7ec0
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4b801d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d1970
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004afb6c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d1973
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4b801d
cmp dword [0x4d1968], 0
je 0x4b7ffc
cmp dword [0x4d1968], 0xffffffff
je 0x4b801d
push esi
call dword [0x4d1968]
pop ecx
mov eax, dword [0x4d196c]
test eax, eax
je 0x4b801d
cmp dword [0x4d196c], 0xffffffff
je 0x4b801d
cmp byte [eax], 0
je 0x4b801d
push esi
push eax
call fcn.004b7e20
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b87b4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4da1dc], 0
jne 0x4b8835
cmp dword [0x4da1fc], 0
jne 0x4b87e4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4da1fc], eax
test eax, eax
jne 0x4b87e4
push str.GetEnvironmentStrings_failed
call fcn.004b8034
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4da1fc]
jmp 0x4b87f8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004afb6c
pop ecx
mov edi, eax
test eax, eax
jne 0x4b87f0
lea edi, [ebp + 1]
push edi
call fcn.004af734
pop ecx
mov ebx, eax
mov dword [0x4da1e0], ebx
test ebx, ebx
jne 0x4b8822
xor eax, eax
jmp 0x4b88f8
push edi
mov edx, dword [0x4da1fc]
push edx
push ebx
call fcn.004af9a0
add esp, 0xc
jmp 0x4b8855
xor esi, esi
mov ebx, dword [0x4da1dc]
jmp 0x4b884f
push eax
call fcn.004afb6c
pop ecx
test eax, eax
jne 0x4b884b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b883f
lea ebx, [esi + 4]
push 4
mov dword [0x4da1e4], ebx
inc ebx
push ebx
call fcn.004af3f4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4b8878
xor eax, eax
jmp 0x4b88f8
cmp dword [0x4da1dc], 0
jne 0x4b88a9
xor esi, esi
mov ebx, dword [0x4da1e0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4b889a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004afb6c
pop ecx
mov edi, eax
test eax, eax
jne 0x4b8890
jmp 0x4b88da
xor esi, esi
mov ebx, dword [0x4da1dc]
mov eax, dword [esp]
mov edi, eax
jmp 0x4b88d4
push eax
call fcn.004afb6c
pop ecx
test eax, eax
je 0x4b88c9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4b88cd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b88b8
mov eax, dword [0x4da1dc]
test eax, eax
je 0x4b88ea
push eax
call fcn.004af744
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4da1dc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406890
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x467dfb
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.0045cc38
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406912
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ab87
mov eax, dword [eax]
push 0xafb1c0
push eax
call fcn.0044d014
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045cec3
test bl, bl
je 0x406912
push 0xafb1c0
lea ecx, [esp + 0xc]
call fcn.0045d253
push 0xafed18
lea ecx, [esp + 0xc]
call fcn.0045d253
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 0x40694e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045cec3
jmp 0x406a19
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 0x4069d2
lea edx, [esp + 0x7c]
push 0xafed14
push edx
call fcn.0044d014
add esp, 8
test eax, eax
je 0x4069d2
lea eax, [esp + 0x7c]
push 0xafed10
push eax
call fcn.0044d014
add esp, 8
test eax, eax
je 0x4069d2
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 0x406962
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.0045cec3
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 0x407210
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 0x407272
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 0x407280
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x467e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xb05470]
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 0x4073b8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4072e6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045cec3
xor eax, eax
jmp 0x40742f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045d000
push esi
lea ecx, [esp + 0xc]
call fcn.0045d28f
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 0x40740d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00407210
test eax, eax
jne 0x40740d
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.00407210
test eax, eax
jne 0x40740d
lea eax, [esp + 0x14]
push 0xafed2c
push eax
call fcn.0044e050
mov esi, eax
add esp, 8
test esi, esi
jne 0x4073ec
lea ecx, [esp + 0x14]
push 0xafed28
push ecx
call fcn.0044dfd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4073ec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4073ef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045cfb0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4072fe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045cec3
xor eax, eax
jmp 0x40742f
mov byte [esi], 0
push 0xafed24
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.0045cec3
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 0x417980
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 0x4179ee
cmp si, 0x69
ja 0x4179ee
add esi, 0xffd0
cmp si, 0x11
je 0x4179be
push 0x11
call edi
test ax, ax
jge 0x4179be
or esi, 0x2000
cmp si, 0x10
je 0x4179d3
push 0x10
call edi
test ax, ax
jge 0x4179d3
or esi, 0x4000
cmp si, 0x12
je 0x4179e8
push 0x12
call edi
test ax, ax
jge 0x4179e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4179fb
mov esi, 0xbd
jmp 0x4179af
cmp si, 0x6e
jne 0x417a08
mov esi, 0xbe
jmp 0x4179af
cmp si, 0x6f
jne 0x4179a9
mov esi, 0xbf
jmp 0x4179af

Function at 0x419060
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xb15aa8]
xor edx, edx
cmp eax, edx
jne 0x419086
xor eax, eax
mov byte [eax + 0xb159a8], al
inc eax
cmp eax, 0x100
jl 0x41906e
mov dword [0xb15aa8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xb159a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419117
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 0x4190ea
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 0x4190b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x419190
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 0x4191e3
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 0x4191ca
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