joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b900
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.0044d000
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov ebp, eax
mov dword [esp + 0x18], esi
call dword [0x58bd2c]
add esp, 8
test ebp, ebp
je 0x44b9e7
test eax, eax
je 0x44b9e7
inc eax
push ebx
push eax
call fcn.00455f1c
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00456070
mov esi, eax
add esp, 0xc
test esi, esi
je 0x44b97b
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44b9cf
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x44b9bc
cmp eax, 0xea
jne 0x44b9c4
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00455ec2
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x114
ret

Function at 0x44ba00
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x24c
test eax, eax
push esi
jne 0x44ba2b
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x44ba58
pop esi
add esp, 0x24c
ret
mov esi, dword [esp + 0x258]
push esi
call dword [0x58bd2c]
add esp, 4
test eax, eax
jne 0x44ba48
pop esi
add esp, 0x24c
ret
mov cl, byte [esi]
mov byte [esp + 9], 0x3a
mov byte [esp + 8], cl
mov byte [esp + 0xa], 0x5c
lea edx, [esp + 0x10c]
xor esi, esi
push 0x40
push edx
push esi
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x160]
push 0x104
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x44baad
lea eax, [esp + 0x14c]
push eax
call dword [0x58bd2c]
lea ecx, [esp + 0x150]
push eax
push ecx
call fcn.0044ccf0
add esp, 0xc
mov esi, eax
mov eax, esi
pop esi
add esp, 0x24c
ret
Function at 0x44bac0
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x114
test eax, eax
push esi
jne 0x44bae5
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44bb4f
jmp 0x44bb05
mov esi, dword [esp + 0x120]
push esi
call dword [0x58bd2c]
add esp, 4
test eax, eax
je 0x44bb4f
mov cl, byte [esi]
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x14], cl
lea edx, [esp + 8]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x2a], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x44bb4f
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
imul edx, dword [esp + 4]
push 0x400
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop esi
add esp, 0x114
ret
or eax, 0xffffffff
pop esi
add esp, 0x114
ret

Function at 0x44bb60
Capabilities:
Get common file path
Get disk size

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x11c
test eax, eax
push esi
jne 0x44bb85
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44bbe2
jmp 0x44bba5
mov esi, dword [esp + 0x128]
push esi
call dword [0x58bd2c]
add esp, 4
test eax, eax
je 0x44bbe2
mov cl, byte [esi]
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1c], cl
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x2e], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x44bbe2
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, 0xa
call fcn.004560a0
pop esi
add esp, 0x11c
ret
or eax, 0xffffffff
pop esi
add esp, 0x11c
ret
Function at 0x44bbf0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x44bc70
push edi
call dword [0x58bd2c]
add esp, 4
test eax, eax
jbe 0x44bc70
test esi, esi
je 0x44bc2e
cmp esi, 0xffffffff
je 0x44bc2e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x44bcb2
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x44bc5c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x44bc70
jmp 0x44bc6b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x44bc70
mov ebp, 1
test esi, esi
je 0x44bcb2
cmp esi, 0xffffffff
je 0x44bcb2
test ebp, ebp
jne 0x44bce9
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x44bcbf
call edi
test eax, eax
je 0x44bcb2
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x44bce9
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x44bc9a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x44bcb2
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x44bce9
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x44bccc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x58bd2c]
inc eax
push eax
call fcn.00448a80
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

Function at 0x44bd50
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret

Function at 0x44e19e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x44e1ca
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004543d4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x44e1db
push ebx
call fcn.004543ce
add esp, 4
pop eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44e243
mov ecx, dword [eax + 4]
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x44e243
mov edx, ebx
mov esp, ecx
or bh, bl
cmp edx, 0xff
cmovbe edx, ebx
mov ebx, edx
and esp, 0xfffffffc
shl ebx, 0x10
sub ecx, esp
or bx, dx
cmp edx, 0xffff
cmovbe edx, ebx
lea ebx, [eax + 8]
test esp, esp
je 0x44e224
add esp, ebx
xor dword [ebx], edx
add ebx, 4
cmp esp, ebx
jne 0x44e21b
test ecx, ecx
je 0x44e243
xor byte [ebx], dl
test ecx, 2
je 0x44e243
xor byte [ebx + 1], dh
test ecx, 1
je 0x44e243
shr edx, 0x10
xor byte [ebx + 2], dl
leave
ret 8
Function at 0x44e27e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x7fff
push 1
mov ebx, 0x184
call fcn.00454b40
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x44e2ca
push ebx
call fcn.004543ce
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x7fff
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x44e304
push 0x4f
push 0x402e875
push 6
call fcn.004543da
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x44e31b
mov eax, 0
jmp 0x44e374
push 0x80000301
push 0
push dword [ebp - 8]
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x44e338
mov eax, 0x58bfc1
push eax
push 2
mov ebx, 0x134
call fcn.00454b80
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x44e364
push ebx
call fcn.004543ce
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, 1
jmp 0x44e374
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x44e385
push ebx
call fcn.004543ce
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x452d42
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
inc eax
push dword [eax]
pop word [ebp - 4]
cmp dword [ebp - 4], 0xc25e
je 0x452d77
cmp dword [ebp - 4], 0xc35e
je 0x452d77
jmp 0x452d7a
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x452d5c
cmp dword [ebp - 4], 0xc25e
jne 0x452e1a
push eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x452dcd
push 0x1c8
push 0x40100a7
push 6
call fcn.004543da
add esp, 0xc
pop eax
push 0x9090c35e
pop dword [eax]
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push 4
push dword [ebp - 8]
push 0xffffffff
xor eax, eax
call dword [sym.imp.kernel32.dll_VirtualProtectEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x452e1a
push 0x261
push 0x40100a7
push 6
call fcn.004543da
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x455890
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x474698
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x58dfe8]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], 0x41
mov dword [esp + 0x2c], 0x1a
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0x58cab8
push edx
call fcn.0046ea54
mov esi, dword [esp + 0x34]
add esp, 0xc
test esi, esi
jne 0x455908
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x455901
jmp dword [eax*4 + 0x45598c]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, esi
jne case.default.0x455901
push 3
call fcn.00456561
mov edi, dword [esp + 0x14]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
add ebx, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
jne 0x4558cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.0046f820
mov ecx, dword [esp + 0x18]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4612c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58d1d0]
jne 0x4612cf
repz ret
jmp fcn.00467746
Function at 0x46217b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58d1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00458be3
and dword [ebp - 0x14], 0
cmp dword [0x5aac7c], 0
mov dword [ebp - 0x18], eax
jne 0x46222e
push 0x47a500
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4622d6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47a4f4
push ebx
call edi
test eax, eax
je 0x4622d6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47a4e4
push ebx
mov dword [0x5aac7c], eax
call edi
push eax
call esi
push 0x47a4d0
push ebx
mov dword [0x5aac80], eax
call edi
push eax
call esi
push 0x47a4b4
push ebx
mov dword [0x5aac84], eax
call edi
push eax
call esi
mov dword [0x5aac8c], eax
test eax, eax
je 0x46222e
push 0x47a49c
push ebx
call edi
push eax
call esi
mov dword [0x5aac88], eax
mov eax, dword [0x5aac88]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x462287
cmp dword [0x5aac8c], ecx
je 0x462287
push eax
call esi
push dword [0x5aac8c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x462287
test ebx, ebx
je 0x462287
call edi
test eax, eax
je 0x46227e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46227e
test byte [ebp - 8], 1
jne 0x462287
or dword [ebp + 0x10], 0x200000
jmp 0x4622ba
mov eax, dword [0x5aac80]
cmp eax, dword [ebp - 0x18]
je 0x4622ba
push eax
call esi
test eax, eax
je 0x4622ba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4622ba
mov eax, dword [0x5aac84]
cmp eax, dword [ebp - 0x18]
je 0x4622ba
push eax
call esi
test eax, eax
je 0x4622ba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5aac7c]
call esi
test eax, eax
je 0x4622d6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4622d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004612c5
leave
ret
Function at 0x46bfe7
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4749f9
call fcn.004676db
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x46c0de
cmp byte [esi + 0x4a], bl
je 0x46c0de
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x46c023
xor al, al
jmp 0x46c0e0
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0046bdad
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x46c081
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x46c086
dec eax
je 0x46c08a
dec eax
dec eax
je 0x46c0da
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0046b31d
mov al, bl
jmp 0x46c0e0
mov edx, dword [ebp - 0x2c]
jmp 0x46c04c
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x46c096
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x46c0bc
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x46c0a9
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00456c29
add esp, 0x10
cmp edi, eax
jne 0x46c06f
cmp byte [esi + 0x4a], 0
je 0x46c0da
test edi, edi
jne 0x46c03e
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0046bcff
jmp 0x46c03e
mov bl, 1
jmp 0x46c071
mov al, 1
call fcn.00467725
ret
Function at 0x46c0e6
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x474a26
call fcn.004676db
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x46c108
xor eax, eax
jmp 0x46c27b
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x46c136
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x46c136
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x46c27b
cmp dword [esi + 0x54], ebx
je 0x46c276
mov ecx, esi
call fcn.0046b101
cmp dword [esi + 0x44], ebx
jne 0x46c166
push dword [esi + 0x54]
push edi
call fcn.0046b5a1
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x46c27b
jmp 0x46c276
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0046bdad
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x46c223
lea eax, [ebp - 0x2c]
mov edx, eax
add eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push eax
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
xor ebx, ebx
inc ebx
test eax, eax
js 0x46c26b
cmp eax, ebx
jg 0x46c22b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x46c1d5
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x46c1fa
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x46c1e8
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push ebx
push eax
call fcn.00456c29
add esp, 0x10
cmp edi, eax
jne 0x46c26b
lea eax, [ebp - 0x30]
mov byte [esi + 0x4a], bl
cmp dword [ebp - 0x38], eax
jne 0x46c25a
test edi, edi
jne 0x46c187
cmp dword [ebp - 0x1c], 0x20
push edi
lea ecx, [ebp - 0x2c]
jae 0x46c270
push 8
call fcn.0046bcff
jmp 0x46c187
mov edx, dword [ebp - 0x2c]
jmp 0x46c199
cmp eax, 3
jne 0x46c26b
push dword [esi + 0x54]
push dword [ebp - 0x30]
call fcn.0046b5a1
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x46c24a
mov esi, 0xffff
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0046b31d
mov ax, si
jmp 0x46c27b
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0046b31d
mov ax, word [ebp + 8]
jmp 0x46c27b
push 0
lea ecx, [ebp - 0x2c]
push ebx
call fcn.0046b31d
mov eax, 0xffff
call fcn.00467725
ret 4

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

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

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

Function at 0x404098
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x466048], 0
je 0x4040f9
cmp word [0x46621c], 0xd7b2
jne 0x4040c1
cmp dword [0x466224], 0
jbe 0x4040c1
mov eax, 0x466218
call dword [0x466234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46406c
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 0x404120
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x464030], 0
jne 0x404115
push 0
push 0x464064
push 0x46406c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405e70
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 0x405ed6
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040448c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ec8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405ec0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405edd
lea eax, [ebp - 0x10]
call fcn.0040421c
ret

Function at 0x40afcc
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
test eax, eax
jle 0x40b005
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040430c
jmp 0x40b00e
mov eax, ebx
mov edx, esi
call fcn.00404270
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b018
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
test eax, eax
jle 0x40b039
mov al, byte [esp]
jmp 0x40b03b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bff0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c0c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004042b4
lea eax, [ebp - 8]
call fcn.0040472c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046dc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c0b0
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c0a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046dc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c093
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c0d8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c093
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0b0
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0cd
lea eax, [ebp - 8]
call fcn.0040421c
ret