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

Disassembly:
push edi
movsd dword es:[edi], dword [esi]
sub edi, esp
jmp 0x4a0e0d
xchg ecx, eax
insd dword es:[edi], dx
ror dword [edx], cl
test edi, ebx
imul ebx, dword [eax + 0x19], 0x52dd24fb
sti
and al, 0xdd
push edx
adc dword [ebp + 0x24], edx
adc dword [eax], 0x1b
jae 0x4a0e42
or al, 0xfd
fistp qword [eax + 0x5d]
js 0x4a0e04
invalid
and edx, esi
or eax, 0xb81762e4
test dword [ebp - 0x2c], eax
sub byte [ebx], al
dec edx
clc
cmp byte [eax], bh
cli
jg 0x4a0e91
and ecx, dword [edi + edi*2 + 0x591cd396]
pop ds
invalid
dec esi
inc eax
xchg byte [ebp - 0x21e58b0], ch
mov ecx, 0xff21795c
test byte [ebp + 0x3b43bcae], bl
jns 0x4a0e20
cmp byte [esi + 0x2f6c2d23], al
dec edx
stosd dword es:[edi], eax
jnp 0x4a0eda
jns 0x4a0e57
cmc
popfd
add eax, 0xdca83446
mov esp, 0x919915ad
cmpsd dword [esi], dword es:[edi]
hlt
add byte [ebp + 0x15f27506], al
test dword cs:[ebp + 0x7794cc9], esp
and al, bh
inc edi
outsd dx, dword [esi]
in al, 9
lodsb al, byte [esi]
inc byte [edi + edx - 0x5f7f2d62]
dec ecx
jl 0x4a0e25
sub al, 0x33
adc eax, 0x32ff7279
fild qword [ebx + 0x32aef2c7]
push 0xffffffffffffff91
outsb dx, byte [esi]
xor byte [edi - 0x407ae9d9], al
jo 0x4a0e60
mov dword [ebp + 0x23], edx
pop edx
invalid
mov ebx, 0xafe7092e
push ss
arpl word [edx], di
push esi
jbe 0x4a0e71
jbe 0x4a0e77
pop ss
dec ecx
push ecx
xor dh, byte [ecx - 0x4884c645]
pop esi
invalid
lahf
push es
sahf
sbb ecx, dword [ebx + 3]
jns 0x4a0eb5
add dword [eax + 0xf47a3e6], edi
mov dword [esi + 0x6b], eax
mov eax, 0x2531e9a
fidiv word [eax]
dec eax
pop edx
pop edi
clc
jo 0x4a0ed9
shr esp, cl
pop ss
stosb byte es:[edi], al
loopne 0x4a0f3a
xor byte [ecx + 0x7d000ec8], cl
cmp byte [ecx + 0x2743db26], al
sbb dl, byte [edx]
mov ah, 0x6e
or ah, dl
cmp eax, 0xf2d53627
mov al, 7
into
mov dword [0xeba7d814], eax
adc byte [edi - 0x2f], bl
inc edx
out 9, al
shr byte [esi], 1
enter 0xffffffffffffd5c8, 0x2e
add eax, 0x794d6bfc
invalid
and bh, byte [esi + 0x65da34c]
fucomi st(3)
fisttp word [ebx]
dec ecx
or bl, dl
out dx, eax
invalid

Function at 0x4b7a21
Capabilities:
Encode data using xor

Disassembly:
dec edx
or al, 0x61
mov al, byte [0xda7dd2]
stosb byte es:[edi], al
mov ecx, 0x546255ff
in eax, dx
pushfd
mov dword [0x4eebcb19], eax
test eax, 0x1a439197
js 0x4b7a63
retf 0xa2e4
adc al, 0xed
in eax, 0x96
jb 0x4b79ca
pushal
loopne 0x4b7a5e
in eax, 0xf6
xor eax, 0xa904d20b
lahf
push 0x15
pop ecx
mov al, byte [0xe55f1f72]
xor al, byte [edx + 0x4f]
sti
mov word [ebp - 0x6d], es
or esp, dword [0x427b91c8]
and eax, 0x427b91c8
and eax, 0x427b91c8
pop edi
jo 0x4b7a00
pop esp
invalid
imul ebp
fsub qword [eax]
int3
xchg eax, esi
pop ecx
sar byte [ebp + 0x9ac6941], 1
sbb eax, 0x3f42f167
cmp ebx, dword [edi + ecx*4]
xchg ecx, eax
invalid
Function at 0x4bb959
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c4380
cmp edx, dword [eax]
je 0x4bb97b
add eax, 8
inc ecx
cmp eax, 0x4c4410
jl 0x4bb96c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c4380]
jne 0x4bbaa9
mov eax, dword [0x4c8d1c]
cmp eax, 1
je 0x4bba83
test eax, eax
jne 0x4bb9ac
cmp dword [0x4c42a8], 1
je 0x4bba83
cmp edx, 0xfc
je 0x4bbaa9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb9e3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bc340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc7d0
inc eax
pop ecx
cmp eax, 0x3c
lea eax, [ebp + 8]
lea esi, [esi + 0x4c4384]
push 0
push eax
push dword [esi]
call fcn.004bc7d0
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]
Function at 0x45cf14
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x481e0c
push 0x481e04
push str.FlsAlloc
push 0x1e
call fcn.0045cbe4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45cf48
push dword [ebp + 8]
mov ecx, esi
call dword [0x47c18c]
call esi
jmp 0x45cf4e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x45cf92
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x481e1c
push 0x481e14
push str.FlsGetValue
push 0x20
call fcn.0045cbe4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45cfc9
push dword [ebp + 8]
mov ecx, esi
call dword [0x47c18c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x45f01c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0045ec03

Function at 0x45f54a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00421e60
mov eax, dword [0x491090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0045d974
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45f58c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x45f6e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00477f50
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x493cc8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00460add
mov ecx, dword [esi*4 + 0x493cc8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x45f6e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x45f6e1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45f6e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00460add
add esp, 0x14
test edx, edx
jl 0x45f6e1
jg 0x45f657
test eax, eax
jb 0x45f6e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x45f6e1
jl 0x45f671
cmp dword [ebp - 0x1008], eax
ja 0x45f6e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45f68f
test ebx, ebx
je 0x45f6c8
cmp ecx, edi
jae 0x45f6c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x45f6a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x45f6b5
cmp byte [ecx + 1], 0xa
jne 0x45f6b5
inc ecx
jmp 0x45f6b5
movzx eax, al
movsx eax, byte [eax + 0x491328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45f68f
cmp edx, ebx
jne 0x45f68f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x45f6e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00420b6e
leave
ret
Function at 0x45fc66
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x493cc8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45fca6
cmp byte [ebx], 0xa
jne 0x45fca6
or byte [eax + edi + 0x28], 4
jmp 0x45fcab
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x45fda9
mov al, byte [edx]
cmp al, 0x1a
je 0x45fd8b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x45fcda
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x45fcff
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x45fd09
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x45fcbc
jmp 0x45fda9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45fd86
cmp dword [ebp - 0xc], 0
je 0x45fd86
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x493cc8]
test byte [eax + edi + 0x28], 0x48
je 0x45fd60
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45fd4b
mov byte [esi], dl
jmp 0x45fd5c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x493cc8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45fda9
cmp byte [ebp - 1], 0xa
jne 0x45fd6f
cmp esi, ebx
jne 0x45fd6f
mov byte [esi], 0xa
jmp 0x45fda8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00460afb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45fda9
mov byte [esi], 0xd
jmp 0x45fda8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x493cc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45fda5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45fda9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45fdb2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x493cc8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45fdf5
cmp word [esi], dx
jne 0x45fdf5
or byte [edi + eax + 0x28], 4
jmp 0x45fdfa
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x45ff4d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x45ff2d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x45fe3c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45fe72
cmp eax, edx
jae 0x45fe7e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x45fe14
jmp 0x45ff4d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45ff29
cmp dword [ebp - 0x14], 0
je 0x45ff29
mov eax, dword [ebx*4 + 0x493cc8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x45ff01
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x45feca
mov word [esi], cx
jmp 0x45fefd
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x493cc8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x493cc8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x493cc8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x45ff4d
pop ebx
cmp word [ebp - 4], bx
jne 0x45ff12
cmp esi, dword [ebp + 0xc]
jne 0x45ff12
mov word [esi], bx
jmp 0x45ff4a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00460afb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x45ff4d
push 0xd
jmp 0x45ff46
mov ecx, dword [ebx*4 + 0x493cc8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45ff44
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45ff4d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x467653
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00467527
Function at 0x467e90
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x491090]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x467edb
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0046826a
test al, al
jne 0x467ed5
sub edx, 2
cmp edx, edi
jne 0x467ebb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x467efd
lea eax, [edi + 2]
cmp edx, eax
je 0x467efd
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00467b57
add esp, 0x10
jmp 0x467ff7
push esi
lea ecx, [ebp - 0x255]
call fcn.0046826a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x467f40
push dword [ebp - 0x25c]
jmp 0x467eed
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x467f7d
cmp word [ebp - 0x226], 0
je 0x467f9e
cmp word [ebp - 0x226], ax
jne 0x467f7d
cmp word [ebp - 0x224], 0
je 0x467f9e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00467b57
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x467fea
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x467f57
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x467fd2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x467ff7
push 0x467676
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004752f0
add esp, 0x10
jmp 0x467fc7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420b6e
leave
ret
Function at 0x4693e4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x469481
push ebx
push esi
call fcn.004693a0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00466487
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x46942e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x469480
push edi
push eax
call fcn.00460ce6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x46944e
call fcn.0045c595
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x46947f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00466487
add esp, 0x20
test eax, eax
jne 0x46946d
push edi
call fcn.0045c595
jmp 0x469475
push ebx
call fcn.0045c595
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x469484
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x469495
pop esi
ret
push ebx
push edi
push esi
call fcn.004693a0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00460ce6
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4694bd
push ebx
push esi
push edi
call fcn.00422770
add esp, 0xc
push 0
call fcn.0045c595
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x469d9e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00469730
Function at 0x476bed
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00476a0d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x476d65
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x476d65
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x476d14
jg 0x476c46
test eax, eax
je 0x476d0a
push 1
push 0x1000
call fcn.0045c532
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x476c6c
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x476d01
push 0x8000
push ebx
call fcn.00457946
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x476c98
jg 0x476c93
cmp ecx, 0x1000
jb 0x476c98
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045ea03
add esp, 0x10
cmp eax, 0xffffffff
je 0x476cdd
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x476c93
jl 0x476cc4
test ecx, ecx
jne 0x476c85
push dword [ebp - 0xc]
push ebx
call fcn.00457946
push esi
call fcn.0045c595
add esp, 0xc
xor edi, edi
jmp 0x476d76
cmp byte [edi + 0x24], 0
je 0x476cf4
cmp dword [edi + 0x20], 5
jne 0x476cf4
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x476cff
mov edi, dword [edi + 0x18]
jmp 0x476d01
xor edi, edi
push esi
call fcn.0045c595
pop ecx
jmp 0x476d76
test ecx, ecx
jg 0x476cd6
jl 0x476d14
test eax, eax
jae 0x476cd6
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00460afb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x476d37
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x476cd6
jmp 0x476d6e
push ebx
call fcn.0046a48c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x476cd6
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x476d76
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x476d73
mov edi, dword [edi + 0x18]
jmp 0x476d76
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00460afb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b70
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402fc8
Capabilities:
Query or enumerate registry value

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

Function at 0x403d0c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x403d6d
cmp word [0x45421c], 0xd7b2
jne 0x403d35
cmp dword [0x454224], 0
jbe 0x403d35
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x452070
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 0x403d94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x452034], 0
jne 0x403d89
push 0
push 0x452068
push 0x452070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059e0
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 0x405a46
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.004040f8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b8c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a30
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a4d
lea eax, [ebp - 0x10]
call fcn.00403e88
ret

Function at 0x40a93c
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 0x40a975
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f78
jmp 0x40a97e
mov eax, ebx
mov edx, esi
call fcn.00403edc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b030
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40aea8
mov eax, dword [0x453084]
cmp byte [eax], 0
je 0x40b0ac
mov eax, dword [0x452eac]
call fcn.004029dc
call fcn.00402834
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.004081b0
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 0x40b0f4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b0e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x452e54]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454664]
call fcn.00404ef4
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