joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c790
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, eax
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
add dword [0x41b26c], 1
test esi, esi
jne 0x40c804
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc_unlocked
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
test edi, edi
jne 0x40c80d
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.0040c730
jmp 0x40c7cb
mov dword [esp], edi
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x41b270]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x40c850
cmp dword [0x419270], edi
je 0x40c8e0
mov dword [0x419280], esi
mov dword [0x419270], edi
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fileno
test eax, eax
js 0x40c888
mov dword [esp + 4], 3
mov dword [esp], eax
call sub.cygwin1.dll__fcntl64
test eax, eax
js 0x40c888
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
mov eax, dword [0x41b268]
test eax, eax
je 0x40c900
call eax
test esi, esi
mov eax, str._s:_d:
mov ebx, 0x416a46
cmovne ebx, eax
call sub.cygwin1.dll___getreent
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
lea eax, [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [esp], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.0040c790
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x419280]
cmp esi, eax
je 0x40c8d2
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_strcmp
test eax, eax
jne 0x40c844
jmp 0x40c8d2
mov ebx, dword [0x41929c]
call sub.cygwin1.dll___getreent
mov dword [esp + 4], 0x416a42
mov dword [esp + 8], ebx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
jmp 0x40c893
Function at 0x40c9c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x40ca49
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.cygwin1.dll_strrchr
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40c9fa
add eax, 1
mov dword [ebp - 0x10], eax
sub eax, ebx
cmp eax, 6
jg 0x40ca10
mov dword [0x41929c], ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov edi, str._.libs_
mov ecx, 7
sub eax, 6
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40c9fa
mov esi, dword [ebp - 0x10]
mov edi, 0x416a98
mov ecx, 3
mov ebx, dword [ebp - 0x14]
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
add ebx, 4
cmp dl, al
cmovne ebx, dword [ebp - 0x10]
jmp 0x40c9fa
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x37
mov dword [esp + 4], 1
mov dword [esp], str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x40db20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x415120]
mov dword [esp + 0xc], str.memory_exhausted
mov dword [esp + 8], 0x416d31
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040c930
call sub.cygwin1.dll_abort
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 4], str.bug_inetutils_gnu.org
mov dword [esp], str._nReport_bugs_to:__s_n
call sub.cygwin1.dll_printf
mov dword [esp + 8], str.http:__www.gnu.org_software_inetutils_
mov dword [esp + 4], str.GNU_inetutils
mov dword [esp], str._s_home_page:___s__n
call sub.cygwin1.dll_printf
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 8]
mov dword [esp + 8], 0x3f
mov dword [esp + 4], 1
mov dword [esp], str.General_help_using_GNU_software:__http:__www.gnu.org_gethelp___n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
leave
ret
Function at 0x40e060
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
test edi, edi
je 0x40e1a0
test byte [edi + 0x10], 2
jne 0x40e130
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x40e130
mov dword [esp], esi
call sub.cygwin1.dll_flockfile
test edi, edi
je 0x40e194
mov eax, dword [edi + 0x28]
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.cygwin1.dll_fputs
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40e0ee
mov dword [esp + 4], esi
lea ebx, [ebp + 0x18]
mov dword [esp], 0x3a
call sub.cygwin1.dll_putc_unlocked
mov dword [esp + 4], esi
mov dword [esp], 0x20
call sub.cygwin1.dll_putc_unlocked
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_vfprintf
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40e140
mov dword [esp + 4], esi
mov dword [esp], 0xa
call sub.cygwin1.dll_putc_unlocked
mov dword [esp], esi
call sub.cygwin1.dll_funlockfile
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40e130
test edi, edi
je 0x40e11e
test byte [edi + 0x10], 0x20
jne 0x40e130
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_exit
lea esi, [esi]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], esi
mov dword [esp], 0x3a
call sub.cygwin1.dll_putc_unlocked
mov dword [esp + 4], esi
mov dword [esp], 0x20
call sub.cygwin1.dll_putc_unlocked
lea eax, [ebp - 0xd4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0xc8
mov dword [esp], eax
call sub.cygwin1.dll_strerror_r
test eax, eax
mov edx, eax
je 0x40e1b0
mov dword [esp + 4], esi
mov dword [esp], edx
call sub.cygwin1.dll_fputs
jmp 0x40e0f5
mov eax, dword [0x419294]
jmp 0x40e0a5
call sub.cygwin1.dll___getreent
mov esi, dword [eax + 0xc]
jmp 0x40e08a
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.cygwin1.dll_strerror
mov edx, str.Unknown_system_error
test eax, eax
cmovne edx, eax
jmp 0x40e183
Function at 0x410ef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test ebx, ebx
je 0x410f0f
test byte [ebx + 0x10], 2
jne 0x410f4b
test ecx, ecx
je 0x410f4b
test ebx, ebx
je 0x410f55
mov eax, esi
mov edx, ebx
or al, 0x80
test byte [ebx + 0x10], 0x40
cmovne esi, eax
mov eax, dword [ebx + 0x28]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebx]
call fcn.0040f9c0
test byte [ebx + 0x10], 0x20
jne 0x410f4b
test esi, 0x100
jne 0x410f78
and esi, 0x200
jne 0x410f6c
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x419294]
xor edx, edx
mov dword [esp], esi
mov dword [esp + 4], eax
xor eax, eax
call fcn.0040f9c0
jmp 0x410f3b
mov dword [esp], 0
call sub.cygwin1.dll_exit
mov eax, dword [0x415124]
mov dword [esp], eax
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]
Function at 0x4117f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
cmp eax, dword [ebp + 0xc]
jb 0x411820
mov eax, 1
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
call fcn.004112f0
mov eax, dword [ebx]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], 1
sub eax, edx
mov dword [esp + 8], eax
call sub.cygwin1.dll_fwrite
mov esi, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
mov ecx, eax
mov eax, esi
sub eax, edx
cmp eax, ecx
jne 0x4118a0
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x10], 0
sub eax, edx
cmp dword [ebp + 0xc], eax
jbe 0x41180a
mov esi, dword [ebp + 0xc]
add esi, eax
jb 0x4118d0
mov dword [esp], edx
mov dword [esp + 4], esi
call sub.cygwin1.dll_realloc
test eax, eax
mov edx, eax
je 0x4118d0
mov dword [ebx + 0x18], eax
lea eax, [eax + esi]
mov dword [ebx + 0x20], eax
mov eax, 1
mov dword [ebx + 0x1c], edx
jmp 0x41180f
mov eax, esi
sub dword [ebx + 0x10], ecx
sub eax, ecx
mov dword [ebx + 0x1c], eax
sub eax, edx
mov dword [esp + 8], eax
lea eax, [edx + ecx]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.cygwin1.dll_memmove
mov ebx, dword [ebp - 8]
xor eax, eax
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.cygwin1.dll___errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x41180f

Function at 0x411970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.004112f0
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x18]
cmp ecx, edx
jbe 0x4119ab
mov eax, dword [ebx]
sub ecx, edx
mov dword [esp], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov edx, dword [ebx + 0x18]
mov dword [esp], edx
call sub.cygwin1.dll_free
mov dword [ebp + 8], ebx
add esp, 0x14
pop ebx
pop ebp
jmp sub.cygwin1.dll_free
Function at 0x413500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edx
jne 0x413527
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4135ec
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x4135c0
cmp eax, 4
je 0x4135c0
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x41351a
cmp eax, 4
je 0x41351a
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x41351a
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x41351a
cmp eax, 4
lea edi, [ebp - 0x10]
jne 0x41359a
jmp 0x41351a
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00413170
lea esi, [esi]
lea edi, [edi]
Function at 0xb95411
Capabilities:
Encode data using base64

Disassembly:
inc edi
xor edx, 0x588106b6
add word [esp + 0x11], 0x50d
mov dword [esp + 0xc], 0xc002a58d
dec eax
lea esp, [esp + 0x14]
jne 0x12c2855
mov ebx, 0x43b4058e
call fcn.0129cf27
shr edx, 8
push 0xc6ac543c
xor edx, ebx
sal byte [esp + 0xb], 0xa5
js 0x1345a8f
js 0x1345ac5
aas
imul ebx, ebp, 0x13
test edi, esp
pop ecx
adc eax, 0x8a0fffbb
jp 0xb7f720
mov ebx, dword [ebx + eax*4 - 0x40001701]
cmp edi, 0xdca94b54
mov al, al
imul dx, word [eax + ebx*8 + 0x4d335b14], 0xecf7
sbb eax, 0x8ed6894b
int 0x73
sar byte [ecx - 0x23], cl
call 0xb61a99
push esp
dec ebx
test eax, 0x66c08adc
imul edx, dword [eax + ebx*8 + 0x4d335b14], 0x4b1decf7
mov esi, edx
mov cs, ebp
jae 0x1345a84
jns 0x1345a91
lds esp, [eax]
imul eax, eax, 0x31
test dword [eax + 0x16], esi
adc dl, byte [ecx + 0x41]
adc dh, byte [edx]
adc ebx, dword [edi + 0xb]
mov dword [0x3477c02], eax
add bh, byte [edi + eax*2 + 3]
pop edx
lock xor edi, dword [ebx + 0x17ab70f2]
mov esi, 0x828317cc
ja 0x1345a85
out 0xa2, al
call 0xf5f09c2d
adc al, 0x73
and ecx, dword [ebx]
mov ebx, dword [ecx + ebp*2 - 0x95536eb]
aad 0x7b
les ebx, [ecx - 0x974c0c7]
stosd dword es:[edi], eax
pop esi
ljmp 0x85f3

Function at 0x1270e29
Capabilities:
Encode data using base64

Disassembly:
push 0xe70eef9f
shr ecx, 8
xor ecx, ebx
inc eax
push 0xe026608b
xor ecx, 0xaf1a0835
jmp 0xbc5fe0

Function at 0x12c2848
Capabilities:
Encode data using base64

Disassembly:
push 0x78b30891
mov dword [esp + 8], ebx
lea esp, [esp + 8]
mov ebx, 0x7b1c36ae
shl bx, 0x84
movzx ebx, byte [ebx + edi - 0x7b1c6ae0]
push 0xe83d37b3
mov word [esp], 0x1913
adc dword [esp], 0xc20ad939
xor ebx, edx
not dword [esp]
shr word [esp + 2], 0xe4
jb 0xc09ab9
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x705f64
pop edi
jo 0x401005
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [ebx], esp
jge 0x401055
ja 0x4010fe
fld xword [esi - 7]
or al, 0xb7
dec edx
mov ch, 0xfc
outsd dx, dword [esi]
jns 0x4010cd
fcom qword [eax - 0x69d98623]
retf 0x41f8
and ecx, eax
hlt
int1
push 0xffffffffffffffc2
cmp dh, byte [edx + 0xc64b3b4]
inc edx
stosd dword es:[edi], eax
adc eax, 0xa48720e9
jl 0x40108d
hlt
push 0xffffffffffffff9c
pushfd
retf
Function at 0x10001070
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x62
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call fcn.100050d0
add esp, 0xc
mov dword [ebp - 0x6c], 0x32
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
movzx eax, word [ebp - 0x68]
cmp eax, 0xa24f99c7
je 0x100010c5
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000112b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
mov dword [0x100140cc], 1
call fcn.1000112b
mov esp, ebp
pop ebp
ret
Function at 0x402e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004049d4
test esi, esi
jne 0x402e83
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404ac4
jmp 0x402ea4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce8
mov dword [esp], eax
test esi, esi
je 0x402ea4
cmp dword [ebx], 0
je 0x402ea4
dec esi
jmp 0x402e8b
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x403a50
Capabilities:
Query or enumerate registry value

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

Function at 0x4047cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b048], 0
je 0x40482d
cmp word [0x46b21c], 0xd7b2
jne 0x4047f5
cmp dword [0x46b224], 0
jbe 0x4047f5
mov eax, 0x46b218
call dword [0x46b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x469074
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 0x404854
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x469034], 0
jne 0x404849
push 0
push 0x46906c
push 0x469074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404988
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.00402a88
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46b049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404950
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406684
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 0x4066ea
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.00404c44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004034ac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066f1
lea eax, [ebp - 0x10]
call fcn.004049d4
ret

Function at 0x40bb1c
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 0x40bb55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404ac4
jmp 0x40bb5e
mov eax, ebx
mov edx, esi
call fcn.00404a28
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c220
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c088
mov eax, dword [0x46a3cc]
cmp byte [eax], 0
je 0x40c29c
mov eax, dword [0x46a1d8]
call fcn.004032b4
call fcn.00402c14
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.004090fc
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 0x40c2e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c2d2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46a184]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46b664]
call fcn.00405aa0
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 0x40cb40
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 0x40cc16
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404a6c
lea eax, [ebp - 8]
call fcn.00404ee4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e94
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc00
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cbf9
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.00404e94
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cbe3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc28
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cbe3
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 0x40cc00
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc1d
lea eax, [ebp - 8]
call fcn.004049d4
ret

Function at 0x40d168
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 0x40d1cc
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.00404c44
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408b84
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1d3
lea eax, [ebp - 0xc]
call fcn.004049d4
ret

Function at 0x41aaa8
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.0041a900
dec esi
jne 0x41aaca
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret