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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
xor ebx, ebx
push ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], eax
xor edi, edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409b4e
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409b4e
inc edi
cmp dword [ebp - 8], edi
jne 0x409b4e
cmp byte [esi], bl
mov eax, esi
je 0x409b4e
cmp byte [eax], 0x2c
jne 0x409b49
mov byte [eax], bl
inc eax
cmp byte [eax], bl
jne 0x409b42
cmp dword [ebp - 4], ebx
je 0x409b5c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409b68
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
call fcn.0040946b
test eax, eax
mov esi, dword [ebp + 0x10]
jne 0x409b9e
cmp byte [esi], bl
mov eax, esi
je 0x409b9e
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x409b9e
cmp byte [eax], bl
jne 0x409b98
mov byte [eax], 0x2c
mov eax, ecx
cmp byte [eax], bl
jne 0x409b8a
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409bf5
cmp dword [ebp + 0x14], 2
jle 0x409be2
call fcn.0040946b
test eax, eax
push dword [ebp + 0x14]
push esi
je 0x409bde
push 7
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x409bee
push 1
jmp 0x409bcf
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x409bf5
xor edi, edi
inc edi
cmp dword [ebp - 4], ebx
je 0x409c03
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a3dd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, eax
lea ecx, [ebp - 4]
push ecx
lea eax, [edi + 0x310]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x4030d0
push dword [ebp + 8]
mov dword [ebp - 4], 0x103
call esi
test eax, eax
je 0x40a42a
push 0x104
lea eax, [edi + 0x310]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
add edi, 0x414
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0x4030e0
push dword [ebp + 8]
mov dword [ebp - 4], 0x103
call esi
test eax, eax
je 0x40a460
push 0x104
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x40c130
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40c143
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40c13f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x40c170
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40c1af
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40c1a5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40c1b1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40c195
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402680
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40268e
call dword [0x459014]
or eax, eax
je 0x40268f
ret
mov al, 1
jmp fcn.0040270c

Function at 0x402698
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026a6
call dword [0x459018]
or eax, eax
jne 0x4026a7
ret
mov al, 2
jmp fcn.0040270c

Function at 0x4026b0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4026e8
test edx, edx
je 0x4026d2
push eax
mov eax, ecx
call dword [0x45901c]
pop ecx
or eax, eax
je 0x4026e1
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.0040270c
mov dword [eax], edx
mov eax, ecx
call dword [0x459018]
or eax, eax
jne 0x4026cb
ret
mov al, 1
jmp fcn.0040270c
test edx, edx
je 0x4026fc
push eax
mov eax, edx
call dword [0x459014]
pop ecx
or eax, eax
je 0x4026e1
mov dword [ecx], eax
ret

Function at 0x40270c
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x45b004]
test ecx, ecx
je 0x40271c
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402735]
jns 0x402730
call fcn.00405c3c
mov eax, dword [eax + 4]
jmp fcn.004038a0

Function at 0x402850
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x40287f
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403990
jmp 0x40289d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004027d8
mov edi, eax
test ebx, ebx
je 0x40289d
cmp dword [esi], 0
je 0x40289d
dec ebx
jmp 0x402886
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b70
Capabilities:
Query or enumerate registry value

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

Function at 0x402e88
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402ea2
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402ea2
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x402e8e
mov al, 0xa
jmp fcn.0040270c
ret

Function at 0x402ed4
Capabilities:
Terminate process

Disassembly:
cmp dword [0x45b018], 0
je 0x4028df
call dword [0x45b018]
mov eax, 0xd2
jmp fcn.004038a0
push eax
push ecx
mov eax, dword [eax]
call fcn.00402ea4
pop ecx
pop eax
je 0x402ee3
jmp ebx
pop ecx
jmp 0x4028d0
Function at 0x402eec
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402ea4
mov eax, ebx
pop ebx
jne 0x402f01
pop ecx
jmp 0x4028d0
ret

Function at 0x40377c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x45b4a0
mov esi, 0x45b034
mov edi, 0x45b038
cmp byte [ebx + 0x24], 0
jne 0x4037ab
cmp dword [edi], 0
je 0x4037ab
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x40379a
cmp dword [0x45b03c], 0
je 0x4037f2
call fcn.004036f8
cmp byte [0x45b044], 0
je 0x4037d8
mov edx, 0x459024
mov eax, 0x45b218
call fcn.004054d8
call fcn.0040545b
jmp 0x4037eb
push 0
push 0x459044
push 0x459024
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x45b03c], eax
cmp byte [ebx + 0x24], 2
jne 0x403802
cmp dword [esi], 0
jne 0x403802
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.004035cc
cmp byte [ebx + 0x24], 1
jbe 0x403812
cmp dword [esi], 0
je 0x40382f
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40382f
call fcn.00404edc
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x40382f
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.004035a4
cmp byte [ebx + 0x24], 1
jne 0x40383d
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403848
call fcn.00403748
cmp dword [ebx], 0
jne 0x403855
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x4037f2

Function at 0x403eb4
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00403e78
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00403e78
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x403e60
ret

Function at 0x403f5c
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.0040270c
test ecx, ecx
je fcn.00403e78
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x403e60
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret

Function at 0x404024
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x404063
cmp al, 0xb
je 0x404063
cmp al, 0xc
je 0x40406d
cmp al, 0xd
je 0x404080
cmp al, 0xe
je 0x40409e
cmp al, 0xf
je 0x404063
cmp al, 0x11
je 0x404063
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.0040270c
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x404063
jmp 0x4040b2
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x40406d
jmp 0x4040b2
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x404024
dec edi
jg 0x404083
pop ebp
jmp 0x4040b2
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403ff8
dec edi
jg 0x4040a1
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x404024
Function at 0x4040b8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x404063
cmp al, 0xb
je 0x404063
cmp al, 0xc
je 0x40406d
cmp al, 0xd
je 0x404080
cmp al, 0xe
je 0x40409e
cmp al, 0xf
je 0x404063
cmp al, 0x11
je 0x404063
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.0040270c
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x404063
jmp 0x4040b2
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x40406d
jmp 0x4040b2
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call 0x404024
dec edi
jg 0x404083
pop ebp
jmp 0x4040b2
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00403ff8
dec edi
jg 0x4040a1
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x404024

Function at 0x4040f0
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x404137
cmp al, 0xb
je 0x404151
cmp al, 0xc
je 0x404168
cmp al, 0xd
je 0x404177
cmp al, 0xe
je 0x404195
cmp al, 0xf
je 0x4041ab
cmp al, 0x11
je 0x4041ba
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.0040270c
cmp ecx, 1
mov eax, ebx
jg 0x404148
call fcn.004038ac
jmp 0x4041c9
mov edx, ecx
call fcn.004038d0
jmp 0x4041c9
cmp ecx, 1
mov eax, ebx
jg 0x40415f
call fcn.00403e78
jmp 0x4041c9
mov edx, ecx
call fcn.00403e90
jmp 0x4041c9
mov eax, ebx
add ebx, 0x10
call fcn.0040494c
dec edi
jg 0x404168
jmp 0x4041c9
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.004040f0
dec edi
jg 0x40417a
pop ebp
jmp 0x4041c9
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.004040c4
dec edi
jg 0x404198
pop ebp
jmp 0x4041c9
mov eax, ebx
add ebx, 4
call fcn.00404fa4
dec edi
jg 0x4041ab
jmp 0x4041c9
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.00404b40
dec edi
jg 0x4041ba
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x4041d0
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.004040f0
Function at 0x4041dc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
xor eax, eax
mov al, byte [ecx + 1]
lea edi, [ecx + eax + 0xa]
mov ebp, dword [edi - 4]
xor eax, eax
mov ecx, dword [edi - 8]
push ecx
mov ecx, dword [edi + 4]
sub ecx, eax
jle 0x404208
mov edx, eax
add eax, esi
add edx, ebx
call fcn.00402798
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
mov cl, byte [edx]
cmp cl, 0xa
je 0x404247
cmp cl, 0xb
je 0x404258
cmp cl, 0xc
je 0x404269
cmp cl, 0xd
je 0x40427a
cmp cl, 0xe
je 0x40429a
cmp cl, 0xf
je 0x4042b3
cmp cl, 0x11
je 0x4042c4
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.0040270c
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00403900
mov eax, 4
jmp 0x4042d5
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00403eb4
mov eax, 4
jmp 0x4042d5
lea edx, [esi + eax]
add eax, ebx
call fcn.00404598
mov eax, 0x10
jmp 0x4042d5
xor ecx, ecx
mov cl, byte [edx + 1]
push dword [edx + ecx + 2]
push dword [edx + ecx + 6]
mov ecx, dword [edx + ecx + 0xa]
mov ecx, dword [ecx]
lea edx, [esi + eax]
add eax, ebx
call fcn.004042f8
pop eax
jmp 0x4042d5
xor ecx, ecx
mov cl, byte [edx + 1]
mov ecx, dword [edx + ecx + 2]
push ecx
mov ecx, edx
lea edx, [esi + eax]
add eax, ebx
call fcn.004041dc
pop eax
jmp 0x4042d5
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404fbc
mov eax, 4
jmp 0x4042d5
mov ecx, edx
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404b7c
mov eax, 4
add eax, dword [edi + 4]
add edi, 8
dec ebp
jne 0x4041f6
pop ecx
sub ecx, eax
jle 0x4042f1
lea edx, [ebx + eax]
add eax, esi
call fcn.00402798
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4042f8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
mov edi, ecx
mov ebp, dword [esp + 0x14]
mov cl, byte [edi]
cmp cl, 0xa
je 0x40433e
cmp cl, 0xb
je 0x404355
cmp cl, 0xc
je 0x404369
cmp cl, 0xd
je 0x40437d
cmp cl, 0xe
je 0x40439e
cmp cl, 0xf
je 0x4043bb
cmp cl, 0x11
je 0x4043cf
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.0040270c
mov eax, ebx
mov edx, dword [esi]
call fcn.00403900
add ebx, 4
add esi, 4
dec ebp
jne 0x40433e
jmp 0x4043e3
mov eax, ebx
mov edx, dword [esi]
call fcn.00403eb4
add ebx, 4
add esi, 4
dec ebp
jne 0x404355
jmp 0x4043e3
mov eax, ebx
mov edx, esi
call fcn.00404598
add ebx, 0x10
add esi, 0x10
dec ebp
jne 0x404369
jmp 0x4043e3
xor ecx, ecx
mov cl, byte [edi + 1]
lea edi, [edi + ecx + 2]
mov eax, ebx
mov edx, esi
mov ecx, dword [edi + 8]
push dword [edi + 4]
call fcn.004042f8
add ebx, dword [edi]
add esi, dword [edi]
dec ebp
jne 0x404386
jmp 0x4043e3
mov eax, ebx
mov edx, esi
mov ecx, edi
call fcn.004041dc
xor eax, eax
mov al, byte [edi + 1]
add ebx, dword [edi + eax + 2]
add esi, dword [edi + eax + 2]
dec ebp
jne 0x40439e
jmp 0x4043e3
mov eax, ebx
mov edx, dword [esi]
call fcn.00404fbc
add ebx, 4
add esi, 4
dec ebp
jne 0x4043bb
jmp 0x4043e3
mov eax, ebx
mov edx, dword [esi]
mov ecx, edi
call fcn.00404b7c
add ebx, 4
add esi, 4
dec ebp
jne 0x4043cf
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x404598
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.0040270c
cmp eax, edx
je 0x40462f
cmp word [eax], 8
jb 0x4045d0
push eax
push edx
cmp word [eax], 0x100
je 0x4045c6
cmp word [eax], 0x101
je 0x4045be
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x4045ce
call dword [0x45b3e4]
jmp 0x4045ce
add eax, 8
call fcn.004038ac
pop edx
pop eax
cmp word [edx], 8
jae 0x4045e7
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
je 0x404602
cmp word [edx], 0x101
jne 0x40461b
push eax
call 0x4045d6
pop eax
jmp dword [0x45b3ec]
mov edx, dword [edx + 8]
or edx, edx
je 0x404612
mov ecx, dword [edx - 8]
inc ecx
jle 0x404612
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call sub.oleaut32.dll_VariantCopyInd
or eax, eax
jne 0x40454c
ret
Function at 0x404bf8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404db0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c59
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404dcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404cc6
xor eax, eax
push ebp
push 0x404cbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404ca8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404dec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404cc6
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404da7
cmp byte [ebp - 0xd], 0
jne 0x404d08
cmp byte [ebp - 0x12], 0
je 0x404da7
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d21
dec ebx
cmp byte [ebx], 0x2e
je 0x404d30
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d20
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404da7
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d5d
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404da7
cmp byte [ebp - 0xd], 0
je 0x404da7
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404da7
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409e00
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 0x409e39
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403990
jmp 0x409e42
mov eax, ebx
mov edx, esi
call fcn.00403944
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409e4c
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 0x409e6d
mov al, byte [esp]
jmp 0x409e6f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41544c
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 0x415452
ret

Function at 0x417900
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 0x417951
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x417938
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x417928
jmp 0x417951
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 0x417939
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422d34
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 - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x45b758], 0
sete dl
or al, dl
jne 0x422e78
mov eax, dword [0x45b75c]
mov bx, 0xffff
call fcn.00402ed4
mov eax, dword [0x45b758]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x422e47
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x45b758]
call fcn.0040ea60
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x422e3f
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x422e3f
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x422e3f
mov eax, dword [ebp - 0x10]
call fcn.0042abc0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x422e3f
push ebp
call fcn.00422cf0
pop ecx
test al, al
jne 0x422e3f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x422dfb
mov eax, dword [ebp - 0x10]
call fcn.00429504
dec eax
jle 0x422e3f
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00402ed4
cmp byte [ebp - 0x15], 0
je 0x422e3f
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x422e3f
mov edx, dword [ebp - 0x10]
mov eax, dword [0x45b75c]
call fcn.004225a0
inc edi
dec esi
jne 0x422d8e
mov eax, dword [0x45b75c]
cmp dword [eax + 8], 0
jle 0x422e5f
mov eax, dword [0x45b75c]
call fcn.00422630
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x422e78
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00422ba8
pop ecx
test al, al
jne 0x422e78
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret