joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002ec4c
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x100549ef
call fcn.10053340
sub esp, 0x20
push ebx
push esi
mov byte [ebp - 0x14], dl
mov ebx, ecx
mov dword [ebp - 0x20], 0x1d1d
cmp dword [ebp - 0x20], 0x1f13
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
jle 0x1002ecd6
xor esi, esi
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov eax, edi
xor ebx, ebx
and eax, esi
mov dword [ebp - 0x28], eax
mov esi, eax
xor edi, edi
mov ecx, edi
mov eax, ebx
shl eax, cl
mov ecx, 0x1006de98
xor eax, esi
cdq
push edx
push eax
call fcn.1000bb28
inc edi
cmp edi, 0x756a
jl 0x1002ec8e
inc ebx
cmp ebx, 0x62cc
jl 0x1002ec8c
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, 0x1aa7
jl 0x1002ec81
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, 0x4985
jl 0x1002ec7c
mov ebx, dword [ebp - 0x24]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x1d09
jge 0x1002ed11
mov edx, str.ywf_wurwehgp_pjyj_wbdgn_lntu_qnkkz_roduyyge_oepkcmki_uvj_iaiuu_ayfbosfub_wyvihinly_qfikmfkm
mov ecx, 0x1006de98
call fcn.100102b0
jmp 0x1002ed11
cmp byte [ebp - 0x14], 0
je 0x1002ed26
push 0x796
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x1002ed2d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebx], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002ed3e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov byte [esp], dl
mov eax, ecx
mov dword [esp + 8], eax
push ebx
push esi
push edi
test dl, dl
je 0x1002edd5
mov dword [esp + 0x10], 0x348
cmp dword [esp + 0x10], 0x663
jle 0x1002edbc
xor esi, esi
mov edi, esi
mov ebx, esi
mov ecx, ebx
mov eax, edi
shl eax, cl
lea ecx, [esp + 0x18]
cdq
push edx
push eax
call fcn.10002543
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002ed8b
mov eax, dword [eax]
push eax
call fcn.1003de4c
pop ecx
push esi
push 1
lea ecx, [esp + 0x20]
call fcn.1000c586
inc ebx
cmp ebx, 0x630b
jl 0x1002ed6f
inc edi
cmp edi, 0xd25
jl 0x1002ed6d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [esp + 0x14]
inc dword [eax]
cmp dword [esp + 0x10], 0x2e6
jge 0x1002ee43
push str.opfzqxqjo_slqgvug_jztmqxtp
call fcn.1003de4c
pop ecx
jmp 0x1002ee43
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi], esi
je 0x1002edfd
mov eax, dword [edi]
mov eax, dword [edi]
cmp eax, dword [edi]
jle 0x1002edf8
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [ecx]
add eax, 0x2f58f7b5
cmp eax, dword [edi]
je 0x1002edfd
xor ecx, ecx
inc ecx
jmp 0x1002edff
mov ecx, esi
mov eax, dword [edi]
xor edx, edx
cmp ecx, eax
mov eax, dword [edi]
setg dl
xor ecx, ecx
cmp edx, eax
setle cl
cmp ecx, 0x9934b0b4
ja 0x1002ee2f
push 0x6535
push esi
push 1
mov dl, 1
mov ecx, 0xccd
call fcn.1002dded
jmp 0x1002ee40
push esi
push 0x7a2d
push ecx
mov ecx, 0x4b52
call fcn.1002dd1c
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003107f
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10054a5f
call fcn.10053340
sub esp, 0x28
cmp byte [ebp + 0x14], 0
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
je 0x1003121b
cmp byte [ebp + 0x10], 0
je 0x100311e6
mov dword [ebp - 0x14], 0x5176
cmp dword [ebp - 0x14], 0x5198
jle 0x10031110
xor esi, esi
xor ebx, ebx
mov dword [ebp + 0x14], 0xdb1
xor edi, edi
mov eax, ebx
lea ecx, [ebp - 0x34]
xor eax, edi
cdq
push edx
push eax
call fcn.10002543
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100310e1
mov eax, dword [eax]
push eax
call fcn.1003de4c
pop ecx
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.1000c586
inc edi
cmp edi, 0x3cdd
jl 0x100310c8
add ebx, esi
dec dword [ebp + 0x14]
jne 0x100310c6
inc esi
cmp esi, 0x5742
jl 0x100310bd
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0x50bf
jge 0x10031124
push str.wil_agoxrhk_ebftw_fxfzx_ckrkhg_xizzsuik_sefx
call fcn.1003de4c
pop ecx
or dword [ebp - 4], 0xffffffff
cmp byte [ebx], 0
je 0x100311ca
push 0x65ab
push 0xdba
push 0x3325
push 1
xor dl, dl
xor cl, cl
call fcn.10030aa0
mov dword [ebp - 0x18], 0x3d6a
add esp, 0x10
cmp dword [ebp - 0x18], 0x3edf
jle 0x100311ab
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp + 0x14], 0x6190
mov eax, esi
mov ecx, 0x1006de98
and eax, ebx
xor eax, edi
cdq
push edx
push eax
call fcn.1000bb28
dec esi
dec dword [ebp + 0x14]
jne 0x10031171
mov esi, dword [ebp - 0x14]
inc esi
mov dword [ebp - 0x14], esi
cmp esi, 0x2932
jl 0x10031167
inc ebx
cmp ebx, 0x2cfe
jl 0x10031162
inc edi
cmp edi, 0xb1f
jl 0x10031160
mov dword [ebp - 4], 2
cmp dword [ebp - 0x18], 0x3983
jge 0x100311ca
mov edx, str.xojdav_wmkfe_ewmjegxw_kabprfiqp_omib_dwtgd_trgsz_ptp_qguie_isytweo_xbhztpvzd_oxs_okm
mov ecx, 0x1006de98
call fcn.100102b0
jmp 0x10031235
push 0x184f
push 0x1013
push 0x1fe9
push 0x24e3
push 0xf01
push 0x1048
push 0x9a1
push 0x2399
push 0xa3c
call dword [sym.imp.GDI32.dll_Arc]
jmp 0x10031235
cmp byte [ebp + 0xc], 0
je 0x1003122e
push 0x2504
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10031235
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031455
Capabilities:
Delete registry value
Encode data using xor
Get memory capacity

Disassembly:
mov eax, 0x10054a73
call fcn.10053340
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
test dl, dl
je 0x100314ae
cmp byte [ebp + 8], 0
je 0x100314a2
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
jmp 0x1003148c
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xfffffff7
inc dword [edx]
cmp dword [edx], 3
jl 0x1003147f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x10031491
mov dword [ebp - 0x1c], 0x335a
cmp dword [ebp - 0x1c], 0x3480
jle 0x1003151d
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x20], 0
mov eax, esi
cdq
idiv ebx
mov esi, dword [ebp - 0x20]
mov ebx, edx
mov ecx, esi
mov eax, ebx
shl eax, cl
mov ecx, 0x1006de98
xor eax, edi
cdq
push edx
push eax
call fcn.1000bb28
inc esi
cmp esi, 0x4217
jl 0x100314d8
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, 0x3262
jl 0x100314ca
inc esi
mov dword [ebp - 0x18], esi
cmp esi, 0x5dc4
jl 0x100314c5
inc edi
cmp edi, 0xc98
jl 0x100314c0
cmp byte [ebp + 0x14], 0
je 0x1003152d
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
jmp 0x10031533
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x3052
jge 0x10031491
mov edx, str.uozznybz_phtgmplaw_ogqwb
mov ecx, 0x1006de98
call fcn.100102b0
jmp 0x10031491
Function at 0x4032b0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4032ec
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40330c
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0040529c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4035a4
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.0040502c
test esi, esi
jne 0x4035da
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.0040511c
jmp 0x4035f8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403448
mov edi, eax
test esi, esi
je 0x4035f8
cmp dword [ebx], 0
je 0x4035f8
dec esi
jmp 0x4035e1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403e0c
Capabilities:
Query or enumerate registry value

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

Function at 0x404dd8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58304c], 0
je 0x404e39
cmp word [0x583220], 0xd7b2
jne 0x404e01
cmp dword [0x583228], 0
jbe 0x404e01
mov eax, 0x58321c
call dword [0x583238]
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 0x404e60
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x578030], 0
jne 0x404e55
push 0
push 0x57875c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x578034], 0
je 0x404fd6
mov edx, esi
mov eax, ebx
call dword [0x578034]
jmp 0x404fe5
mov eax, 8
call fcn.0040309c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x58304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404f78
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x40ef2c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40f0bb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5859e0], 0
je 0x40ef62
mov eax, ebx
call dword [0x5859e0]
movzx eax, byte [edi]
sub al, 2
jae 0x40f008
mov eax, ebx
call fcn.00405308
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405794
mov eax, ebx
call fcn.00405308
test eax, eax
jns 0x40ef8e
call fcn.00403edc
push eax
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
mov eax, ebx
call fcn.0040550c
push eax
call sub.user32.dll_CharToOemBuffA
test eax, eax
jne 0x40efb3
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004050c4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405308
test eax, eax
jns 0x40efca
call fcn.00403edc
push eax
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
push esi
call sub.kernel32.dll_WriteConsoleA
test eax, eax
je 0x40efe4
cmp dword [ebp - 0x10], 0
jne 0x40effc
mov eax, 0x40f0d8
call fcn.0040ee50
test al, al
je 0x40eff7
mov byte [edi], 3
jmp 0x40f008
mov byte [edi], 2
jmp 0x40f008
mov byte [ebp - 9], 0
mov byte [edi], 1
jmp 0x40f0a0
mov byte [ebp - 9], 1
cmp byte [edi], 3
jne 0x40f050
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, ebx
call fcn.00405308
test eax, eax
jns 0x40f027
call fcn.00403edc
push eax
mov eax, 1
dec eax
test ebx, ebx
je 0x40f037
cmp eax, dword [ebx - 4]
jb 0x40f03c
call fcn.00403edc
inc eax
lea eax, [ebx + eax - 1]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_FlushFileBuffers
jmp 0x40f0a0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004050c4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00405308
test eax, eax
jns 0x40f071
call fcn.00403edc
push eax
lea eax, [ebp - 4]
call fcn.00405564
mov edx, 1
dec edx
test eax, eax
je 0x40f089
cmp edx, dword [eax - 4]
jb 0x40f08e
call fcn.00403edc
inc edx
lea eax, [eax + edx - 1]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_FlushFileBuffers
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f0c2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405050
ret
Function at 0x40f1b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a54
test eax, eax
jne 0x40f1d4
push 0x57
call sub.kernel32.dll_SetLastError
jmp 0x40f253
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40f253
xor eax, eax
push ebp
push 0x40f245
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 8]
test ecx, ecx
jns 0x40f205
call fcn.00403edc
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00403348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f24c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4146b8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
call fcn.0041456c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004038b8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
push 0x10
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x414719
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
mov eax, ebx
call fcn.004146b4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x414725
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualFree_1
test bl, bl
je 0x414741
mov eax, dword [0x581e00]
or dword [eax], 0x10
xor ebx, ebx
xor eax, eax
test al, al
je 0x4147c5
push 4
push 0x3000
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
mov esi, fcn.004146b4
mov eax, esi
mov edx, 0x32
call fcn.00414298
mov ebx, eax
test ebx, ebx
jns 0x41477a
call fcn.00403edc
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, ebx
call fcn.00403348
mov eax, dword [ebp - 4]
xor edx, edx
push ebp
push 0x4147a9
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, eax
mov eax, ebx
call esi
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4147b5
push 0x8000
push 0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualFree_1
test bl, bl
je 0x4147de
mov eax, dword [0x581f64]
mov eax, dword [eax]
or eax, 2
or eax, 4
mov edx, dword [0x581f64]
mov dword [edx], eax
call fcn.00414660
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415ec0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov edi, eax
mov ebx, dword [ebp + 8]
test bl, bl
je 0x415fe0
mov eax, ebx
cmp al, 7
ja 0x415eec
and eax, 0x7f
bt dword [0x57a130], eax
jb 0x415fe0
mov esi, 0xcc
movzx eax, bl
cmp eax, 6
ja case.0x415f03.0
jmp dword [eax*4 + 0x415f0a]
push 0x415fec
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415fa4
push 0x416004
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415fa4
push 0x41601c
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415fa4
push 0x416038
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415fa4
push 0x41604c
call sub.kernel32.dll_OutputDebugStringA
jmp 0x415fa4
push 0x416068
call sub.kernel32.dll_OutputDebugStringA
mov esi, 0xcb
mov eax, dword [0x685f48]
call fcn.0040e524
test al, al
je 0x415fa4
push 0x8000
push 0
mov eax, dword [0x685f48]
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
mov dword [0x685f48], eax
jmp 0x415fa4
push 0x416084
call sub.kernel32.dll_OutputDebugStringA
cmp dword [0x57a134], 0
jne 0x415fc2
mov eax, esi
cmp eax, 0xff
jbe 0x415fbb
call fcn.00403edc
call fcn.00404f4c
jmp 0x415fe0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp - 1]
mov eax, edi
call dword [0x57a134]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0x14

Function at 0x419f30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00419c9c
pop ecx
lea eax, [ebp - 0x2c]
call fcn.00402c98
cmp dword [ebp - 0x20], 0
je 0x419f69
mov ecx, 0x242010
mov edx, 0x41a030
mov eax, 0x41a064
call fcn.00415e0c
jmp 0x41a020
xor eax, eax
push ebp
push 0x41a019
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419ff8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov esi, eax
mov edi, 0x57a188
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x57a1a0
mov esi, eax
mov edi, edx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
call fcn.00419ae8
mov eax, 0x57a188
call fcn.00403134
mov byte [0x685f0e], 1
mov byte [0x685f0f], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419fff
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a174
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call fcn.00419c9c
pop ecx
lea eax, [ebp - 0x2c]
call fcn.00402c98
cmp dword [ebp - 0x20], 0
je 0x41a1ae
mov ecx, 0x242010
mov edx, 0x41a368
mov eax, 0x41a39c
call fcn.00415e0c
jmp 0x41a356
xor eax, eax
push ebp
push 0x41a345
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41a324
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0040ea5c
test al, al
je 0x41a205
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0xc
call fcn.0040ea5c
test al, al
jne 0x41a214
mov eax, 0x57a1a0
call fcn.00403120
jmp 0x41a2f5
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x18
call fcn.0040ea5c
test al, al
je 0x41a2ac
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov esi, eax
mov edi, 0x57a188
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [0x57a194]
test ebx, ebx
je 0x41a258
mov edx, 1
mov eax, ebx
call fcn.0040eaa8
test al, al
jne 0x41a262
mov dword [0x57a194], 0x418160
mov ebx, dword [0x57a198]
test ebx, ebx
je 0x41a27c
mov edx, 1
mov eax, ebx
call fcn.0040eaa8
test al, al
jne 0x41a286
mov dword [0x57a198], 0x418184
mov ebx, dword [0x57a19c]
test ebx, ebx
je 0x41a2a0
mov edx, 1
mov eax, ebx
call fcn.0040eaa8
test al, al
jne 0x41a2e4
mov dword [0x57a19c], 0x4181d0
jmp 0x41a2e4
mov eax, 0x57a188
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov dword [0x57a194], 0x418160
mov dword [0x57a198], 0x418184
mov dword [0x57a19c], 0x4181d0
mov esi, 0x57a188
mov edi, 0x57a1a0
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, 0x57a188
call fcn.00403134
mov byte [0x685f0e], 1
mov byte [0x685f0f], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a32b
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bf2c
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 0x42bf65
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040511c
jmp 0x42bf6e
mov eax, ebx
mov edx, esi
call fcn.00405080
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x42c62c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x42c4a4
mov eax, dword [0x5822fc]
cmp byte [eax], 0
je 0x42c6a8
mov eax, dword [0x581f14]
call fcn.00403708
call fcn.00403230
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.00429320
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 0x42c6f0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x42c6de
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x581e7c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5857f8]
call fcn.00406acc
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