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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512983
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x556754]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x556838]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d1920
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x4d1c11
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004d5900
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x52f444
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d1c11
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x4d1b05
cmp eax, 2
jne 0x4d1c11
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4d1b26
test cl, 1
jne 0x4d1c11
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4d1b2c
jmp 0x4d1c11
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4d1c11
call fcn.0040b050
mov ecx, eax
test ecx, ecx
je 0x4d1c3c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.004cfb70
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x52f44c
push eax
call fcn.004d2030
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.004d0100
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x4d1bf5
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d1b96
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.004d1c50
push dword [0x556840]
lea eax, [ebp - 0x74]
push dword [0x55683c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4d1bd2
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d1bee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x4d1c13
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d1c11
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x4d1c1e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5d96
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b30
int3
Function at 0x4d1d30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5129b8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x556754]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x556838]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d1920
test eax, eax
je 0x4d1e58
mov esi, dword [ebp - 0x18]
mov edi, dword [0x556838]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x4d1e03
cmp dword [esi], 0
je 0x4d1df6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4d1dc3
mov eax, 1
jmp 0x4d1e24
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d1dfc
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x4d1e24
cmp dword [esi + 4], 0
jne 0x4d1e03
mov eax, 1
jmp 0x4d1e24
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4d1e4e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4d1e36
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x4d1e5b
xor ebx, ebx
jmp 0x4d1eff
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x4d1eff
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4d1eb8
mov ecx, dword [ebx]
test ecx, ecx
je 0x4d1f1e
push ecx
push eax
call fcn.004dfaa5
add esp, 8
test eax, eax
je 0x4d1eb8
mov edx, dword [edi]
test edx, edx
je 0x4d1eb8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d1e90
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x4d1ec3
lea eax, [edx + 0xd]
jmp 0x4d1ef8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d1ed0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x52f444
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x4d1f0a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404b30
int3
Function at 0x4fd1b6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fce76

Function at 0x4fd3e6
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004fd2eb

Function at 0x5031d3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00503052
Function at 0x402694
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026a2
call dword [0x45b014]
or eax, eax
je 0x4026a3
ret
mov al, 1
jmp fcn.00402720

Function at 0x4026ac
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4026ba
call dword [0x45b018]
or eax, eax
jne 0x4026bb
ret
mov al, 2
jmp fcn.00402720

Function at 0x4026c4
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4026fc
test edx, edx
je 0x4026e6
push eax
mov eax, ecx
call dword [0x45b01c]
pop ecx
or eax, eax
je 0x4026f5
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.00402720
mov dword [eax], edx
mov eax, ecx
call dword [0x45b018]
or eax, eax
jne 0x4026df
ret
mov al, 1
jmp fcn.00402720
test edx, edx
je 0x402710
push eax
mov eax, edx
call dword [0x45b014]
pop ecx
or eax, eax
je 0x4026f5
mov dword [ecx], eax
ret

Function at 0x402720
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x45e004]
test ecx, ecx
je 0x402730
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402749]
jns 0x402744
call fcn.00405f4c
mov eax, dword [eax + 4]
jmp fcn.00403970

Function at 0x402764
Capabilities:
Terminate process

Disassembly:
push eax
push edx
push ecx
call fcn.00405f4c
cmp dword [eax + 4], 0
pop ecx
pop edx
pop eax
jne 0x402779
ret
xor eax, eax
jmp fcn.00402720

Function at 0x402864
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 0x402893
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.00403a60
jmp 0x4028b1
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004027ec
mov edi, eax
test ebx, ebx
je 0x4028b1
cmp dword [esi], 0
je 0x4028b1
dec ebx
jmp 0x40289a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c54
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 0x402cec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ccc
xor eax, eax
push ebp
push 0x402cc5
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 0x402d08
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 0x402ccc
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 0x402f6c
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x402f86
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x402f86
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x402f72
mov al, 0xa
jmp fcn.00402720
ret
Function at 0x402fb8
Capabilities:
Terminate process

Disassembly:
cmp dword [0x45e018], 0
je 0x4028e7
call dword [0x45e018]
mov eax, 0xd2
jmp fcn.00403970
push eax
push ecx
mov eax, dword [eax]
call fcn.00402f88
pop ecx
pop eax
je 0x402fc7
jmp ebx
pop ecx
jmp 0x4028d8

Function at 0x402fd0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00402f88
mov eax, ebx
pop ebx
jne 0x402fe5
pop ecx
jmp 0x4028d8
ret

Function at 0x40384c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x45e4a0
mov esi, 0x45e034
mov edi, 0x45e038
cmp byte [ebx + 0x24], 0
jne 0x40387b
cmp dword [edi], 0
je 0x40387b
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x40386a
cmp dword [0x45e03c], 0
je 0x4038c2
call fcn.004037c8
cmp byte [0x45e044], 0
je 0x4038a8
mov edx, 0x45b020
mov eax, 0x45e218
call fcn.004057e8
call fcn.0040576b
jmp 0x4038bb
push 0
push 0x45b040
push 0x45b020
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x45e03c], eax
cmp byte [ebx + 0x24], 2
jne 0x4038d2
cmp dword [esi], 0
jne 0x4038d2
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.0040369c
cmp byte [ebx + 0x24], 1
jbe 0x4038e2
cmp dword [esi], 0
je 0x4038ff
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4038ff
call fcn.00405040
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x4038ff
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.00403674
cmp byte [ebx + 0x24], 1
jne 0x40390d
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403918
call fcn.00403818
cmp dword [ebx], 0
jne 0x403925
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 0x4038c2

Function at 0x404018
Capabilities:
Terminate process

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

Function at 0x4040c0
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.00402720
test ecx, ecx
je fcn.00403fdc
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x403fc4
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret
Function at 0x404188
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 0x4041c7
cmp al, 0xb
je 0x4041c7
cmp al, 0xc
je 0x4041d1
cmp al, 0xd
je 0x4041e4
cmp al, 0xe
je 0x404202
cmp al, 0xf
je 0x4041c7
cmp al, 0x11
je 0x4041c7
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.00402720
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x4041c7
jmp 0x404216
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 0x4041d1
jmp 0x404216
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 0x404188
dec edi
jg 0x4041e7
pop ebp
jmp 0x404216
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.0040415c
dec edi
jg 0x404205
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x404188

Function at 0x40421c
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 0x4041c7
cmp al, 0xb
je 0x4041c7
cmp al, 0xc
je 0x4041d1
cmp al, 0xd
je 0x4041e4
cmp al, 0xe
je 0x404202
cmp al, 0xf
je 0x4041c7
cmp al, 0x11
je 0x4041c7
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.00402720
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x4041c7
jmp 0x404216
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 0x4041d1
jmp 0x404216
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 0x404188
dec edi
jg 0x4041e7
pop ebp
jmp 0x404216
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.0040415c
dec edi
jg 0x404205
pop ebp
pop edi
pop esi
pop ebx
ret
mov ecx, 1
jmp 0x404188
Function at 0x404254
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 0x40429b
cmp al, 0xb
je 0x4042b5
cmp al, 0xc
je 0x4042cc
cmp al, 0xd
je 0x4042db
cmp al, 0xe
je 0x4042f9
cmp al, 0xf
je 0x40430f
cmp al, 0x11
je 0x40431e
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.00402720
cmp ecx, 1
mov eax, ebx
jg 0x4042ac
call fcn.0040397c
jmp 0x40432d
mov edx, ecx
call fcn.004039a0
jmp 0x40432d
cmp ecx, 1
mov eax, ebx
jg 0x4042c3
call fcn.00403fdc
jmp 0x40432d
mov edx, ecx
call fcn.00403ff4
jmp 0x40432d
mov eax, ebx
add ebx, 0x10
call fcn.00404ab0
dec edi
jg 0x4042cc
jmp 0x40432d
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.00404254
dec edi
jg 0x4042de
pop ebp
jmp 0x40432d
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00404228
dec edi
jg 0x4042fc
pop ebp
jmp 0x40432d
mov eax, ebx
add ebx, 4
call fcn.00405108
dec edi
jg 0x40430f
jmp 0x40432d
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.00404ca4
dec edi
jg 0x40431e
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x404334
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.00404254

Function at 0x404340
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 0x40436c
mov edx, eax
add eax, esi
add edx, ebx
call fcn.004027ac
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
mov cl, byte [edx]
cmp cl, 0xa
je 0x4043ab
cmp cl, 0xb
je 0x4043bc
cmp cl, 0xc
je 0x4043cd
cmp cl, 0xd
je 0x4043de
cmp cl, 0xe
je 0x4043fe
cmp cl, 0xf
je 0x404417
cmp cl, 0x11
je 0x404428
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.00402720
mov edx, dword [esi + eax]
add eax, ebx
call fcn.004039d0
mov eax, 4
jmp 0x404439
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404018
mov eax, 4
jmp 0x404439
lea edx, [esi + eax]
add eax, ebx
call fcn.004046fc
mov eax, 0x10
jmp 0x404439
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.0040445c
pop eax
jmp 0x404439
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.00404340
pop eax
jmp 0x404439
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00405120
mov eax, 4
jmp 0x404439
mov ecx, edx
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00404ce0
mov eax, 4
add eax, dword [edi + 4]
add edi, 8
dec ebp
jne 0x40435a
pop ecx
sub ecx, eax
jle 0x404455
lea edx, [ebx + eax]
add eax, esi
call fcn.004027ac
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40445c
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 0x4044a2
cmp cl, 0xb
je 0x4044b9
cmp cl, 0xc
je 0x4044cd
cmp cl, 0xd
je 0x4044e1
cmp cl, 0xe
je 0x404502
cmp cl, 0xf
je 0x40451f
cmp cl, 0x11
je 0x404533
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.00402720
mov eax, ebx
mov edx, dword [esi]
call fcn.004039d0
add ebx, 4
add esi, 4
dec ebp
jne 0x4044a2
jmp 0x404547
mov eax, ebx
mov edx, dword [esi]
call fcn.00404018
add ebx, 4
add esi, 4
dec ebp
jne 0x4044b9
jmp 0x404547
mov eax, ebx
mov edx, esi
call fcn.004046fc
add ebx, 0x10
add esi, 0x10
dec ebp
jne 0x4044cd
jmp 0x404547
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.0040445c
add ebx, dword [edi]
add esi, dword [edi]
dec ebp
jne 0x4044ea
jmp 0x404547
mov eax, ebx
mov edx, esi
mov ecx, edi
call fcn.00404340
xor eax, eax
mov al, byte [edi + 1]
add ebx, dword [edi + eax + 2]
add esi, dword [edi + eax + 2]
dec ebp
jne 0x404502
jmp 0x404547
mov eax, ebx
mov edx, dword [esi]
call fcn.00405120
add ebx, 4
add esi, 4
dec ebp
jne 0x40451f
jmp 0x404547
mov eax, ebx
mov edx, dword [esi]
mov ecx, edi
call fcn.00404ce0
add ebx, 4
add esi, 4
dec ebp
jne 0x404533
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x4046fc
Capabilities:
Terminate process

Disassembly:
mov al, 0x10
jmp fcn.00402720
cmp eax, edx
je 0x404793
cmp word [eax], 8
jb 0x404734
push eax
push edx
cmp word [eax], 0x100
je 0x40472a
cmp word [eax], 0x101
je 0x404722
push eax
call sub.oleaut32.dll_VariantClear
jmp 0x404732
call dword [0x45e3e4]
jmp 0x404732
add eax, 8
call fcn.0040397c
pop edx
pop eax
cmp word [edx], 8
jae 0x40474b
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 0x404766
cmp word [edx], 0x101
jne 0x40477f
push eax
call 0x40473a
pop eax
jmp dword [0x45e3ec]
mov edx, dword [edx + 8]
or edx, edx
je 0x404776
mov ecx, dword [edx - 8]
inc ecx
jle 0x404776
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 0x4046b0
ret
Function at 0x404d5c
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 0x404f14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404dbd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404f30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404e2a
xor eax, eax
push ebp
push 0x404e23
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 0x404e0c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404f50
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 0x404e2a
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 0x404f0b
cmp byte [ebp - 0xd], 0
jne 0x404e6c
cmp byte [ebp - 0x12], 0
je 0x404f0b
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404e85
dec ebx
cmp byte [ebx], 0x2e
je 0x404e94
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404e84
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404f0b
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404ec1
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 0x404f0b
cmp byte [ebp - 0xd], 0
je 0x404f0b
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 0x404f0b
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 0x408810
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 0x408849
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a60
jmp 0x408852
mov eax, ebx
mov edx, esi
call fcn.00403a14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40885c
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 0x40887d
mov al, byte [esp]
jmp 0x40887f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413bdc
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 0x413be2
ret

Function at 0x416214
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 0x416265
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41624c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41623c
jmp 0x416265
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 0x41624d
pop ebx
mov esp, ebp
pop ebp
ret