joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505784
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov ebx, eax
mov edx, ebx
add edx, 4
mov eax, esi
call fcn.00404154
mov eax, esi
call fcn.00403ff4
push eax
mov edx, ebx
add edx, 2
xor ecx, ecx
pop eax
call fcn.00402bd8
cmp byte [ebp - 1], 0
jne 0x5057f7
mov eax, esi
call fcn.00403ff4
mov dl, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov al, byte [ebp - 1]
sub al, 1
jb 0x505810
sub al, 2
jb 0x505817
jmp 0x50581c
mov ebx, 2
jmp 0x50581c
mov ebx, 1
mov eax, esi
call fcn.00403ff4
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x5058fe
test edi, edi
jle 0x505878
mov eax, esi
call fcn.00403ff4
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.00403ff4
mov byte [eax + ebx - 1], 0
jmp 0x5058f2
test edi, edi
jge 0x5058be
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.00403ff4
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x5058f2
mov eax, esi
call fcn.00403ff4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.00403ff4
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x505834
mov al, byte [ebp - 1]
sub al, 1
jb 0x50590e
sub al, 2
jb 0x505947
jmp 0x50598e
cmp edi, 2
jne 0x505914
dec ebx
mov eax, ebx
sub eax, 2
jl 0x50598e
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.00403ff4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x54d0b4]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x505924
jmp 0x50598e
cmp edi, 2
jne 0x50594d
dec ebx
test ebx, ebx
jle 0x505989
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.00403ff4
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x54d0b8]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x505959
jmp 0x505989
inc ebx
mov eax, esi
call fcn.00403ff4
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x50597c
mov eax, esi
mov edx, ebx
call fcn.00404154
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50f1e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x50f2c8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, 0x50f2dc
call fcn.00403c40
lea edx, [ebp - 0x14]
mov eax, dword [0x54d5d4]
mov eax, dword [eax]
call fcn.0043b93c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0040941c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x50f304
call fcn.00403e70
mov eax, dword [ebp - 8]
call fcn.004091d4
test al, al
je 0x50f295
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403e70
call fcn.004c7db4
test al, al
je 0x50f27b
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403fe8
push eax
push 0
mov eax, dword [0x54d798]
mov eax, dword [eax]
call eax
jmp 0x50f2ad
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403fe8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x50f2ad
push 1
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403fe8
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50f2cf
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403bcc
ret
Function at 0x51e9dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403fd8
xor eax, eax
push ebp
push 0x51ea81
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5504f4], 0
je 0x51ea6b
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x55053c]
call fcn.00403fe8
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x51ea6b
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 4]
mov edx, 0x51ea98
call fcn.00403e2c
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403e24
push eax
lea eax, [ebp - 4]
call fcn.00403ff4
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51ea88
lea eax, [ebp - 4]
call fcn.00403ba8
ret
Function at 0x533e0c
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x52c]
mov edx, 0x80000005
call fcn.00451f28
mov dl, 1
mov eax, dword [0x41a1f8]
call fcn.00421970
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x533f6c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00402bd8
push 0x4101
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x90
mov eax, dword [0x5501a0]
call fcn.00403fe8
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 4]
call fcn.00421d14
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x52c]
mov edx, dword [ebp - 4]
call fcn.00451b58
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00402bd8
push 0x4103
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x90
mov eax, dword [0x5501a0]
call fcn.00403fe8
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 4]
call fcn.00421d14
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x52c]
mov edx, dword [ebp - 4]
call fcn.00451b58
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.00402bd8
push 0xc101
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x90
mov eax, dword [0x5501a0]
call fcn.00403fe8
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 4]
call fcn.00421d14
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x52c]
mov edx, dword [ebp - 4]
call fcn.00451b58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x533f73
mov eax, dword [ebp - 4]
call fcn.00402f44
ret
Function at 0x53d06c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x20c]
call fcn.00479ee4
mov esi, eax
dec esi
test esi, esi
jle 0x53d0c1
mov ebx, 1
mov eax, dword [edi + 0x20c]
mov edx, ebx
call fcn.00479f1c
mov edx, 3
call fcn.00479a2c
xor al, 1
push eax
mov eax, dword [edi + 0x20c]
mov edx, ebx
call fcn.00479f1c
mov edx, 3
pop ecx
call fcn.00479a98
inc ebx
dec esi
jne 0x53d08b
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x53d0c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x20c]
call fcn.00479ee4
mov esi, eax
dec esi
test esi, esi
jle 0x53d11d
mov ebx, 1
mov eax, dword [edi + 0x20c]
mov edx, ebx
call fcn.00479f1c
mov edx, 3
call fcn.00479a2c
xor al, 1
push eax
mov eax, dword [edi + 0x20c]
mov edx, ebx
call fcn.00479f1c
mov edx, 3
pop ecx
call fcn.00479a98
inc ebx
dec esi
jne 0x53d0e7
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x54735c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, 0x546f24
call fcn.00406ae0
xor eax, eax
push ebp
push 0x547d3f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0040299c
mov eax, dword [0x54d5d4]
mov eax, dword [eax]
call fcn.0043b3a4
mov eax, dword [0x54d5d4]
mov eax, dword [eax]
mov edx, 0x547d58
call fcn.0043afc4
mov eax, dword [0x54d5d4]
mov eax, dword [eax]
add eax, 0x38
call fcn.00403ba8
lea eax, [ebp - 0x10]
call fcn.00409748
mov edx, dword [ebp - 0x10]
mov eax, dword [0x54d4d8]
call fcn.00403bfc
mov eax, dword [0x54d4d8]
call fcn.00455fb8
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x54d18c]
mov dword [edx], eax
mov edx, dword [0x54d4d8]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
mov ecx, 0x547d6c
call fcn.00403e70
mov eax, dword [ebp - 0x10]
call fcn.00456fa8
test al, al
jne 0x547429
lea edx, [ebp - 0x14]
mov eax, dword [0x54d5d4]
mov eax, dword [eax]
call fcn.0043b93c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0040941c
mov edx, dword [ebp - 0x10]
mov eax, dword [0x54d4d8]
call fcn.00403bfc
mov dl, 1
mov eax, dword [0x462d08]
call fcn.00462e50
mov dword [0x550624], eax
xor eax, eax
push ebp
push 0x547597
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [0x550624]
call fcn.00462ef4
mov edx, 0x547d84
mov eax, dword [0x550624]
call fcn.00463084
test al, al
je 0x54757f
mov edx, 0x547da0
mov eax, dword [0x550624]
call fcn.00463590
test al, al
je 0x54757f
push 0x550628
push 0x1a
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00463714
test al, al
je 0x54757f
mov eax, 0x550634
mov edx, 0x104
call fcn.00404154
mov eax, dword [0x550634]
call fcn.00403fe8
push eax
mov eax, dword [0x550628]
push eax
call sub.shell32.dll_SHGetPathFromIDList
test eax, eax
je 0x5474e4
mov eax, dword [0x550634]
call fcn.00403fe8
call fcn.0040978c
mov edx, eax
mov eax, 0x550634
call fcn.00404154
mov eax, 0x550634
call fcn.00455fb8
mov eax, dword [0x550634]
call fcn.00455ff4
test al, al
je 0x547536
mov eax, dword [0x54d4d8]
mov edx, dword [0x550634]
call fcn.00403bfc
mov eax, dword [0x54d4d8]
mov edx, 0x547d58
call fcn.00403e2c
mov eax, dword [0x54d4d8]
mov eax, dword [0x54d4d8]
call fcn.00455fb8
mov eax, dword [0x54d4d8]
mov eax, dword [eax]
call fcn.00456e3c
cmp dword [0x550628], 0
je 0x54757f
push 0x55062c
call sub.shell32.dll_SHGetMalloc
call fcn.00463714
test al, al
je 0x54757f
mov eax, dword [0x550628]
push eax
mov eax, dword [0x55062c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
test eax, eax
jle 0x54757f
mov eax, dword [0x550628]
push eax
mov eax, dword [0x55062c]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
xor eax, eax
mov dword [0x550628], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54759e
mov eax, dword [0x550624]
call fcn.00402f44
ret
Function at 0x402a14
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404090
test esi, esi
jne 0x402a4a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404180
jmp 0x402a68
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402928
mov edi, eax
test esi, esi
je 0x402a68
cmp dword [ebx], 0
je 0x402a68
dec esi
jmp 0x402a51
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402cdc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4b9008], 0x8088405
inc edx
mov dword [ebx + 0x4b9008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403134
Capabilities:
Query or enumerate registry value

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

Function at 0x403e90
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bc048], 0
je 0x403ef1
cmp word [0x4bc21c], 0xd7b2
jne 0x403eb9
cmp dword [0x4bc224], 0
jbe 0x403eb9
mov eax, 0x4bc218
call dword [0x4bc234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4b9070
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 0x403f18
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4b9034], 0
jne 0x403f0d
push 0
push 0x4b9068
push 0x4b9070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404044
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4bc049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40400c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405484
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 0x4056b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405507
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4056b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405507
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4056d0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405590
xor eax, eax
push ebp
push 0x405589
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004052cc
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 0x40556e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4056f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40556e
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 0x405590
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 0x4056aa
cmp byte [ebp - 0xd], 0
jne 0x4055d7
cmp byte [ebp - 0x12], 0
je 0x4056aa
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4055f0
dec ebx
cmp byte [ebx], 0x2e
je 0x4055ff
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4055ef
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4056aa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40563c
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 0x4056aa
cmp byte [ebp - 0xd], 0
je 0x4056aa
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 0x4056aa
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 0x405d7c
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 0x405de2
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.00404300
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cf8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405dcc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405de9
lea eax, [ebp - 0x10]
call fcn.00404090
ret

Function at 0x40b424
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 0x40b45d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404180
jmp 0x40b466
mov eax, ebx
mov edx, esi
call fcn.004040e4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bb18
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b990
mov eax, dword [0x4bb5c4]
cmp byte [eax], 0
je 0x40bb94
mov eax, dword [0x4bb2a8]
call fcn.00402b48
call fcn.00402854
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.00408bc4
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 0x40bbdc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bbca
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4bb234]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bc664]
call fcn.00405290
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 0x40c454
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c52a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404128
lea eax, [ebp - 8]
call fcn.004045a0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404550
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c514
mov eax, ebx
call fcn.004026ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c50d
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 - 8]
call fcn.00404550
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c4f7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c53c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c4f7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c514
mov eax, dword [ebp - 0x10]
call fcn.0040270c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c531
lea eax, [ebp - 8]
call fcn.00404090
ret

Function at 0x40caf4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40cb58
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404300
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408648
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb5f
lea eax, [ebp - 0xc]
call fcn.00404090
ret

Function at 0x41b42c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41b479
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041b240
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41b491
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41b498
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041b240
dec esi
jne 0x41b4ba
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41c5fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4bc888
cmp dword [edi], 0
jne 0x41c678
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4bc884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b940c
mov ecx, 2
call fcn.004028e8
mov edx, 0x41c5d4
lea eax, [esi + 5]
call fcn.0041c5f4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c5f4
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 0x41c64d
mov dword [0x4bc884], 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 0x41dc2c
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 0x41dc32
ret

Function at 0x42049c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4204ed
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4204d4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4204c4
jmp 0x4204ed
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4204d5
pop ebx
mov esp, ebp
pop ebp
ret