joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1b8f25bd
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5b806d7
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406752
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406776
xor eax, eax
test eax, eax
je 0x406789
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406789
xor ecx, ecx
jmp 0x40678c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068b5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4068ec
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068c6
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40691d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4068ff
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5c8e3fc4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x44a85974
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40d100
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x420bf3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.zeno::IThread.0
xor ebx, ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov dword [esi + 8], 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, ebx
lea edi, [esi + 0x14]
mov dword [esi], vtable.zeno::AbstractThread.0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esp + 0x18], 1
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x20], eax
je 0x40d193
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40d179
mov ecx, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.0040cbf0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40d193
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x410e58
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x420f40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
mov esi, ecx
push 2
push esi
lea ecx, [esp + 0xc]
call fcn.0040df80
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esp + 0x60], 0
call dword [edx + 0x34]
lea ecx, [esp + 0x14]
mov dword [esp + 0x5c], 1
call fcn.00404c70
mov eax, dword [esi + 4]
test eax, eax
je 0x410e9a
mov ecx, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x410eba
lea edx, [esi + 0xc]
push edx
push 0
push esi
push 0x410ee0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
mov esi, dword [esi + 4]
test esi, esi
je 0x410ec8
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esp + 0x54]
pop esi
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x415356
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4236c8
call fcn.00418094
mov edi, 0x94
mov eax, edi
call fcn.004152d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x42d178], ecx
mov eax, dword [esi + 4]
mov dword [0x42d184], eax
mov edx, dword [esi + 8]
mov dword [0x42d188], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42d17c], esi
cmp ecx, 2
je 0x4153b6
or esi, 0x8000
mov dword [0x42d17c], esi
shl eax, 8
add eax, edx
mov dword [0x42d180], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4153f1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4153f1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x415409
cmp eax, 0x20b
je 0x4153f6
mov dword [ebp - 0x1c], esi
jmp 0x41541d
cmp dword [ecx + 0x84], 0xe
jbe 0x4153f1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x415417
cmp dword [ecx + 0x74], 0xe
jbe 0x4153f1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418ca2
pop ecx
test eax, eax
jne 0x415431
push 0x1c
call fcn.00415332
pop ecx
call fcn.00418976
test eax, eax
jne 0x415442
push 0x10
call fcn.00415332
pop ecx
call fcn.0041a343
mov dword [ebp - 4], esi
call fcn.0041a145
test eax, eax
jge 0x41545b
push 0x1b
call fcn.0041530d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42e844], eax
call fcn.0041a023
mov dword [0x42cfdc], eax
call fcn.00419f81
test eax, eax
jge 0x415481
push 8
call fcn.0041530d
pop ecx
call fcn.00419d4e
test eax, eax
jge 0x415492
push 9
call fcn.0041530d
pop ecx
push 1
call fcn.00419870
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4154a8
push eax
call fcn.0041530d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00419cf1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4154c9
movzx eax, word [ebp - 0x40]
jmp 0x4154cc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00408710
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4154ea
push edi
call fcn.0041999d
call fcn.004199bf
jmp 0x41551c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004180cf
ret
Function at 0x4198da
Capabilities:
Terminate process

Disassembly:
push 8
push 0x423f98
call fcn.00418094
push 8
call fcn.00418063
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42d1b8], esi
jne 0x41990e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42d1b4], esi
mov al, byte [ebp + 0x10]
mov byte [0x42d1b0], al
cmp dword [ebp + 0xc], edi
jne 0x419958
cmp dword [0x42e808], edi
je 0x419948
mov eax, dword [0x42e804]
sub eax, 4
mov dword [0x42e804], eax
cmp eax, dword [0x42e808]
jb 0x419948
mov eax, dword [eax]
cmp eax, edi
je 0x419929
call eax
jmp 0x419929
push 0x42a040
mov eax, 0x42a038
call fcn.00419858
pop ecx
push 0x42a04c
mov eax, 0x42a044
call fcn.00419858
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x419989
cmp dword [ebp + 0x10], edi
jne 0x419997
mov dword [0x42d1b8], esi
push dword [ebp + 8]
call fcn.00419816
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x419996
push 8
call fcn.00417fae
pop ecx
ret
call fcn.004180cf
ret

Function at 0x4199dd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42af00]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42b3a8]
je 0x419a12
inc eax
cmp eax, 0x13
jb 0x419a03
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42b3a8]
jne 0x419b38
mov eax, dword [0x42cfe4]
cmp eax, 1
je 0x419b10
cmp eax, edx
jne 0x419a42
cmp dword [0x42aea4], 1
je 0x419b10
cmp ecx, 0xfc
je 0x419b38
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419a78
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00418b90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00416010
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419aac
mov eax, edi
push eax
call fcn.00416010
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x424390
push edi
call fcn.0041c2f0
add esp, 0x10
push edi
call fcn.00416010
push dword [esi + 0x42b3ac]
mov ebx, eax
call fcn.00416010
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004152d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00418b90
push edi
push ebx
call fcn.00418ba0
push 0x424370
push ebx
call fcn.00418ba0
push dword [esi + 0x42b3ac]
push ebx
call fcn.00418ba0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041ddce
add esp, 0x2c
jmp 0x419b38
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42b3ac]
push dword [esi]
call fcn.00416010
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00415f22
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41d1bc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004152d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d257
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42d178]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41d257
cmp eax, 1
je 0x41d278
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d257
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41d224
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41d253
xor eax, eax
inc eax
jmp 0x41d297
cmp edi, eax
jae 0x41d25b
xor eax, eax
jmp 0x41d297
cmp eax, esi
jae 0x41d262
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42d178]
jmp 0x41d27b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d461
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41d48f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41d496
cmp ebx, dword [eax + 4]
jae 0x41d496
xor eax, eax
jmp 0x41d686
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41d4a7
xor eax, eax
inc eax
jmp 0x41d685
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41d4bd
cmp ecx, edx
jae 0x41d602
cmp dword [eax + 4], 0
je 0x41d4c6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41d4ae
cmp dword [ebp + 8], 0
je 0x41d4e8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41d602
cmp eax, esi
jae 0x41d602
mov eax, dword [0x42d358]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41d50d
cmp dword [esi*4 + 0x42d360], edi
je 0x41d606
inc esi
cmp esi, eax
jl 0x41d4fb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d682
cmp dword [ebp - 8], 0x1000000
jne 0x41d682
test byte [ebp - 0xc], 0xcc
je 0x41d58b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41d682
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d682
cmp word [eax + 0x18], 0x10b
jne 0x41d682
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41d682
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41d58b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41d58b
test byte [ecx + 0x27], 0x80
jne 0x41d602
push 1
push 0x42d3a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41d49f
mov ecx, dword [0x42d358]
test ecx, ecx
mov edx, ecx
jle 0x41d5bf
lea eax, [ecx*4 + 0x42d35c]
cmp dword [eax], edi
je 0x41d5bf
dec edx
sub eax, 4
test edx, edx
jg 0x41d5b3
test edx, edx
jne 0x41d5f0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41d5cc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41d5e4
lea eax, [edx*4 + 0x42d360]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41d5d2
cmp ecx, 0x10
jge 0x41d5f0
inc ecx
mov dword [0x42d358], ecx
push 0
push 0x42d3a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41d49f
xor eax, eax
jmp 0x41d685
test esi, esi
jle 0x41d49f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42d3a0
call ebx
test eax, eax
jne 0x41d49f
cmp dword [esi*4 + 0x42d360], edi
je 0x41d65c
mov eax, dword [0x42d358]
lea esi, [eax - 1]
test esi, esi
jl 0x41d64a
cmp dword [esi*4 + 0x42d360], edi
je 0x41d646
dec esi
jns 0x41d63a
test esi, esi
jge 0x41d65a
cmp eax, 0x10
jge 0x41d655
inc eax
mov dword [0x42d358], eax
lea esi, [eax - 1]
jmp 0x41d65c
je 0x41d674
xor ecx, ecx
test esi, esi
jl 0x41d674
lea eax, [ecx*4 + 0x42d360]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41d662
push 0
push 0x42d3a0
call ebx
jmp 0x41d49f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ddce
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42d3bc], ebx
push esi
push edi
jne 0x41de4e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41de89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42d3bc], eax
je 0x41de89
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42d3c0], eax
call esi
cmp dword [0x42d178], 2
mov dword [0x42d3c4], eax
jne 0x41de4e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42d3cc], eax
je 0x41de4e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42d3c8], eax
mov eax, dword [0x42d3c8]
test eax, eax
je 0x41de93
call eax
test eax, eax
je 0x41de7a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42d3cc]
test eax, eax
je 0x41de7a
test byte [ebp - 8], 1
jne 0x41de93
cmp dword [0x42d184], 4
jb 0x41de8d
or byte [ebp + 0x12], 0x20
jmp 0x41deb2
xor eax, eax
jmp 0x41dec2
or byte [ebp + 0x12], 4
jmp 0x41deb2
mov eax, dword [0x42d3c0]
test eax, eax
je 0x41deb2
call eax
mov ebx, eax
test ebx, ebx
je 0x41deb2
mov eax, dword [0x42d3c4]
test eax, eax
je 0x41deb2
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42d3bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41e02a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x42af00]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41e05b
xor eax, eax
jmp 0x41e1e4
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42e700]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41e097
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041f348
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41e172
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41e1b0
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41e0fb
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41e0ec
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41e0cc
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e13b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41e144
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41e0bd
jmp 0x41e146
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41e1df
cmp dword [ebp - 0x6c], edi
je 0x41e1b0
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41e1a5
call fcn.004181e9
mov dword [eax], 9
call fcn.004181f2
mov dword [eax], esi
jmp 0x41e1da
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e19a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41e146
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41e146
push dword [ebp - 0x6c]
call fcn.004181fb
pop ecx
jmp 0x41e1da
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41e1c8
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41e1c8
xor eax, eax
jmp 0x41e1e2
call fcn.004181e9
mov dword [eax], 0x1c
call fcn.004181f2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41e1e2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00415f22
add ebp, 0x3a0
leave
ret
Function at 0x41ef56
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4256f8
call fcn.00418094
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x42d490], edi
jne 0x41ef9a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ef85
mov dword [0x42d490], ebx
jmp 0x41ef9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41ef9a
mov dword [0x42d490], 2
mov eax, dword [0x42d490]
cmp eax, ebx
jne 0x41efba
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41f07d
cmp eax, 2
je 0x41efc3
cmp eax, edi
jne 0x41efeb
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x41efd6
mov eax, dword [0x42d318]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x41eff2
xor eax, eax
jmp 0x41f07d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004152d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x41f025
cmp esi, edi
jne 0x41f03b
push dword [ebp - 0x20]
call fcn.00415fd7
pop ecx
mov esi, eax
cmp esi, edi
je 0x41efeb
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41f06e
cmp dword [ebp + 0x14], edi
jne 0x41f058
push edi
push edi
jmp 0x41f05e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x41f07a
push esi
call fcn.00415252
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004180cf
ret
Function at 0x41f086
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x425708
call fcn.00418094
xor esi, esi
cmp dword [0x42d494], esi
jne 0x41f0ca
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f0b5
mov dword [0x42d494], edi
jmp 0x41f0ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41f0ca
mov dword [0x42d494], 2
mov eax, dword [0x42d494]
cmp eax, 2
je 0x41f1ab
cmp eax, esi
je 0x41f1ab
cmp eax, 1
jne 0x41f10f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x41f0f8
mov eax, dword [0x42d318]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x41f116
xor eax, eax
jmp 0x41f1bd
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004152d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x41f14c
cmp edi, esi
jne 0x41f167
lea eax, [ebx + ebx]
push eax
call fcn.00415fd7
pop ecx
mov edi, eax
cmp edi, esi
je 0x41f10f
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f19a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x41f184
push esi
push esi
jmp 0x41f18a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x41f1a6
push edi
call fcn.00415252
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x41f1bd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004180cf
ret