joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424e11
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [ebp + 8], ebx
jne 0x424e31
push ebx
push ebx
push ebx
push 2
call fcn.00426c2d
xor al, al
jmp 0x424eee
push esi
call fcn.00424bb1
or dword [edi + 8], 0xffffffff
or dword [edi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call fcn.0043099a
push dword [ebp + 8]
call fcn.00431369
push ebx
push ebx
push dword [ebp + 8]
mov esi, eax
mov dword [ebp - 4], esi
call fcn.0043099a
add esp, 0x1c
cmp esi, ebx
jg 0x424e6f
push ebx
push ebx
push ebx
push 0xc
jmp 0x424e9c
inc esi
push esi
call fcn.00429119
push dword [ebp + 8]
mov esi, eax
push 1
push dword [ebp - 4]
mov byte [esi], bl
push esi
call fcn.004311af
add esp, 0x14
cmp eax, 1
je 0x424ea7
push esi
call fcn.0042892c
pop ecx
push ebx
push ebx
push ebx
push 2
mov ecx, edi
call fcn.00426c2d
xor al, al
jmp 0x424eed
mov edx, dword [ebp - 4]
mov byte [esi + edx], bl
mov ecx, esi
mov eax, esi
cmp byte [esi], bl
je 0x424ed0
mov dl, byte [ecx]
cmp dl, 0xd
jne 0x424ec8
mov byte [eax], 0xa
inc eax
inc ecx
cmp byte [ecx], 0xa
jne 0x424ecc
jmp 0x424ecb
mov byte [eax], dl
inc eax
inc ecx
cmp byte [ecx], bl
jne 0x424eb5
push dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 8]
push esi
call fcn.0042892c
xor eax, eax
cmp byte [edi + 0x2c], bl
pop ecx
sete al
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x428700
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x46d5f4], 0
push esi
jne 0x42866e
call fcn.00428582
test eax, eax
je 0x4286b1
mov eax, dword [0x46d5f4]
cmp eax, 1
jne 0x42868f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4286b1
pop esi
ret
push eax
call dword [0x46d5fc]
test eax, eax
jne 0x4286f9
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4286b5
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x46d5f4]
call dword [0x46d5fc]
mov edi, eax
test edi, edi
je 0x4286da
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4286f6
mov edi, esi
add esi, 0xff0
push edi
push dword [0x46d5f4]
call dword [0x46d5f8]
add edi, 0x10
cmp edi, esi
jb 0x4286e2
mov eax, edi
pop edi
pop esi
ret
jmp 0x42865b

Function at 0x429649
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46a470]
jne 0x429653
repz ret
jmp fcn.004341bc
Function at 0x44d005
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00432883
and dword [ebp - 4], 0
cmp dword [0x46e070], 0
mov ebx, eax
jne 0x44d0b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44d167
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x462ab0
push edi
call esi
test eax, eax
je 0x44d167
push eax
call fcn.00432811
mov dword [esp], 0x462aa0
push edi
mov dword [0x46e070], eax
call esi
push eax
call fcn.00432811
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46e074], eax
call esi
push eax
call fcn.00432811
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46e078], eax
call esi
push eax
call fcn.00432811
pop ecx
mov dword [0x46e080], eax
test eax, eax
je 0x44d0b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00432811
pop ecx
mov dword [0x46e07c], eax
mov eax, dword [0x46e07c]
cmp eax, ebx
je 0x44d10e
cmp dword [0x46e080], ebx
je 0x44d10e
push eax
call fcn.0043288c
push dword [0x46e080]
mov esi, eax
call fcn.0043288c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44d10e
test edi, edi
je 0x44d10e
call esi
test eax, eax
je 0x44d105
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44d105
test byte [ebp - 0xc], 1
jne 0x44d10e
or dword [ebp + 0x10], 0x200000
jmp 0x44d147
mov eax, dword [0x46e074]
cmp eax, ebx
je 0x44d147
push eax
call fcn.0043288c
pop ecx
test eax, eax
je 0x44d147
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44d147
mov eax, dword [0x46e078]
cmp eax, ebx
je 0x44d147
push eax
call fcn.0043288c
pop ecx
test eax, eax
je 0x44d147
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46e070]
call fcn.0043288c
pop ecx
test eax, eax
je 0x44d167
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44d169
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x456f8b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x45708e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x462dc8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x462dc8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x462dc8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x462dc8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x462dc8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x462dc8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x462dc8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x462dc8]
xor eax, edx
inc ecx
dec edi
jne 0x456fa6
pop edi
test esi, esi
je 0x4570b0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x462dc8]
xor eax, edx
inc ecx
dec esi
jne 0x457092
pop esi
pop ebx
not eax
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x4f16492
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x4b4a5bcb
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4030e4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x412008], 0x8088405
inc edx
mov dword [ebx + 0x412008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40a91f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404914
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.004067e4
mov edi, eax
cmp edi, 0x104
jbe 0x40a942
mov eax, edi
add eax, eax
call fcn.00402e04
mov esi, eax
jmp 0x40a944
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.004067e4
push edi
push esi
call fcn.0040687c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40a97d
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40a967
mov eax, esp
cmp esi, eax
je 0x40a98a
mov eax, esi
call fcn.00402e20
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40a9c4
cmp bl, 0
je 0x40a9c0
cmp bl, 0x41
jl 0x40a9bb
cmp bl, 0x5a
jg 0x40a9bb
or bl, 0x20
xor al, bl
inc esi
jmp 0x40a99f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40a904

Function at 0x40c5a0
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x417d98
mov eax, esi
mov edx, 8
test al, 1
je 0x40c5bc
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c5be
shr eax, 1
dec edx
jne 0x40c5af
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40c5a8
pop esi
ret

Function at 0x40c5d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x417d94], 0
jne 0x40c5f7
call fcn.0040c5a0
push 1
push 0x417d94
call fcn.004066b0
mov eax, edi
test esi, esi
je 0x40c622
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x417d98]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40c5fd
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x2c8c0
Capabilities:
Print debug messages

Disassembly:
mov ah, 0x27
add byte [eax], al
mov ah, 0x26
add byte [eax], al
mov ah, 0x29
add byte [eax], al
mov ah, 0x28
add byte [eax], al
mov ah, 0x2b
add byte [eax], al
mov ah, 0x2a
add byte [eax], al
mov ah, 0x2d
add byte [eax], al
mov ah, 0x2c
add byte [eax], al
mov ah, 0x2f
add byte [eax], al
mov ah, 0x2e
add byte [eax], al
mov ah, 0x31
add byte [eax], al
mov ah, 0x30
add byte [eax], al
mov ah, 0x33
add byte [eax], al
mov ah, 0x32
add byte [eax], al
mov ah, 0x35
add byte [eax], al
mov ah, 0x34
add byte [eax], al
mov ah, 0x3a
add byte [eax], al
mov ah, 0x37
add byte [eax], al
mov ah, 0x36
add byte [eax], al
mov ah, 0x39
add byte [eax], al
mov ah, 0x38
add byte [eax], al
mov ah, 0x3b
div edi
inc ebx
int 0xf7
test dword [ebx - 0x76], 0xed046ec4
mov eax, 0x7ec683d7
iretd
inc esp
xor esi, dword [eax + 0x76b229c7]
jae 0x2c853
outsb dx, byte [esi]
invalid

Function at 0x33ca0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
movzx eax, al
cmp eax, 1
jle 0x33ce1
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
movzx ecx, al
push ecx
push 0x3ef80
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push 0
push 0xe
push 0x3fc40
push 0x3ef70
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x18], 0x18
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x240
lea edx, [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x33d40
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
movzx eax, al
cmp eax, 1
jle 0x33d81
call dword [sym.imp.HAL.dll_KeGetCurrentIrql]
movzx ecx, al
push ecx
push 0x3ef80
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push 0
push 0x2a
push 0x3fc40
push 0x3ef70
call dword [sym.imp.ntoskrnl.exe_RtlAssert]
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [ebp - 0x18], 0x18
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x240
lea edx, [ebp - 0x20]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x33f50
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
jne 0x33fc7
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp dword [ebp - 4], 0
jne 0x33fa2
movzx edx, word [ebp - 0xc]
add edx, 2
push edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
jmp 0x3401a
movzx eax, word [ebp - 0xc]
add eax, 2
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x40000000
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
jmp 0x3401a
cmp dword [ebp - 4], 0
jne 0x33ff4
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
add edx, 2
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
jmp 0x3401a
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
add edx, 2
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push 0x40000000
call dword [sym.imp.ntoskrnl.exe_RtlWriteRegistryValue]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x34090
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push 0x20019
mov eax, dword [ebp + 8]
push eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00033ca0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x34157
mov edx, dword [ebp + 0x14]
add edx, 0x10
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x340f6
mov dword [ebp - 0x28], 0xc000009a
jmp 0x34157
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esp, 0x8b001410
push ebp
sbb byte [edx - 0x75], dl
inc ebp
adc al, 0x83
rcl byte [eax], 0x50

Function at 0x3460c
Capabilities:
Encode data using xor

Disassembly:
cmp dword [edx], ebx
jae 0x3463f
push esi
inc dword [edx]
mov esi, dword [edx]
push esi
push 3
pop eax
call fcn.0003454e
mov ecx, eax
shr ecx, 0xc
xor ecx, eax
and ecx, 0xfff
mov dword [edi + ecx*4 + 0x100000], esi
mov byte [edi + ecx + 0x104000], 1
cmp dword [edx], ebx
jb 0x34611
pop esi
ret
Function at 0x3522b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [esi + 0x124]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x128]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10c]
push ebx
mov ebx, dword [esi + 0x120]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x108]
push edi
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x1ac]
lea edi, [esi + 8]
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], eax
call fcn.00034896
test eax, eax
jne 0x353d3
push 2
pop eax
pop edi
pop ebx
leave
ret 4
cmp dword [ebp - 8], 0
jbe 0x353dc
mov eax, dword [edi + 0xc]
cmp eax, 2
jb 0x353ea
cmp dword [edi + 4], 0x10
jb 0x352c7
movzx ecx, word [edi + 2]
mov eax, dword [edi + 8]
xor dword [edi + 4], 0x10
mov dword [edi], ecx
movzx edx, word [eax]
shl edx, 0x10
or edx, ecx
mov ecx, dword [edi + 0xc]
add ecx, 0xfffffffe
add eax, 2
mov dword [edi], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, edx
shr eax, cl
and eax, 0x1f
lea eax, [esi + eax*4 + 0x12c]
movzx ecx, byte [eax]
add dword [edi + 4], ecx
movzx eax, word [eax + 2]
mov ecx, dword [edi + 4]
cmp eax, 0x10
jae 0x35328
and dword [ebp - 0x10], 0
test eax, eax
je 0x35322
mov ecx, dword [esi + eax*4 + 0x750]
mov edx, dword [ebp - 0x18]
mov word [edx + ecx*2], bx
mov ecx, eax
mov edx, 0x8000
shr edx, cl
mov dword [esi + eax*4 + 0x750], ebx
mov dword [ebp - 0x14], eax
lea eax, [esi + eax*2 + 0x7e2]
sub dword [ebp - 8], edx
inc word [eax]
inc ebx
jmp 0x353d0
xor ebx, ebx
cmp eax, 0x10
setne bl
shr edx, cl
push 3
mov dword [ebp - 0x1c], edx
inc ebx
mov edx, dword [ebx*4 + 0x160674]
and edx, dword [ebp - 0x1c]
inc ebx
add ecx, ebx
xor ebx, ebx
mov dword [edi + 4], ecx
pop ecx
cmp eax, 0x10
jne 0x35356
mov ebx, dword [ebp - 0x14]
push 2
pop ecx
cmp dword [ebp - 4], ebx
je 0x35362
xor eax, eax
mov dword [ebp - 4], ebx
jmp 0x35365
mov eax, dword [ebp - 0x10]
mov ebx, eax
test eax, eax
jbe 0x35370
add eax, 0xfffffffe
shl eax, cl
lea edx, [eax + edx + 3]
mov dword [ebp - 0x10], edx
sub edx, ebx
mov ebx, dword [ebp - 0xc]
lea eax, [edx + ebx]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp + 8]
ja 0x353e1
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x353ce
mov eax, dword [esi + ecx*4 + 0x750]
add eax, eax
mov ecx, dword [ebp - 0x18]
mov word [eax + ecx], bx
mov ecx, ebx
lea eax, [ebx + ebx]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jne 0x35397
mov eax, dword [ebp - 4]
mov dword [esi + eax*4 + 0x750], ecx
push 0xf
pop ecx
sub ecx, eax
mov eax, edx
shl eax, cl
sub dword [ebp - 8], eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*2 + 0x7e2]
add word [eax], dx
jmp 0x353d0
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, dword [ebp + 8]
jb 0x35285
xor eax, eax
inc eax
jmp 0x3540e
mov dword [ebp - 8], 0xfffff
jmp 0x353dc
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x124], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10c], eax
mov eax, dword [ebp - 4]
push 2
mov dword [esi + 0x108], eax
mov dword [esi + 0x120], ebx
pop eax
mov ecx, dword [ebp - 8]
mov dword [esi + 0x128], ecx
jmp 0x3527f
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x461020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403088
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403068
xor eax, eax
push ebp
push 0x403061
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 0x4030a4
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 0x403068
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x461020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x461020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d54
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46304c], 0
je 0x403db5
cmp word [0x463220], 0xd7b2
jne 0x403d7d
cmp dword [0x463228], 0
jbe 0x403d7d
mov eax, 0x46321c
call dword [0x463238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46106c
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 0x403ddc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x461030], 0
jne 0x403dd1
push 0
push 0x461064
push 0x46106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405cf8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d5e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404140
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d48
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d65
lea eax, [ebp - 0x10]
call fcn.00403ed0
ret

Function at 0x40ae3c
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 0x40ae75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403fc0
jmp 0x40ae7e
mov eax, ebx
mov edx, esi
call fcn.00403f24
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae88
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 0x40aea9
mov al, byte [esp]
jmp 0x40aeab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b530
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b3a8
mov eax, dword [0x4628fc]
cmp byte [eax], 0
je 0x40b5ac
mov eax, dword [0x462654]
call fcn.00402a14
call fcn.004028ac
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040867c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b5f4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b5e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4625e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x463668]
call fcn.004051f0
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