joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4435d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x443603
push esi
call fcn.00451980
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4435fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x443689
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x443672
mov eax, dword [esi + 8]
test eax, eax
je 0x443627
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44366e
cmp eax, 2
je 0x443672
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44361a
cmp eax, 3
je 0x44364d
cmp eax, 1
jne 0x44361a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44361a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44361a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004436b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x443698
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004436b0
add esp, 4
pop esi
ret

Function at 0x443f20
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x443f41
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x443f41
mov eax, dword [eax + 0x44]
test eax, eax
je 0x443f41
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4779ad
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4779e5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00475a64
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00475a3c
jmp 0x4779f1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47909b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4790dd
call fcn.0047eb5c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4790dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4790d4
xor eax, eax
jmp 0x4790e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004790eb
pop edi
pop esi
pop ebx
ret 4

Function at 0x47f08c
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 0x47f0ba
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f0d8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047eff2
jmp 0x47f0d8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f0d8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047eff2
test edi, edi
mov eax, edi
jne 0x47f0c2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1228058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x12281a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x122807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x122806a
add dl, dl
jne 0x1228089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x12280dc
xor eax, eax
add dl, dl
jne 0x1228096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x122817d
add dl, dl
jne 0x12280a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12280b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12280bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12280c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x12280d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1228075
mov eax, 1
add dl, dl
jne 0x12280ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x12280f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x12280e1
sub eax, ebx
mov ebx, 1
jne 0x1228128
mov ecx, 1
add dl, dl
jne 0x122810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1228119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1228105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1228075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x122813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x122814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1228136
cmp eax, 0x7d00
jae 0x122816d
cmp eax, 0x500
jb 0x1228168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1228075
cmp eax, 0x7f
ja 0x1228170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1228075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x122819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1228075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10001460
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1000d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x1000148c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029a4
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001491
sub eax, edx
sar eax, 1
dec eax
push esi
js 0x100014ae
cmp word [ebx + eax*2], 0x5c
je 0x100014c0
dec eax
jns 0x100014a4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029a4
mov esp, ebp
pop ebp
ret
lea esi, [ebx + eax*2]
test esi, esi
je 0x100014ae
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x100014e7
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100029a4
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100066c0
sub esi, ebx
sar esi, 1
add esp, 0xc
test esi, esi
jle 0x1000151a
mov ecx, esi
push edi
shr ecx, 1
mov esi, ebx
lea edi, [ebp - 0x20c]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
pop edi
lea ecx, [ebp - 0x20c]
push ecx
call fcn.10001460
add esp, 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100014ae
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.100029a4
mov esp, ebp
pop ebp
ret

Function at 0x100029a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000d018]
jne 0x100029ae
repz ret
jmp fcn.10003283
Function at 0x1000557c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000d018]
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.10003d9e
and dword [ebp - 0x14], 0
cmp dword [0x1000f6b8], 0
mov dword [ebp - 0x18], eax
jne 0x1000562f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100056d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100056d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000f6b8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000f6bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000f6c0], eax
call edi
push eax
call esi
mov dword [0x1000f6c8], eax
test eax, eax
je 0x1000562f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000f6c4], eax
mov eax, dword [0x1000f6c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005688
cmp dword [0x1000f6c8], ecx
je 0x10005688
push eax
call esi
push dword [0x1000f6c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005688
test ebx, ebx
je 0x10005688
call edi
test eax, eax
je 0x1000567f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000567f
test byte [ebp - 8], 1
jne 0x10005688
or dword [ebp + 0x10], 0x200000
jmp 0x100056bb
mov eax, dword [0x1000f6bc]
cmp eax, dword [ebp - 0x18]
je 0x100056bb
push eax
call esi
test eax, eax
je 0x100056bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100056bb
mov eax, dword [0x1000f6c0]
cmp eax, dword [ebp - 0x18]
je 0x100056bb
push eax
call esi
test eax, eax
je 0x100056bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000f6b8]
call esi
test eax, eax
je 0x100056d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100056d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100029a4
leave
ret
Function at 0x1001aeee
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1001aefd
pop dword [ebp - 0x44]
mov eax, 0x1001aefd
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x16ef4b8
add dword [ebp - 0x54], 0x4ce35093
mov dword [ebp - 0x50], 0xe6749c5c
add dword [ebp - 0x50], 0x4bbeafe9
mov dword [ebp - 0x4c], 0x1cacb55c
sub dword [ebp - 0x4c], 0xd060712e
mov dword [ebp - 0x48], 0xf6d49170
sub dword [ebp - 0x48], 0xf6d49170
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xd1d6717b
sub dword [ebp - 0x54], 0x5d640825
mov dword [ebp - 0x50], 0x7acd2be0
add dword [ebp - 0x50], 0xc69f3595
mov dword [ebp - 0x4c], 0x6a8aff59
add dword [ebp - 0x4c], 0xf8e46d13
mov dword [ebp - 0x48], 0x57e29cb5
add dword [ebp - 0x48], 0xa81d634b
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3b73e
push 0
call eax
mov ecx, 0xb8c7aed
sub ecx, 0xb8c22d5
xor ebx, ebx
add ebx, eax
mov esi, 0x10026800
add esi, dword [ebp - 0x44]
mov edx, 0x1897b222
mov dword [ebp - 0x3c], 0x47c4e1fc
mov edi, dword [esi]
xor dword [ebp - 0x1c], edi
add edi, edx
mov dword [ebx], edi
sub dword [ebp - 0x14], edi
add ebx, 0xd1c54c6a
sub ebx, 0xd1c54c66
add esi, 0x5c699a25
sub esi, 0x5c699a21
loop 0x1001b006
add eax, 0x9bdb4dbb
add eax, 0x64260578
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3ff66046
sub ecx, 0x2ff66046
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x403834
Capabilities:
Query or enumerate registry value

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

Function at 0x4046e0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e048], 0
je 0x404741
cmp word [0x48e21c], 0xd7b2
jne 0x404709
cmp dword [0x48e224], 0
jbe 0x404709
mov eax, 0x48e218
call dword [0x48e234]
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 0x404768
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48c02c], 0
jne 0x40475d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405d78
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 0x405fa8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405dfb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fa8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405dfb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405fc4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e84
xor eax, eax
push ebp
push 0x405e7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405bb4
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 0x405e62
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405fe4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405e62
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 0x405e84
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 0x405f9e
cmp byte [ebp - 0xd], 0
jne 0x405ecb
cmp byte [ebp - 0x12], 0
je 0x405f9e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405ee4
dec ebx
cmp byte [ebx], 0x2e
je 0x405ef3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ee3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405f9e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405f30
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 0x405f9e
cmp byte [ebp - 0xd], 0
je 0x405f9e
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 0x405f9e
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 0x408610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408662
test eax, edx
je 0x408665
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408625
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40864b
add ecx, 4
js 0x40863b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408648
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408671
test edx, edx
jne 0x408618
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x408ef8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404d10
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408f16
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x408f37
cmp ebx, 3
je 0x408f37
cmp ebx, 0x7b
je 0x408f37
mov eax, esi
call fcn.00408eb8
test al, al
jne 0x408f3b
xor eax, eax
jmp 0x408f3d
mov al, 1
pop esi
pop ebx
ret

Function at 0x40b9c8
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 0x40ba01
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404970
jmp 0x40ba0a
mov eax, ebx
mov edx, esi
call fcn.004048d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ba14
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 0x40ba36
movzx eax, byte [esp]
jmp 0x40ba38
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c0c8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf40
mov eax, dword [0x48de30]
cmp byte [eax], 0
je 0x40c144
mov eax, dword [0x48dc20]
call fcn.004031fc
call fcn.00402fbc
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.004090f8
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 0x40c18c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c17a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48dbc4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4907f4]
call fcn.00405b5c
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 0x40ca04
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 0x40cada
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404918
lea eax, [ebp - 4]
call fcn.00404d68
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d10
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cac4
mov eax, ebx
call fcn.00402e60
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cabd
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.00404d10
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40caa7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40caec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40caa7
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 0x40cac4
mov eax, dword [ebp - 0x10]
call fcn.00402e7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cae1
lea eax, [ebp - 4]
call fcn.00404880
ret

Function at 0x41c020
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4929e8
cmp dword [edi], 0
jne 0x41c09c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4929e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48cad4
mov ecx, 2
call fcn.00403050
mov edx, 0x41bff8
lea eax, [esi + 5]
call fcn.0041c018
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c018
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 0x41c071
mov dword [0x4929e4], 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 0x41e7ec
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.00404d10
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41e844
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48df6c]
mov dl, 1
mov eax, dword [0x41e2f8]
call fcn.0040c288
call fcn.004042a8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e400
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 0x41f9d4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f9da
ret