joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4483c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4483ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4483ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408c00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420558]
jne 0x408c0a
repz ret
jmp fcn.0040dbac

Function at 0x4096ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420558]
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.00403e38
and dword [ebp - 0x14], 0
cmp dword [0x421cdc], 0
mov dword [ebp - 0x18], eax
jne 0x409761
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409809
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409809
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x421cdc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x421ce0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x421ce4], eax
call edi
push eax
call esi
mov dword [0x421cec], eax
test eax, eax
je 0x409761
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x421ce8], eax
mov eax, dword [0x421ce8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4097ba
cmp dword [0x421cec], ecx
je 0x4097ba
push eax
call esi
push dword [0x421cec]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4097ba
test ebx, ebx
je 0x4097ba
call edi
test eax, eax
je 0x4097b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4097b1
test byte [ebp - 8], 1
jne 0x4097ba
or dword [ebp + 0x10], 0x200000
jmp 0x4097ed
mov eax, dword [0x421ce0]
cmp eax, dword [ebp - 0x18]
je 0x4097ed
push eax
call esi
test eax, eax
je 0x4097ed
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4097ed
mov eax, dword [0x421ce4]
cmp eax, dword [ebp - 0x18]
je 0x4097ed
push eax
call esi
test eax, eax
je 0x4097ed
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x421cdc]
call esi
test eax, eax
je 0x409809
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40980b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c00
leave
ret
Function at 0x4013b4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4013c6
mov eax, dword [0x48e08b]
shl eax, 2
mov dword [0x48e08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0047f16c
pop edx
call fcn.0047f0d0
call fcn.0047f1ac
push 0
call fcn.00480824
pop ecx
push 0x48e034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x48e093], eax
push 0
jmp fcn.00487c64

Function at 0x4019f8
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push 0x48fcf4
push ebx
call fcn.0047fb38
add esp, 8
test eax, eax
jne 0x401a16
xor eax, eax
pop ebx
pop ebp
ret
push ebx
call sub.SHLWAPI.DLL_PathFileExistsW
test eax, eax
jne 0x401a25
xor eax, eax
pop ebx
pop ebp
ret
push ebx
call sub.KERNEL32.DLL_GetDriveTypeW
cmp eax, 2
je 0x401a39
cmp eax, 5
je 0x401a39
xor edx, edx
jmp 0x401a3e
mov edx, 1
mov eax, edx
pop ebx
pop ebp
ret

Function at 0x401b08
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov ecx, 4
push esi
push edi
lea edi, [ebp - 0x10]
mov esi, 0x48f97c
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [0x48f554]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
push eax
push 0x401a44
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401b4c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push eax
call sub.USER32.DLL_OpenClipboard
test eax, eax
je 0x401ba4
call sub.USER32.DLL_EmptyClipboard
push esi
call fcn.0047f978
pop ecx
add eax, eax
add eax, 2
push eax
push 0x2000
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_GlobalLock
push esi
push eax
call fcn.0047f990
add esp, 8
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
mov eax, dword [ebp + 0xc]
push eax
call sub.USER32.DLL_SetClipboardData
call sub.USER32.DLL_CloseClipboard
pop esi
pop ebx
pop ebp
ret
Function at 0x402098
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
lea edx, [ebp - 4]
push ebx
mov dword [ebp - 8], eax
push edx
xor ebx, ebx
cmp dword [ebp + 0x14], 0
je 0x4020b7
mov ecx, 0x100
jmp 0x4020b9
xor ecx, ecx
or ecx, 0x20019
push ecx
push 0
cmp dword [0x48e1c8], 0
je 0x4020d2
mov eax, dword [0x48e1c8]
jmp 0x4020d7
mov eax, 0x48fbae
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402128
cmp dword [ebp + 0x10], 1
jne 0x4020f5
mov dword [ebp - 8], 0x104
jmp 0x402102
cmp dword [ebp + 0x10], 4
jne 0x402102
mov dword [ebp - 8], 4
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
lea eax, [ebp + 0x10]
push eax
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
test ebx, ebx
sete al
and eax, 1
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x402138
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
cmp dword [ebp + 0x14], 0
je 0x402153
mov edx, 0x100
jmp 0x402155
xor edx, edx
or edx, 0x20006
push edx
push 0
cmp dword [0x48e1c8], 0
je 0x40216e
mov eax, dword [0x48e1c8]
jmp 0x402173
mov eax, 0x48fbaf
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4021bf
cmp esi, 1
jne 0x402195
mov eax, dword [ebp + 0xc]
call fcn.0041d0f4
mov edi, eax
jmp 0x40219f
cmp esi, 4
jne 0x40219f
mov edi, 4
push edi
mov eax, dword [ebp + 0xc]
push eax
push esi
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.ADVAPI32.DLL_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4021c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
mov eax, 0x490388
push ebx
push esi
push edi
call fcn.0047fb84
mov dword [ebp - 8], 2
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.0048c464
inc dword [ebp - 8]
lea edx, [ebp + 8]
mov word [ebp - 0x14], 8
lea eax, [ebp + 8]
call fcn.0048c464
inc dword [ebp - 8]
mov esi, 0x48e1f4
lea edi, [ebp - 0x68]
mov ecx, 0x11
rep movsd dword es:[edi], dword [esi]
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.0047f61c
add esp, 0xc
lea edx, [ebp - 0x78]
mov dword [ebp - 0x68], 0x44
push edx
lea ecx, [ebp - 0x68]
push ecx
cmp dword [ebp + 0xc], 0
je 0x40223d
mov eax, dword [ebp + 0xc]
jmp 0x402242
mov eax, 0x48fbb1
push eax
push 0
push 0x8000020
push 0
push 0
push 0
cmp dword [ebp + 8], 0
je 0x40225b
mov edx, dword [ebp + 8]
jmp 0x402260
mov edx, 0x48fbb0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
cmp dword [ebp + 0x10], 0
mov ebx, eax
je 0x402294
test ebx, ebx
je 0x402281
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
jmp 0x402294
push 0
push str.CreateProcess
push 0x48fbb2
push 0
call sub.USER32.DLL_MessageBoxA
mov eax, ebx
mov edx, 2
push eax
lea eax, [ebp + 8]
dec dword [ebp - 8]
call fcn.0048c5f8
dec dword [ebp - 8]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.0048c5f8
pop eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push esi
push edi
mov eax, 0x490854
call fcn.0047fb84
mov esi, 0x48e238
lea edi, [ebp - 0x12c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
call fcn.00402b60
test eax, eax
je 0x402bda
lea eax, [ebp - 0x12c]
push eax
push 0
push 0
push 0x29
push 0
call sub.SHFOLDER.DLL_SHGetFolderPathA
jmp 0x402beb
push 0x104
lea edx, [ebp - 0x12c]
push edx
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0047f6fc
pop ecx
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
je 0x402c19
push 0x48fce7
lea edx, [ebp - 0x12c]
push edx
call fcn.0047f6c0
add esp, 8
mov word [ebp - 0x18], 8
lea edx, [ebp - 0x12c]
lea eax, [ebp - 4]
call fcn.0048c42c
mov edx, eax
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.0048c628
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x18], 0x14
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.0048c5f8
pop eax
mov word [ebp - 0x18], 8
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push esi
push edi
mov eax, 0x4908a0
call fcn.0047fb84
mov esi, 0x48e33c
lea edi, [ebp - 0x12c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [ebp - 0x12c]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
lea edx, [ebp - 0x12c]
push edx
call fcn.0047f6fc
pop ecx
movsx ecx, byte [ebp + eax - 0x12d]
cmp ecx, 0x5c
je 0x402cd6
push 0x48fce9
lea eax, [ebp - 0x12c]
push eax
call fcn.0047f6c0
add esp, 8
mov word [ebp - 0x18], 8
lea edx, [ebp - 0x12c]
lea eax, [ebp - 4]
call fcn.0048c42c
mov edx, eax
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.0048c628
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x18], 0x14
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.0048c5f8
pop eax
mov word [ebp - 0x18], 8
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4066d8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
lea ebx, [edi + 1]
cmp byte [ebx], 0
je 0x406736
mov al, byte [ebx]
movsx ecx, al
cmp ecx, 0x5c
je 0x4066ff
test al, al
jne 0x40672e
mov esi, ebx
lea eax, [ebp - 0x104]
sub esi, edi
push esi
push edi
push eax
call fcn.0047f89c
add esp, 0xc
mov byte [ebp + esi - 0x104], 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x104]
push ecx
call sub.KERNEL32.DLL_CreateDirectoryA
mov edx, eax
cmp byte [ebx], 0
je 0x406736
inc ebx
jmp 0x4066f1
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4091d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
push ebx
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x10]
mov edx, ecx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x14]
mov esi, ecx
jae 0x409267
inc byte [eax + 0x100]
xor ecx, ecx
mov cl, byte [eax + 0x100]
mov dl, byte [eax + ecx]
xor ecx, ecx
add byte [eax + 0x101], dl
xor edx, edx
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
add ecx, eax
add edx, eax
mov bl, byte [ecx]
mov byte [ebp - 5], bl
mov bl, byte [edx]
mov byte [ecx], bl
mov cl, byte [ebp - 5]
mov byte [edx], cl
xor edx, edx
mov dl, byte [eax + 0x100]
xor ecx, ecx
mov cl, byte [eax + 0x101]
mov dl, byte [eax + edx]
add dl, byte [eax + ecx]
mov cl, byte [esi]
and edx, 0xff
inc esi
xor cl, byte [eax + edx]
mov edx, dword [ebp - 0xc]
mov byte [edx], cl
inc dword [ebp - 4]
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x14]
jb 0x4091f9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov esi, 0x493f10
test cx, cx
je 0x4092a9
movzx ebx, ax
sar ebx, 8
dec ecx
xor bl, byte [edx]
inc edx
and ebx, 0xff
shl eax, 8
mov bx, word [esi + ebx*2]
xor bx, ax
test cx, cx
mov eax, ebx
jne 0x409288
and ax, 0xffff
pop esi
pop ebx
pop ebp
ret

Function at 0x40977c
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push 0x4943d8
push ebx
call fcn.0047fb38
add esp, 8
test eax, eax
jne 0x40979a
xor eax, eax
pop ebx
pop ebp
ret
push ebx
call sub.SHLWAPI.DLL_PathFileExistsW
test eax, eax
jne 0x4097a9
xor eax, eax
pop ebx
pop ebp
ret
push ebx
call sub.KERNEL32.DLL_GetDriveTypeW
cmp eax, 2
sete al
and eax, 1
pop ebx
pop ebp
ret
Function at 0x418be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x499794
cmp dword [edi], 0
jne 0x418c5c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x499790]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4945bc
mov ecx, 2
call fcn.0042b748
mov edx, 0x418bb8
lea eax, [esi + 5]
call fcn.00418bd8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00418bd8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x418c31
mov dword [0x499790], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x419fe4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41a14d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0042d158
mov eax, dword [ebp - 0x10]
call fcn.00419d7c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x41a036
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0042d610
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041a348
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a10b
xor eax, eax
push ebp
push 0x41a104
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00419ebc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0041a17c
test al, al
je 0x41a0e2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0042d1b0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41a0e2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042d570
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x41a0dc
mov eax, dword [ebp - 0x14]
call fcn.0042d570
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0042d2b0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00419fe4
dec ebx
cmp ebx, 0xffffffff
jne 0x41a095
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a10b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00419ebc
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.0042d570
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00419ea8
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a154
lea eax, [ebp - 0x3c]
call fcn.0042d0c0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0042d0e4
ret
Function at 0x41a10b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41a14d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0042d158
mov eax, dword [ebp - 0x10]
call fcn.00419d7c
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x41a036
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.0042d610
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041a348
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41a10b
xor eax, eax
push ebp
push 0x41a104
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00419ebc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0041a17c
test al, al
je 0x41a0e2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.0042d1b0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41a0e2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042d570
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x41a0dc
mov eax, dword [ebp - 0x14]
call fcn.0042d570
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0042d2b0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00419fe4
dec ebx
cmp ebx, 0xffffffff
jne 0x41a095
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a10b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00419ebc
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.0042d570
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00419ea8
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a154
lea eax, [ebp - 0x3c]
call fcn.0042d0c0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0042d0e4
ret

Function at 0x41a17c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0042be30
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x499298]
cmp byte [edx + 0xc], 0
je 0x41a1e0
mov edx, dword [0x499290]
cmp dword [edx], 2
jne 0x41a1e0
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x41a2d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0042d570
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x41a32c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x499274]
mov dl, 1
mov eax, dword [0x419c88]
call fcn.0041f134
call fcn.0042cd20
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00419d90
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e890
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x41e8c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042d1b0
jmp 0x41e8d2
mov eax, ebx
mov edx, esi
call fcn.0042d114
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x41ef84
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x41edfc
mov eax, dword [0x499444]
cmp byte [eax], 0
je 0x41eff1
mov eax, dword [0x499448]
call fcn.0042bcb0
call fcn.0042b6b4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0041d0f4
push eax
lea eax, [esp + 0x50]
push eax
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 0x41f038
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x41f027
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x499304]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x499644]
call fcn.0042e870
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret