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

Disassembly:
not edx
not edx
mov eax, 0
cld
clc
nop
cld
not ebp
not ebp
cld
dec esp
inc esp
cld
push eax
nop
sahf
wait
mov ch, ch
not dh
not dh
imul eax, eax, 0x10
stc
xchg dword [esp], eax
jmp 0x4295b6
add al, dl
lea edx, [edx + ebx]
sub cl, 0x31
push dword [edx + 0x20]
pop esi
lea esi, [ebx + esi]
jmp 0x42972c
cmp dh, 0x94
add esi, ebx
clc
ret 4
sahf
cmc
sub dword [esp], eax
cld
movzx eax, byte [edi]
sub edi, 0xffffffff
jmp 0x4297b3
mov edi, dword [edx + 0x1c]
cmp eax, 0xffffffa2
not eax
adc eax, 0xe68ae329
mov eax, 0x334a8761
cmp ah, 2
mov esi, dword [edx + 0x24]
dec dh
cld
add esi, ebx
xchg edx, edx
movzx eax, word [esi + ecx*2]
jmp 0x429671
mov dl, dh
add edi, ebx
mov esi, dword [edi + eax*4]
jmp 0x4295ad
lea ecx, [ecx]
not esi
not esi
not bl
not bl
jne 0x4250d3
xchg edx, edx
xchg edx, edx
lea ecx, [ecx]
xor eax, 0x69521502
jmp 0x4298e8
ret
push dword [ebx + 0x3c]
mov edx, ecx
cmp cl, 0xb8
xchg ecx, edi
xchg ecx, esi
nop
lahf
cld
sbb al, bl
pop eax
mov edi, ecx
mov edx, dword [eax + ebx + 0x78]
jmp 0x4294cc
add ecx, 1
cmp edi, 0xffffffa9
lodsd eax, dword [esi]
jmp 0x42979e
push 0xffffffffffffffff
xchg ah, al
cmp ah, dl
xchg edi, edi
not al
mov edi, esi
and al, dh
pop ecx
jmp 0x429720
lea edi, [eax + ebx]
xchg edx, ebp
xchg edx, ebp
cmp ecx, dword [edx + 0x18]
je 0x429700
jmp 0x4250be
sub dword [esp], eax
pop eax
test byte [edi], 0xff
jmp 0x429697
nop
sub eax, dword [esp + 4]
jne 0x429720
jmp 0x429617
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0xf1e0755
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x32f30979
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x406635
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d448]
jne 0x40663f
repz ret
jmp fcn.0040862b

Function at 0x407c43
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d448]
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.0040533f
and dword [ebp - 0x14], 0
cmp dword [0x42d930], 0
mov dword [ebp - 0x18], eax
jne 0x407cf6
push 0x4021b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407d9e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021a4
push ebx
call edi
test eax, eax
je 0x407d9e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402194
push ebx
mov dword [0x42d930], eax
call edi
push eax
call esi
push 0x402180
push ebx
mov dword [0x42d934], eax
call edi
push eax
call esi
push 0x402164
push ebx
mov dword [0x42d938], eax
call edi
push eax
call esi
mov dword [0x42d940], eax
test eax, eax
je 0x407cf6
push 0x40214c
push ebx
call edi
push eax
call esi
mov dword [0x42d93c], eax
mov eax, dword [0x42d93c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407d4f
cmp dword [0x42d940], ecx
je 0x407d4f
push eax
call esi
push dword [0x42d940]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407d4f
test ebx, ebx
je 0x407d4f
call edi
test eax, eax
je 0x407d46
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407d46
test byte [ebp - 8], 1
jne 0x407d4f
or dword [ebp + 0x10], 0x200000
jmp 0x407d82
mov eax, dword [0x42d934]
cmp eax, dword [ebp - 0x18]
je 0x407d82
push eax
call esi
test eax, eax
je 0x407d82
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407d82
mov eax, dword [0x42d938]
cmp eax, dword [ebp - 0x18]
je 0x407d82
push eax
call esi
test eax, eax
je 0x407d82
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42d930]
call esi
test eax, eax
je 0x407d9e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407da0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406635
leave
ret
Function at 0x409f20
Capabilities:
Copy file
Get uefi variable

Disassembly:
sub esp, 0x934
cmp dword [0x4a94a0], 0x37
jne 0x409fa5
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
push 0x402a68
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0
lea ecx, [esp + 0x138]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
lea edx, [esp]
push edx
push 0
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_PulseEvent]
push 0
lea ecx, [esp + 0x538]
push ecx
push 0x402a7c
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edx, dword [0x4a94a4]
mov ecx, dword [0x4a8b84]
mov al, byte [edx + esi + 0x38d6]
mov byte [ecx + esi], al
add esp, 0x934
ret
Function at 0x403370
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [0x4a9e7c]
mov ecx, dword [0x4a6d84]
sub esp, 0x424
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40346d
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleCount]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x4a9e7c], 0x959
jne 0x403453
push 0
call esi
push 0
lea eax, [esp + 0x34]
push eax
push 0x402d64
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0
push 0x402d88
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edx, dword [esp + 0x14]
push edx
call fcn.004031d0
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x4033b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x409cc0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4349cc]
jne 0x409cca
repz ret
jmp fcn.0040d0b1

Function at 0x40cb07
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.00408653
and dword [ebp - 4], 0
cmp dword [0x43f924], 0
mov ebx, eax
jne 0x40cbb8
push 0x40235c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40cc69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402350
push edi
call esi
test eax, eax
je 0x40cc69
push eax
call fcn.004085e1
mov dword [esp], 0x402340
push edi
mov dword [0x43f924], eax
call esi
push eax
call fcn.004085e1
mov dword [esp], 0x40232c
push edi
mov dword [0x43f928], eax
call esi
push eax
call fcn.004085e1
mov dword [esp], 0x402310
push edi
mov dword [0x43f92c], eax
call esi
push eax
call fcn.004085e1
pop ecx
mov dword [0x43f934], eax
test eax, eax
je 0x40cbb8
push 0x4022f8
push edi
call esi
push eax
call fcn.004085e1
pop ecx
mov dword [0x43f930], eax
mov eax, dword [0x43f930]
cmp eax, ebx
je 0x40cc10
cmp dword [0x43f934], ebx
je 0x40cc10
push eax
call fcn.0040865c
push dword [0x43f934]
mov esi, eax
call fcn.0040865c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40cc10
test edi, edi
je 0x40cc10
call esi
test eax, eax
je 0x40cc07
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40cc07
test byte [ebp - 0xc], 1
jne 0x40cc10
or dword [ebp + 0x10], 0x200000
jmp 0x40cc49
mov eax, dword [0x43f928]
cmp eax, ebx
je 0x40cc49
push eax
call fcn.0040865c
pop ecx
test eax, eax
je 0x40cc49
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cc49
mov eax, dword [0x43f92c]
cmp eax, ebx
je 0x40cc49
push eax
call fcn.0040865c
pop ecx
test eax, eax
je 0x40cc49
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f924]
call fcn.0040865c
pop ecx
test eax, eax
je 0x40cc69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40cc6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403720
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x4a3b8c]
mov ecx, dword [0x4a0a94]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40382d
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4a3b8c], 0x959
jne 0x403813
push 0
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x43c]
push ecx
push 0
push 0
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea edx, [esp + 0x1c]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [esp + 0x83c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402e08
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402e28
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x10]
push edx
call fcn.00403580
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x40745a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436248]
jne 0x407464
repz ret
jmp fcn.0040cbe8

Function at 0x40d6df
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.00409bf5
and dword [ebp - 4], 0
cmp dword [0x439918], 0
mov ebx, eax
jne 0x40d790
push 0x4024dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d841
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024d0
push edi
call esi
test eax, eax
je 0x40d841
push eax
call fcn.00409b83
mov dword [esp], 0x4024c0
push edi
mov dword [0x439918], eax
call esi
push eax
call fcn.00409b83
mov dword [esp], 0x4024ac
push edi
mov dword [0x43991c], eax
call esi
push eax
call fcn.00409b83
mov dword [esp], 0x402490
push edi
mov dword [0x439920], eax
call esi
push eax
call fcn.00409b83
pop ecx
mov dword [0x439928], eax
test eax, eax
je 0x40d790
push 0x402478
push edi
call esi
push eax
call fcn.00409b83
pop ecx
mov dword [0x439924], eax
mov eax, dword [0x439924]
cmp eax, ebx
je 0x40d7e8
cmp dword [0x439928], ebx
je 0x40d7e8
push eax
call fcn.00409bfe
push dword [0x439928]
mov esi, eax
call fcn.00409bfe
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d7e8
test edi, edi
je 0x40d7e8
call esi
test eax, eax
je 0x40d7df
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d7df
test byte [ebp - 0xc], 1
jne 0x40d7e8
or dword [ebp + 0x10], 0x200000
jmp 0x40d821
mov eax, dword [0x43991c]
cmp eax, ebx
je 0x40d821
push eax
call fcn.00409bfe
pop ecx
test eax, eax
je 0x40d821
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d821
mov eax, dword [0x439920]
cmp eax, ebx
je 0x40d821
push eax
call fcn.00409bfe
pop ecx
test eax, eax
je 0x40d821
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439918]
call fcn.00409bfe
pop ecx
test eax, eax
je 0x40d841
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d843
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403660
Capabilities:
Query or enumerate registry value

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

Function at 0x404504
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f048], 0
je 0x404565
cmp word [0x47f21c], 0xd7b2
jne 0x40452d
cmp dword [0x47f224], 0
jbe 0x40452d
mov eax, 0x47f218
call dword [0x47f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x40458c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47302c], 0
jne 0x404581
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b2c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d5c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405baf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405baf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c38
xor eax, eax
push ebp
push 0x405c31
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405968
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c16
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d98
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c16
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405c38
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405d52
cmp byte [ebp - 0xd], 0
jne 0x405c7f
cmp byte [ebp - 0x12], 0
je 0x405d52
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c98
dec ebx
cmp byte [ebx], 0x2e
je 0x405ca7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c97
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d52
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405ce4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d52
cmp byte [ebp - 0xd], 0
je 0x405d52
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d52
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408158
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081e8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081e8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40819b
test edx, 3
jne 0x40818a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408195
jmp 0x40819b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40819b
cmp dword [ecx - 8], 1
je 0x4081a5
mov edx, ebx
or edx, 3
call fcn.00404dd0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081b7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404684

Function at 0x4081f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408284
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408284
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408237
test edx, 3
jne 0x408226
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408231
jmp 0x408237
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408237
cmp dword [ecx - 8], 1
je 0x408241
mov edx, ebx
or edx, 3
call fcn.00404dd0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408253
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404684

Function at 0x40b4e8
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 0x40b521
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404774
jmp 0x40b52a
mov eax, ebx
mov edx, esi
call fcn.004046d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b534
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 0x40b556
movzx eax, byte [esp]
jmp 0x40b558
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bbe8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba60
mov eax, dword [0x47e29c]
cmp byte [eax], 0
je 0x40bc64
mov eax, dword [0x47e094]
call fcn.00403028
call fcn.00402de8
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.00408c80
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 0x40bcac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc9a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47e03c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4817f4]
call fcn.00405910
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 0x40c4f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c5ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040471c
lea eax, [ebp - 4]
call fcn.00404b98
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c5b8
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c5b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b48
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c59b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c5e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c59b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5b8
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5d5
lea eax, [ebp - 4]
call fcn.00404684
ret