joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4102a9
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 8], edx
mov ebx, ecx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.Filename
push dword [ebp - 8]
mov dword [ebp + 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41035c
cmp dword [ebp - 4], 1
jne 0x41035c
cmp byte [ebp - 0x10b], 0x3a
lea eax, [ebp - 0x10c]
push eax
jne 0x410318
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x41032e
lea eax, [ebp - 0x210]
push eax
push str._s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, dword [ebx + 0xdf4]
jmp 0x41034e
push edi
lea eax, [esi + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x41035c
mov esi, dword [esi + 0xc10]
test esi, esi
jne 0x410336
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x410355

Function at 0x4106d5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push edi
xor edi, edi
mov ebx, ecx
push edi
lea eax, [ebp - 0xc]
lea ecx, [ebx + 0x1080]
push eax
mov edx, 0x20019
mov dword [ebp - 0x14], edi
call fcn.0040695e
test eax, eax
je 0x410708
or eax, 0xffffffff
jmp 0x410816
mov dword [ebp - 4], edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, edi
jne 0x4107fb
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4107f3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.UtilityName
push dword [ebp - 0x10]
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410797
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x430]
push eax
mov ecx, ebx
call fcn.004102a9
test eax, eax
je 0x4107ea
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + 0x1080]
push eax
lea eax, [ebp - 0x32c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x430]
push eax
push ebx
call fcn.004105ea
test eax, eax
je 0x4107ea
inc dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 4]
jmp 0x41070b
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 0x14
mov dword [ebx + 0x84], ecx
pop edi
pop ebx
leave
ret
Function at 0x411b12
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41b298
call fcn.00415e24
mov edi, 0x94
mov eax, edi
call fcn.00411ab0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x421a7c], ecx
mov eax, dword [esi + 4]
mov dword [0x421a88], eax
mov edx, dword [esi + 8]
mov dword [0x421a8c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x421a80], esi
cmp ecx, 2
je 0x411b72
or esi, 0x8000
mov dword [0x421a80], esi
shl eax, 8
add eax, edx
mov dword [0x421a84], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x411bad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411bad
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411bc5
cmp eax, 0x20b
je 0x411bb2
mov dword [ebp - 0x1c], esi
jmp 0x411bd9
cmp dword [ecx + 0x84], 0xe
jbe 0x411bad
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x411bd3
cmp dword [ecx + 0x74], 0xe
jbe 0x411bad
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00411d08
pop ecx
test eax, eax
jne 0x411c05
cmp dword [0x4219f0], 1
jne 0x411bf2
call fcn.004155f3
push 0x1c
call fcn.0041547c
push 0xff
call fcn.004152e1
pop ecx
pop ecx
call fcn.00415d9c
mov dword [ebp - 4], esi
call fcn.00415bf1
test eax, eax
jge 0x411c1e
push 0x1b
call fcn.00411aed
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4230bc], eax
call fcn.00415acf
mov dword [0x4219e8], eax
call fcn.00415a2d
test eax, eax
jge 0x411c44
push 8
call fcn.00411aed
pop ecx
call fcn.004157fa
test eax, eax
jge 0x411c55
push 9
call fcn.00411aed
pop ecx
push 1
call fcn.00415311
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x411c6b
push eax
call fcn.00411aed
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041579d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x411c8c
movzx eax, word [ebp - 0x40]
jmp 0x411c8f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004062df
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x411cad
push edi
call fcn.0041543c
call fcn.0041545e
jmp 0x411cdf
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00415e5f
ret
Function at 0x41537b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x421abc], esi
push edi
jne 0x41539b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x421ab8], esi
mov byte [0x421ab4], al
jne 0x415401
mov ecx, dword [0x423088]
test ecx, ecx
je 0x4153e2
mov eax, dword [0x423084]
sub eax, 4
cmp eax, ecx
jmp 0x4153db
mov eax, dword [eax]
test eax, eax
je 0x4153cd
call eax
mov eax, dword [0x423084]
sub eax, 4
cmp eax, dword [0x423088]
mov dword [0x423084], eax
jae 0x4153c5
mov eax, 0x41f020
mov esi, 0x41f028
cmp eax, esi
mov edi, eax
jae 0x415401
mov eax, dword [edi]
test eax, eax
je 0x4153fa
call eax
add edi, 4
cmp edi, esi
jb 0x4153f2
mov eax, 0x41f02c
mov esi, 0x41f030
cmp eax, esi
mov edi, eax
jae 0x415420
mov eax, dword [edi]
test eax, eax
je 0x415419
call eax
add edi, 4
cmp edi, esi
jb 0x415411
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41543a
push dword [ebp + 8]
mov dword [0x421abc], 1
call fcn.004152e1
pop ebp
ret

Function at 0x41547c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x420150]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x420180]
je 0x4154b1
inc eax
cmp eax, 0x13
jb 0x4154a2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x420180]
jne 0x4155d7
mov eax, dword [0x4219f0]
cmp eax, 1
je 0x4155af
cmp eax, edx
jne 0x4154e1
cmp dword [0x420144], 1
je 0x4155af
cmp ecx, 0xfc
je 0x4155d7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x415517
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004110c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00413750
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41554b
mov eax, edi
push eax
call fcn.00413750
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ca00
push edi
call fcn.00410f90
add esp, 0x10
push edi
call fcn.00413750
push dword [esi + 0x420184]
mov ebx, eax
call fcn.00413750
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00411ab0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004110c0
push edi
push ebx
call fcn.004110d0
push 0x41c9e0
push ebx
call fcn.004110d0
push dword [esi + 0x420184]
push ebx
call fcn.004110d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041743a
add esp, 0x2c
jmp 0x4155d7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x420184]
push dword [esi]
call fcn.00413750
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00414d4d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4164cf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00411ab0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41656a
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x421a7c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41656a
cmp eax, 1
je 0x41658b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41656a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416537
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416566
xor eax, eax
inc eax
jmp 0x4165aa
cmp edi, eax
jae 0x41656e
xor eax, eax
jmp 0x4165aa
cmp eax, esi
jae 0x416575
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x421a7c]
jmp 0x41658e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41743a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x421bec], ebx
push esi
push edi
jne 0x4174ba
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4174f5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cdac
push edi
call esi
test eax, eax
mov dword [0x421bec], eax
je 0x4174f5
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x421bf0], eax
call esi
cmp dword [0x421a7c], 2
mov dword [0x421bf4], eax
jne 0x4174ba
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x421bfc], eax
je 0x4174ba
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x421bf8], eax
mov eax, dword [0x421bf8]
test eax, eax
je 0x4174ff
call eax
test eax, eax
je 0x4174e6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x421bfc]
test eax, eax
je 0x4174e6
test byte [ebp - 8], 1
jne 0x4174ff
cmp dword [0x421a88], 4
jb 0x4174f9
or byte [ebp + 0x12], 0x20
jmp 0x41751e
xor eax, eax
jmp 0x41752e
or byte [ebp + 0x12], 4
jmp 0x41751e
mov eax, dword [0x421bf0]
test eax, eax
je 0x41751e
call eax
mov ebx, eax
test ebx, ebx
je 0x41751e
mov eax, dword [0x421bf4]
test eax, eax
je 0x41751e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x421bec]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417666
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x417694
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41769b
cmp ebx, dword [eax + 4]
jae 0x41769b
xor eax, eax
jmp 0x41788b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4176ac
xor eax, eax
inc eax
jmp 0x41788a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4176c2
cmp ecx, edx
jae 0x417807
cmp dword [eax + 4], 0
je 0x4176cb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4176b3
cmp dword [ebp + 8], 0
je 0x4176ed
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x417807
cmp eax, esi
jae 0x417807
mov eax, dword [0x421c00]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x417712
cmp dword [esi*4 + 0x421c08], edi
je 0x41780b
inc esi
cmp esi, eax
jl 0x417700
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x417887
cmp dword [ebp - 8], 0x1000000
jne 0x417887
test byte [ebp - 0xc], 0xcc
je 0x417790
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x417887
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x417887
cmp word [eax + 0x18], 0x10b
jne 0x417887
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x417887
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x417790
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x417790
test byte [ecx + 0x27], 0x80
jne 0x417807
push 1
push 0x421c48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4176a4
mov ecx, dword [0x421c00]
test ecx, ecx
mov edx, ecx
jle 0x4177c4
lea eax, [ecx*4 + 0x421c04]
cmp dword [eax], edi
je 0x4177c4
dec edx
sub eax, 4
test edx, edx
jg 0x4177b8
test edx, edx
jne 0x4177f5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4177d1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4177e9
lea eax, [edx*4 + 0x421c08]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4177d7
cmp ecx, 0x10
jge 0x4177f5
inc ecx
mov dword [0x421c00], ecx
push 0
push 0x421c48
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4176a4
xor eax, eax
jmp 0x41788a
test esi, esi
jle 0x4176a4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x421c48
call ebx
test eax, eax
jne 0x4176a4
cmp dword [esi*4 + 0x421c08], edi
je 0x417861
mov eax, dword [0x421c00]
lea esi, [eax - 1]
test esi, esi
jl 0x41784f
cmp dword [esi*4 + 0x421c08], edi
je 0x41784b
dec esi
jns 0x41783f
test esi, esi
jge 0x41785f
cmp eax, 0x10
jge 0x41785a
inc eax
mov dword [0x421c00], eax
lea esi, [eax - 1]
jmp 0x417861
je 0x417879
xor ecx, ecx
test esi, esi
jl 0x417879
lea eax, [ecx*4 + 0x421c08]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x417867
push 0
push 0x421c48
call ebx
jmp 0x4176a4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41788f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x422f60]
push edi
jae 0x417a64
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x422f80]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x417a64
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x41793a
test dl, 2
jne 0x41793a
test dl, 0x48
je 0x417904
cmp byte [eax + 5], 0xa
je 0x417904
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41794d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x417935
mov dword [0x421a74], ecx
jmp 0x417a6b
cmp eax, 0x6d
jne 0x417941
xor eax, eax
jmp 0x417a78
push eax
call fcn.0041804b
pop ecx
jmp 0x417a75
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x417a5f
test eax, eax
je 0x417974
cmp byte [ebx], 0xa
jne 0x417974
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41797d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x417a59
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x417a49
cmp al, 0xd
je 0x4179af
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x417a3b
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4179c9
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4179c4
add dword [ebp - 8], 2
jmp 0x417a1d
mov dword [ebp - 8], eax
jmp 0x417a37
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4179f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417a37
cmp dword [ebp - 0x10], 0
je 0x417a37
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x417a12
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x417a1d
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x417a3a
cmp ebx, dword [ebp + 0xc]
jne 0x417a22
cmp byte [ebp - 1], 0xa
jne 0x417a22
mov byte [ebx], 0xa
jmp 0x417a3a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00417fbf
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x417a3b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x417993
jmp 0x417a59
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x417a59
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x417a78
and dword [0x421a74], 0
mov dword [0x421a70], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417aca
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41cdc8
call fcn.00415e24
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x421c4c], edi
jne 0x417b0e
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417af9
mov dword [0x421c4c], ebx
jmp 0x417b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417b0e
mov dword [0x421c4c], 2
mov eax, dword [0x421c4c]
cmp eax, ebx
jne 0x417b2e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x417bf1
cmp eax, 2
je 0x417b37
cmp eax, edi
jne 0x417b5f
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x417b4a
mov eax, dword [0x421a40]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x417b66
xor eax, eax
jmp 0x417bf1
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00411ab0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x417b99
cmp esi, edi
jne 0x417baf
push dword [ebp - 0x20]
call fcn.00410e47
pop ecx
mov esi, eax
cmp esi, edi
je 0x417b5f
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x417be2
cmp dword [ebp + 0x14], edi
jne 0x417bcc
push edi
push edi
jmp 0x417bd2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x417bee
push esi
call fcn.00410d9d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00415e5f
ret
Function at 0x417bfa
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x41cdd8
call fcn.00415e24
xor esi, esi
cmp dword [0x421c50], esi
jne 0x417c3e
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417c29
mov dword [0x421c50], edi
jmp 0x417c3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417c3e
mov dword [0x421c50], 2
mov eax, dword [0x421c50]
cmp eax, 2
je 0x417d1f
cmp eax, esi
je 0x417d1f
cmp eax, 1
jne 0x417c83
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x417c6c
mov eax, dword [0x421a40]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x417c8a
xor eax, eax
jmp 0x417d31
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00411ab0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x417cc0
cmp edi, esi
jne 0x417cdb
lea eax, [ebx + ebx]
push eax
call fcn.00410e47
pop ecx
mov edi, eax
cmp edi, esi
je 0x417c83
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417d0e
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x417cf8
push esi
push esi
jmp 0x417cfe
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x417d1a
push edi
call fcn.00410d9d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x417d31
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00415e5f
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 0x2003
mov dword [ebp - 0x28], 0x4010fb
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.WinClass32
push 0x1f4
push dword [ebp + 8]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
mov eax, 0xc8
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
push 0
push dword [ebp + 8]
push 0
push 0
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x5c]
push dword [ebp - 0x58]
push 0xcf0000
push str.WinClass32
push str.WinClass32
push 0
call fcn.00401b14
mov dword [0x40300f], eax
push 1
push dword [0x40300f]
call sub.user32.dll_ShowWindow
push dword [0x40300f]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
cmp eax, 0
je 0x4010f4
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4010cc
mov eax, dword [ebp - 0x44]
leave
ret 0x10

Function at 0x401157
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x30]
cmp byte [eax + 2], 0
je 0x401168
jmp 0x401b0d
ret

Function at 0x401169
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov eax, dword fs:[0x30]
test dword [eax + 0x68], 0x70
je 0x40117d
jmp 0x401b0d
ret