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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x44638c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x430bcf
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x430cd1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x430c7f
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocString
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x430cd2
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x430c74
cmp dword [ebp - 0x24], 1
jne 0x430c74
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x43724c
push eax
call fcn.004168ad
add esp, 0xc
cmp eax, 1
jne 0x430c74
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x430cd2
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x430cd2
lea ecx, [ebp - 0x18]
push ecx
push 0x430b17
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x430cd2
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x430cf8
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.00430a98
cmp eax, ebx
pop ecx
pop ecx
jne 0x430cfa
inc edi
cmp edi, esi
jl 0x430ce1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00415c2f
leave
ret 4
Function at 0x430d09
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x445ae8
je 0x430dc5
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x430dad
mov esi, dword [ebx + 4]
jmp 0x430da7
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x430d97
cmp dword [ebp - 0xc], 4
jne 0x430d97
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x430d8f
or dword [eax + 0x9c], ecx
jmp 0x430d97
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x430d5b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x430d3e
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x43117e
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x434e21
call fcn.00417cfc
sub esp, 0x11c
mov eax, dword [0x44638c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x431277
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x43124b
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00404510
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0043117e
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401df0
test bl, bl
jne 0x43124b
or dword [ebp - 4], 0xffffffff
jmp 0x4311bc
cmp esi, 0x103
je 0x43125b
cmp esi, 0x3f2
jne 0x43126b
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00415c2f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x431a22
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x431a57
cmp edi, dword [esi + 0xc]
jge 0x431a57
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x431a57
cmp edi, dword [eax + 8]
jge 0x431a57
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x431a59
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x431b5d
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x431b91
jmp fcn.00424375
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x431c02
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x431cfb
cmp eax, dword [edi + 0xc]
jge 0x431cfb
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x431c53
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x431ce4
cmp dword [ebp + 0xc], ebx
je 0x431ce4
jmp 0x431c7d
push 0x10
call fcn.004318ee
cmp eax, ebx
je 0x431c69
mov ecx, eax
call fcn.00431b54
mov esi, eax
jmp 0x431c6b
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x431c94
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x431ca4
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x431cb6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00424375
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00417bf0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x431cf6
cmp ecx, dword [esi + 8]
jge 0x431cf6
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x431cfc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x431dbb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x431de9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x431e07
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00431d25
jmp 0x431e07
mov eax, dword [esi + 0x14]
test eax, eax
je 0x431e07
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00431d25
test edi, edi
mov eax, edi
jne 0x431df1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x449ba4]
test ecx, ecx
je 0x431eba
jmp 0x431dba
ret 8
Function at 0x41cba0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov ebx, dword [eax]
push edi
push 0x800
push 0x40
mov dword [esp + 0x1c], ebx
call dword [ebx + 0x2c]
mov edi, eax
test edi, edi
jne 0x41cbcc
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
call dword [ebx + 0x24]
mov eax, dword [esp + 0x2c]
mov ebp, 0x543a2110
test eax, eax
je 0x41cc90
jmp 0x41cbf4
mov eax, dword [esp + 0x2c]
cmp eax, 0x800
jb 0x41cc00
mov eax, 0x800
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push edi
push edx
call dword [ebx + 0x14]
test eax, eax
je 0x41cca0
mov edx, dword [esp + 0x10]
test edx, edx
je 0x41cce2
xor esi, esi
test edx, edx
jle 0x41cc67
mov ecx, ebp
xor ecx, 0x2da05629
mov eax, ecx
mov ebx, ecx
shr eax, 0x18
shr ebx, 0x10
xor al, bl
mov ebx, ecx
shr ebx, 8
xor al, bl
mov bl, byte [esi + edi]
xor al, bl
xor al, cl
mov byte [esi + edi], al
and eax, 0xff
shl ebp, 8
add ebp, eax
inc esi
cmp esi, edx
jl 0x41cc2b
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push 0
push eax
push edx
push edi
push ecx
call dword [ebx + 0x18]
test eax, eax
je 0x41ccc2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x2c], eax
jne 0x41cbf0
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
mov ax, 1
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
push eax
mov eax, dword [esp + 0x38]
push eax
call fcn.0041d910
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
call dword [ebx + 0x78]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.0041d980
add esp, 8
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret
push 0
call dword [ebx + 0x78]
mov edx, dword [esp + 0x34]
push eax
push edx
call fcn.0041d910
add esp, 0xc
push edi
call dword [ebx + 0x30]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0xc
ret

Function at 0x41d780
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0x41d7ba
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0x41d79b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret
Function at 0x34a6d90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x208d000]
push edi
jmp 0x34a6daa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x34a6db1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x34a6da0
mov eax, 1
add ebx, ebx
jne 0x34a6dc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x34a6dd4
jne 0x34a6df3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x34a6df3
dec eax
add ebx, ebx
jne 0x34a6de0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x34a6db8
add ebx, ebx
jne 0x34a6def
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x34a6e45
xor ecx, ecx
sub eax, 3
jb 0x34a6e0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x34a6e7a
sar eax, 1
mov ebp, eax
jmp 0x34a6e16
add ebx, ebx
jne 0x34a6e16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x34a6de4
inc ecx
add ebx, ebx
jne 0x34a6e24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x34a6de4
add ebx, ebx
jne 0x34a6e31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x34a6e26
jne 0x34a6e42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x34a6e26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x34a6e64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x34a6e56
jmp 0x34a6da6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x34a6e64
add edi, ecx
jmp 0x34a6da6
pop esi
mov edi, esi
mov ecx, 0x45f009
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x34a6e9f
cmp byte [edi], 0x44
jne 0x34a6e84
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x34a6e82
lea edi, [esi + 0x30a2000]
mov eax, dword [edi]
or eax, eax
je 0x34a6ef0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x30bf488]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x30bf618]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x34a6ea5
mov ecx, edi
jns 0x34a6ed4
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 + 0x30bf61c]
or eax, eax
je 0x34a6eea
mov dword [ebx], eax
add ebx, 4
jmp 0x34a6ec2
call dword [esi + 0x30bf62c]
mov ebp, dword [esi + 0x30bf620]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x34a6f24
sub esp, 0xffffff80
jmp 0x837d5e
Function at 0x401d20
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rol esi, 0xf5
mov eax, 0x36
or eax, 0xa9
rol esi, 0xe7
imul ebx
bswap esi
bswap edi
not ebx
ror ebx, 0x65
and ebx, 0xbe
sbb eax, 0xe9
neg ebx
add edx, 0x53
or edx, 0x6a
sbb esi, 0x6f
not edi
imul ebx
imul esi
mov edx, 0xe6
sbb ebx, 0xe
and edi, 0xb3
sbb edx, 0x69
bswap eax
or esi, 0x75
sbb ebx, 0x48
neg eax
sub ebx, 0x73
not ebx
and edx, 0xf0
and esi, 0xde
sbb eax, 0x61
inc esi
sbb eax, 0xc3
rcr eax, 0xed
bswap ebx
bswap eax
rcl esi, 0xdc
inc ebx
bswap ebx
sbb edi, 0xfe
neg edx
mov ebx, 0x2f
sbb eax, 0xc1
not esi
or eax, 0xe7
sbb edx, 0x71
rcr edx, 0x32
add esi, 0x56
bswap ebx
bswap edi
xor ecx, ecx
xor edi, edi
bswap edx
rcr edx, 0x64
mov esi, 0x53
inc edx
sub edx, 0x67
rcl edx, 0x96
imul eax
not esi
dec edi
dec edi
inc edx
sbb edx, 0xe2
mov edi, 0xba
inc ebx
neg edx
inc esi
bswap edi
rol eax, 0xfd
sub ebx, 0xc5
sub eax, 0x74
bswap esi
bswap esi
inc edi
imul esi
dec ebx
sbb esi, 0x9a
bswap edi
inc ebx
and edi, 0x14
inc esi
neg esi
inc edi
dec esi
rcr eax, 0xa7
dec eax
mov ebx, 0x6d
not ebx
and eax, 0xce
dec edi
neg ebx
inc edi
sbb edi, 0xde
imul edx
inc esi
mov esi, 0xad
or edx, 0x2d
dec eax
imul edx
neg edx
ror ebx, 0x10
mov ecx, dword [ebp + 0xc]
rcl edx, 0x10
sbb esi, 0x6c
rcl esi, 0xde
rcl eax, 0xd5
mov edx, 0x81
and edx, 0xa0
dec eax
and esi, 0x91
sbb ebx, 0x7d
neg edx
neg edx
inc edx
inc edx
and esi, 0x77
sub ebx, 0x4d
dec edi
sbb edx, 0x8e
inc esi
inc eax
not edi
imul esi
not ebx
not eax
dec eax
rcl eax, 0xf8
rcl esi, 0x9f
imul ebx
imul eax
bswap edi
dec ebx
imul esi
or eax, 0xd8
imul edi
not ebx
neg eax
sub esi, 0x59
dec esi
or edi, 0x19
rol edx, 0xd2
and edi, 0x1c
inc esi
bswap ebx
and eax, 0x7e
inc edx
mov edi, 0x6c
and eax, 0x26
not ebx
sub edx, 0x87
imul edx
ror eax, 0x88
mov edi, dword [ebp + 8]
xor ebx, eax
xor esi, eax
xor esi, eax
not byte [edi]
xor esi, esi
xor eax, esi
xor eax, esi
xor ebx, esi
xor ebx, esi
xor ebx, esi
mov ebx, esi
mov eax, eax
xor ebx, ebx
add byte [edi], 0x79
xor esi, ebx
xor ebx, eax
mov eax, ebx
mov eax, eax
xor ebx, ebx
mov ebx, ebx
mov ebx, ebx
xor ebx, esi
mov eax, esi
sub byte [edi], 0x30
mov esi, esi
xor eax, ebx
xor esi, esi
mov esi, esi
mov ebx, eax
mov ebx, ebx
mov esi, esi
xor ebx, esi
mov ebx, eax
imul byte [edi]
inc edi
loop 0x401ed2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407464
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49a894]
jne 0x40746e
repz ret
jmp fcn.0040be46
Function at 0x40d64d
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.0040a40f
and dword [ebp - 4], 0
cmp dword [0x49be14], 0
mov ebx, eax
jne 0x40d6fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d7af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d7af
push eax
call fcn.0040a39d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49be14], eax
call esi
push eax
call fcn.0040a39d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49be18], eax
call esi
push eax
call fcn.0040a39d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49be1c], eax
call esi
push eax
call fcn.0040a39d
pop ecx
mov dword [0x49be24], eax
test eax, eax
je 0x40d6fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a39d
pop ecx
mov dword [0x49be20], eax
mov eax, dword [0x49be20]
cmp eax, ebx
je 0x40d756
cmp dword [0x49be24], ebx
je 0x40d756
push eax
call fcn.0040a418
push dword [0x49be24]
mov esi, eax
call fcn.0040a418
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d756
test edi, edi
je 0x40d756
call esi
test eax, eax
je 0x40d74d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d74d
test byte [ebp - 0xc], 1
jne 0x40d756
or dword [ebp + 0x10], 0x200000
jmp 0x40d78f
mov eax, dword [0x49be18]
cmp eax, ebx
je 0x40d78f
push eax
call fcn.0040a418
pop ecx
test eax, eax
je 0x40d78f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d78f
mov eax, dword [0x49be1c]
cmp eax, ebx
je 0x40d78f
push eax
call fcn.0040a418
pop ecx
test eax, eax
je 0x40d78f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49be14]
call fcn.0040a418
pop ecx
test eax, eax
je 0x40d7af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d7b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043f0
test esi, esi
jne 0x402ac6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044e0
jmp 0x402ae4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402944
mov edi, eax
test esi, esi
je 0x402ae4
cmp dword [ebx], 0
je 0x402ae4
dec esi
jmp 0x402acd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40350c
Capabilities:
Query or enumerate registry value

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

Function at 0x404274
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x4042d5
cmp word [0x45821c], 0xd7b2
jne 0x40429d
cmp dword [0x458224], 0
jbe 0x40429d
mov eax, 0x458218
call dword [0x458234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x456054
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 0x4042fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45601c], 0
jne 0x4042f1
push 0
push 0x456074
push 0x456054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b4ac
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 0x40b4e5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044e0
jmp 0x40b4ee
mov eax, ebx
mov edx, esi
call fcn.00404444
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bba0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba18
mov eax, dword [0x45700c]
cmp byte [eax], 0
je 0x40bc0d
mov eax, dword [0x456e60]
call fcn.00402e28
call fcn.00402870
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408b70
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 0x40bc54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc43
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x456e18]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x458714]
call fcn.00405b0c
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 0x40c8e4
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 0x40c948
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.00404658
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040866c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c94f
lea eax, [ebp - 0xc]
call fcn.004043f0
ret