joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c21210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
mov eax, dword [ebx]
push dword [edx + 0x78]
call dword [eax]
mov edx, dword [ebx + 4]
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, dword [edx + 0x3c]
mov eax, dword [ecx + edx + 0x7c]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x1c2132d
test eax, eax
je 0x1c2132d
mov eax, dword [esi + 0x10]
mov ecx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
push edi
push dword [esi + 0x1c]
call dword [eax]
mov edx, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
mov dword [ebp - 0x10], eax
call dword [edx]
mov edx, dword [ebx]
mov ecx, ebx
push dword [esi + 0x24]
mov dword [ebp - 0x1c], eax
call dword [edx]
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
jbe 0x1c21322
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx]
push dword [ecx + edi*4]
mov ecx, ebx
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x1c21312
mov ecx, dword [ebp - 0x14]
xor edx, edx
xor esi, esi
test ecx, ecx
je 0x1c212d5
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + esi*2]
cmp eax, edi
je 0x1c212c2
inc esi
cmp esi, ecx
jb 0x1c212b0
jmp 0x1c212d5
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push dword [edx + esi*4]
call dword [eax]
mov edx, eax
test edx, edx
jne 0x1c212d7
xor esi, esi
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp ebx, eax
jb 0x1c212ee
add eax, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
cmp ebx, eax
ja 0x1c212ee
mov ecx, ebx
xor ebx, ebx
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
push ecx
push ebx
mov ebx, dword [ebp - 4]
add eax, edi
push edx
push esi
push eax
push ebx
call dword [ebp + 8]
add esp, 0x1c
test al, al
jne 0x1c21315
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [ebp - 4]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [ebp - 0xc]
jb 0x1c21293
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1c21340
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x1c21350
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1c2134d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x1c2134d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret
Function at 0x1c21975
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 2
push ebx
push esi
push edi
jne 0x1c219e5
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 4
push eax
xor esi, esi
mov ebx, str.failed_count
push esi
push esi
push ebx
push dword [edi]
mov dword [ebp + 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x1c219b9
test eax, eax
je 0x1c219b6
xor al, al
jmp 0x1c21a03
mov esi, dword [ebp + 0xc]
inc esi
push esi
push ebx
push edi
mov dword [ebp + 0xc], esi
call fcn.01c21c26
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, dword [0x1c35be4]
jb 0x1c21a01
push 3
push str.state
push edi
call fcn.01c21c26
add esp, 0xc
jmp 0x1c219b2
cmp dword [ebp + 0xc], 1
jne 0x1c21a01
push 0
push str.failed_count
push dword [ebp + 8]
call fcn.01c21c26
add esp, 0xc
test eax, eax
jne 0x1c219b2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1c21a0a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.01c222f1
test al, al
je 0x1c21aaf
call fcn.01c23fb5
test al, al
jne 0x1c21aaf
cmp byte [ebp + 8], al
jne 0x1c21a36
call fcn.01c21ab5
test al, al
je 0x1c21aaf
push ebx
push edi
xor ebx, ebx
push ebx
call fcn.01c242e7
mov edi, eax
pop ecx
test edi, edi
je 0x1c21aad
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x40
push 0x40
push section..crthunk
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1c21aad
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x18]
mov esi, dword [edi]
push ebx
push 0x40
push section..crthunk
push 0x1c22cd1
push ebx
push str.NtMapViewOfSection
push 0x1c20000
push 0x1c35274
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, edi
call dword [esi + 4]
mov edx, dword [edi]
mov ecx, edi
push 1
mov esi, eax
call dword [edx]
test esi, esi
setns byte [0x1c3e4bc]
call fcn.01c21d2a
pop esi
pop edi
pop ebx
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x1c21ab5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push esi
push 3
push esi
push esi
push esi
push str.SOFTWAREcgNavBLBeacon
push 0x80000001
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1c21aed
xor al, al
jmp 0x1c21b70
push ebx
push edi
push 4
pop edi
lea eax, [ebp - 0x14]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push esi
mov ebx, str.state
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], esi
je 0x1c21b63
test eax, eax
jne 0x1c21b63
cmp dword [ebp - 0xc], edi
jne 0x1c21b63
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.01c21975
pop ecx
pop ecx
test al, al
je 0x1c21b63
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 2
push eax
push edi
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x1c21b6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1c21d2a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push 3
push edi
push str.SOFTWAREcgNavBLFinchList
push 0x80000001
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1c21dfb
mov eax, 0x104
lea ecx, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 4], eax
call fcn.01c21903
mov esi, edi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x104
push eax
push edi
push edi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], edi
push eax
push dword [ebp - 0x24]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1c21de9
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x18]
inc dword [ebp - 4]
inc eax
push eax
mov dword [ebp - 8], eax
call fcn.01c21903
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x24]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1c21de1
mov eax, dword [ebp - 8]
xor ecx, ecx
push edi
mov word [edi + eax*2 - 2], cx
call sym.chrome_elf.dll_AddDllToBlacklist
pop ecx
lea ecx, [ebp - 0x18]
call fcn.01c22802
inc esi
xor edi, edi
jmp 0x1c21d69
lea ecx, [ebp - 0x18]
call fcn.01c22802
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
call fcn.01c22802
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1c23124
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x1c3d130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push 0x208
push ebx
push eax
mov dword [ebp - 0x480], ebx
call fcn.01c276c0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
xor edi, edi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1c2336d
push 0x20a
lea eax, [ebp - 0x418]
push edi
push eax
call fcn.01c276c0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1c2336d
and dword [ebp - 0x420], ebx
xor eax, eax
mov word [ebp - 0x430], ax
mov byte [ebp - 0x479], al
lea eax, [ebp - 0x479]
push eax
mov dword [ebp - 0x41c], 7
call fcn.01c240b3
pop ecx
test al, al
jne 0x1c231fd
call fcn.01c2337e
test al, al
je 0x1c231f7
mov esi, str..pipeChromeCrashServices_
push esi
call fcn.01c2345e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x430]
call fcn.01c22914
jmp 0x1c232d4
xor edi, edi
mov eax, edi
jmp 0x1c23206
movzx eax, byte [ebp - 0x479]
xor edi, edi
test eax, eax
je 0x1c2335f
lea eax, [ebp - 0x20c]
push eax
call fcn.01c2400a
pop ecx
test al, al
je 0x1c23234
xor ebx, ebx
lea ecx, [ebp - 0x460]
push str.S_1_5_18
inc ebx
call fcn.01c22db9
jmp 0x1c23244
push 2
lea eax, [ebp - 0x478]
pop ebx
push eax
call fcn.01c2304e
pop ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.01c22d94
test bl, 2
je 0x1c23266
push edi
push 1
lea ecx, [ebp - 0x478]
and ebx, 0xfffffffd
call fcn.01c227bc
test bl, 1
je 0x1c2327c
push edi
push 1
lea ecx, [ebp - 0x460]
and ebx, 0xfffffffe
call fcn.01c227bc
cmp dword [ebp - 0x438], 0
jne 0x1c23298
push edi
push 1
lea ecx, [ebp - 0x448]
call fcn.01c227bc
jmp 0x1c2335f
mov esi, str..pipeGoogleCrashServices_
push esi
call fcn.01c2345e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x430]
call fcn.01c22914
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x430]
call fcn.01c233b8
push edi
push 1
lea ecx, [ebp - 0x448]
call fcn.01c227bc
push 0xc8
call fcn.01c25f27
mov edi, eax
pop ecx
test edi, edi
je 0x1c23331
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x448]
call fcn.01c22db9
or ebx, 4
lea esi, [ebp - 0x430]
cmp dword [ebp - 0x41c], 8
cmovae esi, dword [ebp - 0x430]
call fcn.01c22e16
push eax
push esi
push 0x160
push 7
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
lea eax, [ebp - 0x448]
push eax
call fcn.01c244f1
jmp 0x1c23333
xor eax, eax
mov dword [0x1c3e4d0], eax
test bl, 4
je 0x1c23351
push 0
push 1
lea ecx, [ebp - 0x448]
call fcn.01c227bc
mov eax, dword [0x1c3e4d0]
xor edi, edi
cmp dword [eax + 0xc], edi
je 0x1c2335f
mov byte [eax + 0xbd], 1
push edi
push 1
lea ecx, [ebp - 0x430]
call fcn.01c227bc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01c276a2
mov esp, ebp
pop ebp
ret
Function at 0x1c239db
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x1c356e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edi, edi
mov dword [ebp - 0x10], 0x1c35520
push edi
push 0x1c23989
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
call fcn.01c21210
push edi
call fcn.01c242e7
mov esi, eax
pop ecx
test esi, esi
je 0x1c23a85
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x40
push 0x40
push 0x1c41040
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1c23a7d
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
mov edi, dword [esi]
push eax
push 0x40
push 0x1c41040
push str.NtCreateFile
push 0x1c356d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
jns 0x1c23a6a
push 0x40
push 0
push 0x1c41040
call fcn.01c276c0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20
push 0x40
push 0x1c41040
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1c2400a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1c3d130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.01c276c0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push ebx
push eax
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1c24071
cmp eax, ebx
jae 0x1c24071
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.01c291b7
add esp, 0xc
test eax, eax
jne 0x1c24071
mov al, 1
jmp 0x1c240a3
push ebx
lea eax, [ebp - 0x20c]
push eax
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1c240a1
cmp eax, ebx
jae 0x1c240a1
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.01c291b7
add esp, 0xc
test eax, eax
je 0x1c2406d
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01c276a2
mov esp, ebp
pop ebp
ret
Function at 0x1c240b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push 4
pop ebx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ebx
push eax
push 1
xor edi, edi
mov dword [ebp - 0x10], ebx
push edi
push str.SOFTWAREPoliciesChromium
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1c24124
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.MetricsReportingEnabled
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1c24111
cmp dword [ebp - 8], edi
mov eax, dword [ebp + 8]
setne cl
mov byte [eax], cl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
jmp 0x1c24141
lea eax, [ebp - 4]
push eax
push 1
push edi
push str.SOFTWAREPoliciesChromium
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1c240e7
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1c241ea
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1c3d130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
mov esi, ecx
push ebx
push eax
call fcn.01c276c0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov di, word [ebp - 0xc]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
cmp edx, 5
jne 0x1c24290
test ecx, ecx
jle 0x1c2426e
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
cmp eax, 1
jne 0x1c24270
cmp di, 2
jae 0x1c24270
mov dword [esi], ebx
movzx ecx, di
mov eax, esi
mov dword [esi + 0x10], ecx
movzx ecx, word [ebp - 0xa]
mov dword [esi + 0x14], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01c276a2
mov esp, ebp
pop ebp
ret
push 6
pop eax
cmp edx, eax
jne 0x1c242bd
sub ecx, ebx
je 0x1c242b5
dec ecx
je 0x1c242ad
dec ecx
je 0x1c242a5
mov dword [esi], eax
jmp 0x1c24270
mov dword [esi], 5
jmp 0x1c24270
mov dword [esi], 4
jmp 0x1c24270
mov dword [esi], 3
jmp 0x1c24270
jle 0x1c2426e
mov dword [esi], 7
jmp 0x1c24270
Function at 0x1c2fbdd
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1c3d130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.01c2c1cf
mov dword [ebp - 0x14], eax
cmp dword [0x1c3fd18], esi
jne 0x1c2fcd0
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1c2fc5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1c2fdb0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1c2fdb0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1c2fdb0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x1c3fd18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x1c3fd1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x1c3fd20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1c3fd28], eax
test eax, eax
je 0x1c2fccd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1c3fd24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1c2fcf5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1c2fce8
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1c2fd0a
push 4
pop eax
jmp 0x1c2fdb2
cmp dword [ebp - 0x14], esi
je 0x1c2fd0a
push dword [0x1c3fd18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1c2fcef
mov eax, dword [0x1c3fd24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1c2fd68
cmp dword [0x1c3fd28], edi
je 0x1c2fd68
push eax
call ebx
push dword [0x1c3fd28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1c2fd68
test eax, eax
je 0x1c2fd68
call ecx
test eax, eax
je 0x1c2fd5d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1c2fd5d
test byte [ebp - 8], 1
jne 0x1c2fd68
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1c2fd98
mov eax, dword [0x1c3fd1c]
cmp eax, edi
je 0x1c2fd95
push eax
call ebx
test eax, eax
je 0x1c2fd95
call eax
mov esi, eax
test esi, esi
je 0x1c2fd95
mov eax, dword [0x1c3fd20]
cmp eax, edi
je 0x1c2fd95
push eax
call ebx
test eax, eax
je 0x1c2fd95
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1c3fd18]
call ebx
test eax, eax
je 0x1c2fdb0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1c2fdb2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01c276a2
mov esp, ebp
pop ebp
ret
Function at 0x403320
Capabilities:
Query or enumerate registry value

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

Function at 0x40409c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f048], 0
je 0x4040fd
cmp word [0x45f21c], 0xd7b2
jne 0x4040c5
cmp dword [0x45f224], 0
jbe 0x4040c5
mov eax, 0x45f218
call dword [0x45f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a06c
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 0x404124
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a030], 0
jne 0x404119
push 0
push 0x45a064
push 0x45a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e44
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405eaa
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404490
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ee4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e94
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405eb1
lea eax, [ebp - 0x10]
call fcn.00404220
ret

Function at 0x40b090
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 0x40b0c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404310
jmp 0x40b0d2
mov eax, ebx
mov edx, esi
call fcn.00404274
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b794
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b5fc
mov eax, dword [0x45e928]
cmp byte [eax], 0
je 0x40b810
mov eax, dword [0x45e730]
call fcn.00402d14
call fcn.00402bb4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040886c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b858
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b846
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45e6dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f664]
call fcn.004052b0
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