joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x408040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40256c
cmp byte [esi + 0x3d], 0
je 0x40256c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40255a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x402521
sub eax, 1
je 0x402525
sub eax, 2
jne 0x40255a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402fc2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402543
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40255a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402fc2
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402fc2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00402fc2
mov esp, ebp
pop ebp
ret

Function at 0x403a88
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7c000]
push edi
jmp 0x4bee9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4beea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bee90
mov eax, 1
add ebx, ebx
jne 0x4beeb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4beec4
jne 0x4beee3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4beee3
dec eax
add ebx, ebx
jne 0x4beed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4beea8
add ebx, ebx
jne 0x4beedf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4bef35
xor ecx, ecx
sub eax, 3
jb 0x4beefb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bef6a
sar eax, 1
mov ebp, eax
jmp 0x4bef06
add ebx, ebx
jne 0x4bef06
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4beed4
inc ecx
add ebx, ebx
jne 0x4bef14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4beed4
add ebx, ebx
jne 0x4bef21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bef16
jne 0x4bef32
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bef16
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bef54
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bef46
jmp 0x4bee96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bef54
add edi, ecx
jmp 0x4bee96
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4bef72
cmp byte [edi], 0x13
jne 0x4bef72
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4bef77
lea edi, [esi + 0xba000]
mov eax, dword [edi]
or eax, eax
je 0x4befef
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcc508]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcc65c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4befa4
mov ecx, edi
jns 0x4befd3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcc660]
or eax, eax
je 0x4befe9
mov dword [ebx], eax
add ebx, 4
jmp 0x4befc1
call dword [esi + 0xcc670]
mov ebp, dword [esi + 0xcc664]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4bf023
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x9975cc
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x9975d2
pop ebp
sub ebp, 6
sub ebp, 0x5975cc
jmp 0x997630
jmp 0x997639
mov eax, 0x5975cc
add eax, ebp
add eax, 0x93
mov ecx, 0x5cc
mov edx, 0x62ba0a59
xor byte [eax], dl
inc eax
dec ecx
jne 0x997650
jmp 0x997663
rcl byte [edx + edx*8 + 0x595965d0], cl
pop ecx
fcomp dword [eax + 0x595959a1]
pop edx
xchg esp, eax
loope 0x9976d2
pop ecx
pop ecx
pop ecx
jecxz 0x9976eb
pop ecx
pop ecx
pop ecx
scasb al, byte es:[edi]
mov ebx, 0xd8d2915a
push ebp
pop ecx
pop ecx
pop ecx
pop edx
pushfd
or dword [ecx], ecx
xor dword [0x31595467], edi
outsb dx, byte ds:[esi]
adc eax, 0x7d755859
xor dword [ebp - 0x80], ebp
div dword [esi - 0x4f]
pop esp
pop ecx
pop ecx
pop ecx
mov al, 0x71
pop ecx
pop ecx
pop ecx
or al, 0xd
add al, 0xd2
fcom qword [ecx + 0x59]
pop ecx
pop ecx
ror ah, cl
push ebp
pop ecx
pop ecx
pop ecx
rcl ah, cl
dec ecx
pop ecx
pop ecx
pop ecx
cwde
mov al, 0x5b
push 0x5d9bda5b
adc byte [esi - 0x24], dl
lodsd eax, dword [esi]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
add al, 0x9b
push ebp
pop ecx
rcl ch, cl
jge 0x997730
pop ebp
pop ecx
pop ecx
pop ecx
xor dword [0x31595467], edi
outsb dx, byte ds:[esi]
adc eax, 0x7d755859
or byte [ecx + 0x5959595c], dh
mov al, 0x12
pop ebx
pop ecx
pop ecx
or al, 0xd
add al, 0xa6
sub al, 0x55
cmpsb byte [esi], byte es:[edi]
sub al, 0x51
mov cl, 0x27
pop ecx
pop ecx
pop ecx
shl ah, cl
push ecx
pop ecx
pop ecx
pop ecx
fsubr dword [eax - 0x6dd1aded]
fsubr dword [eax - 0x6dd1aded]
push 0xffffffffffffff90
fsubr dword [ebx + 0x485a0f01]
fsubr dword [ebx + 0x485a0f01]
push 0xffffffffffffff8b
fidiv dword [ecx - 0x22a9eea4]
pop ss
pop ecx
pop ecx
pop ecx
push esi
rcl dword [ecx]
pop ecx
pop ecx
pop ecx
aas
rol byte [ebp + 0x60], cl
inc ebp
pushal
fldenv [edx + 0x43dd56b1]
pop ecx
pop ecx
pop ecx
fldenv [edx + 0x48dd56b0]
pop ecx
pop ecx
pop ecx
aas
fsub dword [edx - 0x22a9835a]
dec esp
pop ecx
pop ecx
pop ecx
sbb byte [eax - 0x5959596b], dh
jo 0x99776c
pushal
pop eax
ficomp dword [eax + 0x5db1da5c]
mov al, 0xe4
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
jo 0x997773
pushal
pop ebx
ficomp dword [eax + 0x5db3da5f]
mov bl, 0x5d
fidiv dword [ecx - 0x590d4fa4]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
add al, 0x9b
push ebp
pop ecx
or al, 0xd2
mov ch, 0xf
push cs
or al, 0xd2
sub al, 0x55
shl byte [ecx + edx*2], cl
movsd dword es:[edi], dword [esi]
jmp 0x997762
Function at 0x7b05ac
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x7b05b4
push ecx
push ebx
push esi
mov ebx, edx
mov esi, dword [0x7d5d68]
xor eax, eax
push ebp
push 0x7b07f7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi], 0
je 0x7b05e3
mov eax, 0x7b0810
call 0x773adc
mov eax, ebx
call fcn.0040a984
lea edx, [ebp - 0x60]
mov eax, 0x7b0840
call 0x530cbc
mov edx, dword [ebp - 0x60]
lea eax, [ebp - 0x18]
call 0x43b8d4
cmp byte [esi], 0
je 0x7b0611
mov eax, 0x7b0884
call 0x773adc
push 0
push 0
push 0x7b08e0
push 0x7b0904
push 0x7b0918
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x70]
push eax
call 0x435b50
add esp, 0x1c
lea edx, [ebp - 0x70]
lea eax, [ebp - 0x28]
call 0x43ba0c
cmp byte [esi], 0
je 0x7b064e
mov eax, 0x7b093c
call 0x773adc
push 0x20
push 0x7b097c
push 0x7b0990
push 0x7b09cc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x80]
push eax
call 0x435b50
add esp, 0x18
lea edx, [ebp - 0x80]
lea eax, [ebp - 0x38]
call 0x43ba0c
cmp byte [esi], 0
je 0x7b0689
mov eax, 0x7b09e8
call 0x773adc
push 0x7b0a3c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x94]
push eax
call 0x435b50
add esp, 0xc
lea edx, [ebp - 0x94]
lea eax, [ebp - 0x84]
call 0x43b3a8
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 4]
mov ecx, 0x7b0a48
call 0x40e770
cmp byte [esi], 0
je 0x7b06d4
mov eax, 0x7b0a64
call 0x773adc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
jne 0x7b0765
cmp byte [esi], 0
je 0x7b06fa
mov eax, 0x7b0a98
call 0x773adc
push 0x7b0abc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0xa8]
push eax
call 0x435b50
add esp, 0xc
lea edx, [ebp - 0xa8]
lea eax, [ebp - 0x98]
call 0x43acb0
mov eax, dword [ebp - 0x98]
mov edx, ebx
call 0x42454c
cmp byte [esi], 0
je 0x7b0752
mov ecx, dword [ebx]
lea eax, [ebp - 0xac]
mov edx, 0x7b0ad8
call 0x40ba3c
mov eax, dword [ebp - 0xac]
call 0x773adc
lea eax, [ebp - 0x58]
call 0x435a54
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x58]
call 0x43ba0c
cmp byte [esi], 0
je 0x7b0774
mov eax, 0x7b0af4
call 0x773adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7b07fe
lea eax, [ebp - 0xac]
call fcn.0040a984
lea eax, [ebp - 0xa8]
call 0x435a68
lea eax, [ebp - 0x98]
call fcn.0040a984
lea eax, [ebp - 0x94]
call 0x435a68
lea eax, [ebp - 0x84]
call 0x40e72c
lea eax, [ebp - 0x80]
mov edx, dword [0x4012f0]
mov ecx, 2
call 0x40c27c
lea eax, [ebp - 0x60]
call 0x40e72c
lea eax, [ebp - 0x58]
call 0x435a68
lea eax, [ebp - 0x48]
mov edx, dword [0x401300]
mov ecx, 4
call 0x40c27c
lea eax, [ebp - 4]
call 0x40e72c
ret
Function at 0x8e4b60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3a3000]
mov dword [edi + 0x3c8c18], 0x4f505dc8
push edi
or ebp, 0xffffffff
jmp 0x8e4b8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8e4b91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e4b80
mov eax, 1
add ebx, ebx
jne 0x8e4ba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8e4bb4
jne 0x8e4bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e4bd3
dec eax
add ebx, ebx
jne 0x8e4bc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8e4b98
add ebx, ebx
jne 0x8e4bcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8e4c25
xor ecx, ecx
sub eax, 3
jb 0x8e4beb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8e4c5a
sar eax, 1
mov ebp, eax
jmp 0x8e4bf6
add ebx, ebx
jne 0x8e4bf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e4bc4
inc ecx
add ebx, ebx
jne 0x8e4c04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8e4bc4
add ebx, ebx
jne 0x8e4c11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8e4c06
jne 0x8e4c22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8e4c06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8e4c44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8e4c36
jmp 0x8e4b86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8e4c44
add edi, ecx
jmp 0x8e4b86
pop esi
mov edi, esi
mov ecx, 0x12829
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8e4c62
cmp byte [edi], 0xb7
jne 0x8e4c62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8e4c67
lea edi, [esi + 0x4e0000]
mov eax, dword [edi]
or eax, eax
je 0x8e4cd6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x527fdc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x528108]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8e4c94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x52810c]
or eax, eax
je 0x8e4cd0
mov dword [ebx], eax
add ebx, 4
jmp 0x8e4cb1
call dword [esi + 0x52811c]
mov ebp, dword [esi + 0x528110]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8e4d0a
sub esp, 0xffffff80
jmp fcn.007c8904
Function at 0x4028dc
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402919
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402939
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004047e4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4036a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403738
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403718
xor eax, eax
push ebp
push 0x403711
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403754
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403718
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404400
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x404461
cmp word [0x46621c], 0xd7b2
jne 0x404429
cmp dword [0x466224], 0
jbe 0x404429
mov eax, 0x466218
call dword [0x466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x464054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404488
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46401c], 0
jne 0x40447d
push 0
push 0x464074
push 0x464054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409920
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409959
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040466c
jmp 0x409962
mov eax, ebx
mov edx, esi
call fcn.004045d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40996c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40998d
mov al, byte [esp]
jmp 0x40998f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a014
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409e8c
mov eax, dword [0x465044]
cmp byte [eax], 0
je 0x40a07c
mov eax, dword [0x464e80]
call fcn.00402dc0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004089d8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a0c4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a0b2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x464e34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466714]
call fcn.00405c68
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40ab1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ab80
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047e4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408718
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ab87
lea eax, [ebp - 0xc]
call fcn.0040457c
ret
Function at 0x41c924
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466a20
cmp dword [edi], 0
jne 0x41c9a0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4644c0
mov ecx, 2
call fcn.00402974
mov edx, 0x41c8fc
lea eax, [esi + 5]
call fcn.0041c91c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c91c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41c975
mov dword [0x466a1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41dbac
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41dbb2
ret

Function at 0x4200a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4200f9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4200e0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4200d0
jmp 0x4200f9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4200e1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432870
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x4327bc
call sub.user32.dll_EnumWindows
ret

Function at 0x432994
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x432a11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004323e0
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4329b9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00432038
cmp dword [ebp - 4], 0
je 0x4329fb
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404a2c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432a18
lea eax, [ebp - 4]
call fcn.0040457c
ret

Function at 0x435ac4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x466bb0], 0
je 0x435c13
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x464fec]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x435c13
mov eax, dword [0x466bb4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x466bb0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x435be2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x466bb0]
call fcn.00413f48
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x435bda
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x435bda
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x435bda
mov eax, dword [ebp - 0x14]
call fcn.0043e5dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x435bda
push ebp
call fcn.00435a80
pop ecx
test al, al
jne 0x435bda
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x435b96
mov eax, dword [ebp - 0x14]
call fcn.0043d170
dec eax
jle 0x435bda
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403a24
cmp byte [ebp - 1], 0
je 0x435bda
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x435bda
mov edx, dword [ebp - 0x14]
mov eax, dword [0x466bb4]
call fcn.00435248
inc edi
dec ebx
jne 0x435b29
mov eax, dword [0x466bb4]
cmp dword [eax + 8], 0
jle 0x435bfa
mov eax, dword [0x466bb4]
call fcn.004352d8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x435c13
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004358e8
pop ecx
test al, al
jne 0x435c13
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret