joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488240
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6f10
push eax
mov eax, 0x10474
mov dword fs:[0], esp
call fcn.004b5cc0
push esi
mov esi, ecx
push edi
mov byte [esi], 0
cmp dword [0x4e9e28], esi
je 0x488281
mov dword [0x4e9e28], esi
mov dword [0x4e9e30], 0
cmp dword [0x4e9e2c], 0
jne 0x4882a1
mov ecx, 0x7d0
call fcn.0047e730
test eax, eax
je 0x488468
mov dword [0x4e9e2c], eax
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call ebx
test eax, eax
je 0x4882cb
nop dword [eax]
push 4
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x4882c0
mov eax, dword [0x4e4788]
mov ecx, esi
add eax, 0x58
push eax
push edi
call fcn.00488470
pop ebx
test eax, eax
je 0x4882eb
xor ecx, ecx
mov dword [0x4e9e30], ecx
jmp 0x4882f1
mov ecx, dword [0x4e9e30]
mov dword [ebp - 0x10480], 0
mov dword [ebp - 0x10478], 0
mov dword [ebp - 0x10474], 0
mov dword [ebp - 0x10464], 0x4cee98
mov dword [ebp - 0x10440], 0
mov dword [ebp - 0x1043c], 0
mov dword [ebp - 0x10438], 0
mov dword [ebp - 0x10420], 0
mov dword [ebp - 0x1041c], 0
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x488363
mov byte [ebp - 0x10443], 0
test ecx, ecx
je 0x48836a
mov byte [ebp - 0x10443], 1
mov eax, dword [0x4e9e2c]
mov dword [ebp - 0x10434], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x1042c], eax
lea eax, [ebp - 0x10480]
push eax
push 0x488580
mov dword [ebp - 0x10430], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x1043c]
test eax, eax
je 0x4883fb
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov ecx, eax
call fcn.00485c20
mov ecx, dword [0x4e9e30]
xor eax, eax
mov edx, dword [ebp - 0x1043c]
mov esi, dword [0x4e9e2c]
test ecx, ecx
jle 0x4883d0
cmp dword [esi + eax*4], edx
je 0x4883e2
inc eax
cmp eax, ecx
jl 0x4883c6
cmp ecx, 0x1f4
jge 0x4883e2
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4e9e30], ecx
mov eax, dword [0x4e4788]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x488448
mov edx, 1
call fcn.004015e0
jmp 0x488448
mov eax, dword [0x4e9e30]
test eax, eax
je 0x488434
cmp eax, 1
mov dword [0x4e9e30], 0
setg al
test al, al
je 0x488448
mov eax, dword [0x4e9e2c]
mov ecx, esi
push 0
mov dword [0x4e9e30], 1
mov dword [eax], edi
call fcn.00488240
jmp 0x488448
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov ecx, eax
call fcn.00485c20
push dword [ebp - 0x10478]
call fcn.0049f4a2
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0040dcc0
int3
Function at 0x49c3ef
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49c42e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49c42e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49c42e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49c42e
cmp dword [ecx + 0x74], 0xe
jbe 0x49c42e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4ae0ef
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e2018]
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 0x4ae13a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ae28a
test al, al
jne 0x4ae134
sub edx, 2
cmp edx, edi
jne 0x4ae11a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ae15c
lea eax, [edi + 2]
cmp edx, eax
je 0x4ae15c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ae03b
add esp, 0x10
jmp 0x4ae256
push esi
lea ecx, [ebp - 0x255]
call fcn.004ae28a
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 0x4ae19f
push dword [ebp - 0x25c]
jmp 0x4ae14c
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 0x4ae1dc
cmp word [ebp - 0x226], 0
je 0x4ae1fd
cmp word [ebp - 0x226], ax
jne 0x4ae1dc
cmp word [ebp - 0x224], 0
je 0x4ae1fd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ae03b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ae249
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ae1b6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ae231
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ae256
push 0x4ade6b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a9600
add esp, 0x10
jmp 0x4ae226
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.0049c643
leave
ret

Function at 0x4aef90
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb7fc
push 0x4bb7f4
push str.FlsAlloc
push 0x1f
call fcn.004aeecb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aefc4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87a4]
call esi
jmp 0x4aefca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4af00e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb80c
push 0x4bb804
push str.FlsGetValue
push 0x21
call fcn.004aeecb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af045
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4af04d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb814
push 0x4bb80c
push str.FlsSetValue
push 0x22
call fcn.004aeecb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4af087
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b87a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4b5870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b589d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b589d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x4e2b4886
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x78d01d6b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4019e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
mov esi, dword [ebx]
push edi
mov edi, eax
mov eax, dword [edi]
mov dword [ebp - 4], esi
add esi, 4
mov dword [ebp - 8], eax
lea eax, [esi*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
pop ecx
mov dword [ebx], esi
mov esi, 0x408010
push 4
mov dword [edi], eax
mov edx, esi
pop ebx
mov edi, 0x408020
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401a35
cmp byte [ecx + 1], 0x4a
jne 0x401a35
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, edi
jl 0x401a21
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x401a65
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
cmp byte [ecx], 0x2d
jne 0x401a5f
cmp byte [ecx + 1], 0x4a
jne 0x401a5f
add ecx, 2
cmp byte [ecx], 0
je 0x401aa8
mov dword [eax], ecx
add eax, ebx
inc edx
cmp edx, dword [ebp - 4]
jl 0x401a42
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x401a74
cmp byte [ecx + 1], 0x4a
je 0x401a78
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, edi
jl 0x401a67
xor edx, edx
cmp dword [ebp - 4], edx
jle 0x401aa0
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
cmp byte [ecx], 0x2d
jne 0x401a96
cmp byte [ecx + 1], 0x4a
je 0x401a9a
mov dword [eax], ecx
add eax, ebx
inc edx
cmp edx, dword [ebp - 4]
jl 0x401a85
and dword [eax], 0
pop edi
pop esi
pop ebx
leave
ret
push 1
push str.Error:_the__J_option_should_not_be_followed_by_a_space.
call fcn.0040346b
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCR71.dll_exit]
int3
Function at 0x401abf
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push str.CLASSPATH
mov byte [ebp - 4], 0x3b
mov byte [ebp - 3], 0
call dword [sym.imp.MSVCR71.dll_getenv]
mov esi, dword [sym.imp.MSVCR71.dll_sprintf]
mov edi, eax
test edi, edi
pop ecx
je 0x401b10
push edi
call sub.MSVCR71.dll_strlen
add eax, 0x28
push eax
call sub.jli.dll_JLI_MemAlloc
push edi
mov ebx, eax
push str._Denv.class.path_s
push ebx
call esi
push 0
push ebx
call fcn.004010bd
add esp, 0x1c
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.004031c5
test al, al
pop ecx
pop ecx
jne 0x401b3c
push 1
push str.Cant_determine_application_home
call fcn.0040346b
pop ecx
pop ecx
xor al, al
jmp 0x401c00
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR71.dll_strlen
add eax, 0x28
push eax
call sub.jli.dll_JLI_MemAlloc
mov edi, eax
lea eax, [ebp - 0x110]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.004010bd
push 0x28
lea eax, [ebp - 0x110]
pop esi
push eax
call sub.MSVCR71.dll_strlen
mov edi, 0x408020
add esp, 0x20
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
mov ebx, 0x408028
mov eax, dword [ebp - 8]
push dword [eax]
call sub.MSVCR71.dll_strlen
add eax, dword [ebp - 0xc]
add dword [ebp - 8], 4
cmp dword [ebp - 8], ebx
pop ecx
lea esi, [esi + eax + 1]
jl 0x401b8c
inc esi
push esi
call sub.jli.dll_JLI_MemAlloc
mov esi, eax
mov dword [esp], str._Djava.class.path
push esi
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x110]
push eax
push esi
call sub.MSVCR71.dll_strcat
push dword [edi]
push esi
call sub.MSVCR71.dll_strcat
lea eax, [ebp - 4]
push eax
push esi
call sub.MSVCR71.dll_strcat
add edi, 4
add esp, 0x18
cmp edi, ebx
jl 0x401bbf
push esi
call sub.MSVCR71.dll_strlen
push 0
push esi
mov byte [eax + esi - 1], 0
call fcn.004010bd
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCR71.dll_strcpy
pop ecx
pop ecx
push str._Xusage.txt
lea eax, [ebp - 0x1a4]
push 0x5c
push eax
call dword [sym.imp.MSVCR71.dll_strrchr]
pop ecx
pop ecx
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x1a4]
push 0x405fd0
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x401e95
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCR71.dll_fprintf]
xor eax, eax
add esp, 0xc
inc eax
jmp 0x401ee5
push esi
mov esi, dword [sym.imp.MSVCR71.dll_fread]
push edi
push ebx
mov edi, 0x80
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
jmp 0x401ed5
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
test eax, eax
jne 0x401eb1
push ebx
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x94b520
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3f5000]
push edi
jmp 0x94b53a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x94b541
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x94b530
mov eax, 1
add ebx, ebx
jne 0x94b553
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x94b564
jne 0x94b583
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x94b583
dec eax
add ebx, ebx
jne 0x94b570
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x94b548
add ebx, ebx
jne 0x94b57f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x94b5d5
xor ecx, ecx
sub eax, 3
jb 0x94b59b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x94b60a
sar eax, 1
mov ebp, eax
jmp 0x94b5a6
add ebx, ebx
jne 0x94b5a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x94b574
inc ecx
add ebx, ebx
jne 0x94b5b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x94b574
add ebx, ebx
jne 0x94b5c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x94b5b6
jne 0x94b5d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x94b5b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x94b5f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x94b5e6
jmp 0x94b536
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x94b5f4
add edi, ecx
jmp 0x94b536
pop esi
mov edi, esi
mov ecx, 0xcc8b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x94b612
cmp byte [edi], 0x19
jne 0x94b612
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x94b617
lea edi, [esi + 0x548000]
mov eax, dword [edi]
or eax, eax
je 0x94b68f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x54f7bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x54f924]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x94b644
mov ecx, edi
jns 0x94b673
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x54f928]
or eax, eax
je 0x94b689
mov dword [ebx], eax
add ebx, 4
jmp 0x94b661
call dword [esi + 0x54f938]
mov ebp, dword [esi + 0x54f92c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x94b6c3
sub esp, 0xffffff80
jmp 0x51b8ed
Function at 0x404a50
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 0x404ab6
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.00403ec0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ba4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404aa0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404abd
lea eax, [ebp - 0x10]
call fcn.00403c6c
ret

Function at 0x4060bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404048
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4060d5
test al, 0x10
jne 0x4060d9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406e4c
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 0x406e85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d5c
jmp 0x406e8e
mov eax, ebx
mov edx, esi
call fcn.00403cc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x4080ec
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 0x408150
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.00403ec0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405ef8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408157
lea eax, [ebp - 0xc]
call fcn.00403c6c
ret

Function at 0x40b72c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push edi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, 0
mov edi, dword [0x411830]
shl edi, 2
xor edx, dword [esi + 0x4107a8]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x410830]
mov bl, dl
add ecx, dword [ebx*4 + 0x410c30]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x411030]
mov bl, dl
add ecx, dword [ebx*4 + 0x411430]
xor eax, ecx
xchg edx, eax
add esi, 4
cmp esi, edi
jne 0x40b749
xchg edx, eax
xor eax, dword [esi + 0x4107a8]
xor edx, dword [esi + 0x4107ac]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x40b7a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push esi
push eax
push edx
mov eax, dword [eax]
mov edx, dword [edx]
mov ebx, 0
mov esi, dword [0x411830]
inc esi
shl esi, 2
xor edx, dword [esi + 0x4107a8]
ror edx, 0x10
mov bl, dh
mov ecx, dword [ebx*4 + 0x410830]
mov bl, dl
add ecx, dword [ebx*4 + 0x410c30]
rol edx, 0x10
mov bl, dh
xor ecx, dword [ebx*4 + 0x411030]
mov bl, dl
add ecx, dword [ebx*4 + 0x411430]
xor eax, ecx
xchg edx, eax
sub esi, 4
cmp esi, 4
jne 0x40b7bc
xchg edx, eax
xor eax, dword [0x4107ac]
xor edx, dword [0x4107a8]
mov ebx, edx
pop edx
mov dword [edx], ebx
mov ebx, eax
pop eax
mov dword [eax], ebx
pop esi
pop ecx
pop ebx
ret
Function at 0x40ba9c
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x411830], 0x10
mov esi, 0x40e2cc
mov edi, 0x4107a8
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x40c9f8
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.00406338
add esp, 0x104
pop ebx
ret
Function at 0x401130
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
test eax, eax
mov dword [0x40308c], esi
je 0x40114e
mov cl, byte [eax]
test cl, cl
je 0x40114e
cmp cl, 0x20
jne 0x401154
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
test eax, eax
je 0x401163
mov cl, byte [eax]
test cl, cl
je 0x401163
cmp cl, 0x20
jne 0x401168
mov eax, 0x403010
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push eax
push str.ZPrint32Class
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x40119a
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret
Function at 0x4013c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
mov ebx, dword [ebp + 8]
add ebx, 0x110
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
push esi
mov eax, dword [ebx + 0x1c]
push esi
push 1
push eax
push esi
push esi
call sub.ZSPOOL.dll_GetPrintProcessorA
cmp dword [ebp - 4], esi
je 0x401425
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
add eax, 3
and eax, 0xfffffffc
call fcn.004015d0
mov edi, esp
test edi, edi
je 0x40155d
lea eax, [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
mov edx, dword [ebx + 0x1c]
push ecx
push edi
push 1
push edx
push esi
push esi
call sub.ZSPOOL.dll_GetPrintProcessorA
test edi, edi
je 0x40155d
cmp byte [edi], 0
je 0x40155d
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 8], eax
test eax, eax
je 0x401536
push str.InitializePrintProcessor
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40152c
mov ecx, 0x403070
push 0x14
push ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
call eax
test eax, eax
je 0x40152c
mov eax, dword [ebx + 4]
push eax
call dword [0x403074]
mov dword [0x403030], eax
test eax, eax
je 0x40152c
lea edi, [ebp - 0x28]
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x10]
add eax, 0xc
push 0x104
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebx]
lea ecx, [ebp - 0x12c]
push ecx
mov dword [0x403084], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov edx, dword [ebx]
push edx
call sub.ZSPOOL.dll_ZSP_MakeSpoolFilePath
test eax, eax
je 0x401514
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [0x403030]
push edx
mov dword [ebp - 0x10], eax
call dword [0x403078]
mov esi, eax
lea ecx, [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x403030]
push eax
call dword [0x40307c]
xor eax, eax
mov dword [0x403030], eax
mov dword [0x403084], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebx]
mov ecx, dword [ebp + 8]
push eax
push esi
push 0x85c
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT40.dll_free]
add esp, 4
mov eax, esi
jmp 0x40155f
xor eax, eax
lea esp, [ebp - 0x138]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4