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

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014df
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x9ea6609
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
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
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x38927c57
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x404db5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408608
cmp edx, dword [eax]
je 0x404dd7
add eax, 8
inc ecx
cmp eax, 0x408698
jl 0x404dc8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408608]
jne 0x404f05
mov eax, dword [0x4089c8]
cmp eax, 1
je 0x404edf
test eax, eax
jne 0x404e08
cmp dword [0x408554], 1
je 0x404edf
cmp edx, 0xfc
je 0x404f05
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e3f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404e82
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.004056f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004032d0
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.004032d0
push dword [esi + 0x40860c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405667
add esp, 0x2c
pop edi
jmp 0x404f05
lea eax, [ebp + 8]
lea esi, [esi + 0x40860c]
push 0
push eax
push dword [esi]
call fcn.004033b0
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]
pop esi
leave
ret
Function at 0x420731
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004208e1
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x42082f
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4207d2
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x420815
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4207e9
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x420804
test al, 0x40
je 0x4207fb
mov ecx, dword [edi + 0x20]
jmp 0x420802
test al, 0x80
je 0x420815
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x420815
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4207a1
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40d0e0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x420bd3
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 0x40d173
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40d159
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.0040cbd0
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40d173
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 0x410e38
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x420f20
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.0040df60
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 0x410e7a
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 0x410e9a
lea edx, [esi + 0xc]
push edx
push 0
push esi
push 0x410ec0
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 0x410ea8
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 0x415336
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4236c8
call fcn.00418074
mov edi, 0x94
mov eax, edi
call fcn.004152b0
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 0x415396
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 0x4153d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4153d1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4153e9
cmp eax, 0x20b
je 0x4153d6
mov dword [ebp - 0x1c], esi
jmp 0x4153fd
cmp dword [ecx + 0x84], 0xe
jbe 0x4153d1
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4153f7
cmp dword [ecx + 0x74], 0xe
jbe 0x4153d1
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00418c82
pop ecx
test eax, eax
jne 0x415411
push 0x1c
call fcn.00415312
pop ecx
call fcn.00418956
test eax, eax
jne 0x415422
push 0x10
call fcn.00415312
pop ecx
call fcn.0041a323
mov dword [ebp - 4], esi
call fcn.0041a125
test eax, eax
jge 0x41543b
push 0x1b
call fcn.004152ed
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42e844], eax
call fcn.0041a003
mov dword [0x42cfdc], eax
call fcn.00419f61
test eax, eax
jge 0x415461
push 8
call fcn.004152ed
pop ecx
call fcn.00419d2e
test eax, eax
jge 0x415472
push 9
call fcn.004152ed
pop ecx
push 1
call fcn.00419850
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x415488
push eax
call fcn.004152ed
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00419cd1
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4154a9
movzx eax, word [ebp - 0x40]
jmp 0x4154ac
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004086f0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4154ca
push edi
call fcn.0041997d
call fcn.0041999f
jmp 0x4154fc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004180af
ret
Function at 0x4198ba
Capabilities:
Terminate process

Disassembly:
push 8
push 0x423f98
call fcn.00418074
push 8
call fcn.00418043
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42d1b8], esi
jne 0x4198ee
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 0x419938
cmp dword [0x42e808], edi
je 0x419928
mov eax, dword [0x42e804]
sub eax, 4
mov dword [0x42e804], eax
cmp eax, dword [0x42e808]
jb 0x419928
mov eax, dword [eax]
cmp eax, edi
je 0x419909
call eax
jmp 0x419909
push 0x42a040
mov eax, 0x42a038
call fcn.00419838
pop ecx
push 0x42a04c
mov eax, 0x42a044
call fcn.00419838
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x419969
cmp dword [ebp + 0x10], edi
jne 0x419977
mov dword [0x42d1b8], esi
push dword [ebp + 8]
call fcn.004197f6
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x419976
push 8
call fcn.00417f8e
pop ecx
ret
call fcn.004180af
ret

Function at 0x4199bd
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 0x4199f2
inc eax
cmp eax, 0x13
jb 0x4199e3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42b3a8]
jne 0x419b18
mov eax, dword [0x42cfe4]
cmp eax, 1
je 0x419af0
cmp eax, edx
jne 0x419a22
cmp dword [0x42aea4], 1
je 0x419af0
cmp ecx, 0xfc
je 0x419b18
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 0x419a58
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00418b70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00415ff0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x419a8c
mov eax, edi
push eax
call fcn.00415ff0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x424390
push edi
call fcn.0041c2d0
add esp, 0x10
push edi
call fcn.00415ff0
push dword [esi + 0x42b3ac]
mov ebx, eax
call fcn.00415ff0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004152b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00418b70
push edi
push ebx
call fcn.00418b80
push 0x424370
push ebx
call fcn.00418b80
push dword [esi + 0x42b3ac]
push ebx
call fcn.00418b80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041ddae
add esp, 0x2c
jmp 0x419b18
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42b3ac]
push dword [esi]
call fcn.00415ff0
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.00415f02
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41d19c
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.004152b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d237
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 0x41d237
cmp eax, 1
je 0x41d258
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 0x41d237
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41d204
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41d233
xor eax, eax
inc eax
jmp 0x41d277
cmp edi, eax
jae 0x41d23b
xor eax, eax
jmp 0x41d277
cmp eax, esi
jae 0x41d242
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 0x41d25b
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 0x41d441
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 0x41d46f
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 0x41d476
cmp ebx, dword [eax + 4]
jae 0x41d476
xor eax, eax
jmp 0x41d666
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41d487
xor eax, eax
inc eax
jmp 0x41d665
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41d49d
cmp ecx, edx
jae 0x41d5e2
cmp dword [eax + 4], 0
je 0x41d4a6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41d48e
cmp dword [ebp + 8], 0
je 0x41d4c8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41d5e2
cmp eax, esi
jae 0x41d5e2
mov eax, dword [0x42d358]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41d4ed
cmp dword [esi*4 + 0x42d360], edi
je 0x41d5e6
inc esi
cmp esi, eax
jl 0x41d4db
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d662
cmp dword [ebp - 8], 0x1000000
jne 0x41d662
test byte [ebp - 0xc], 0xcc
je 0x41d56b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41d662
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d662
cmp word [eax + 0x18], 0x10b
jne 0x41d662
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41d662
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41d56b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41d56b
test byte [ecx + 0x27], 0x80
jne 0x41d5e2
push 1
push 0x42d3a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41d47f
mov ecx, dword [0x42d358]
test ecx, ecx
mov edx, ecx
jle 0x41d59f
lea eax, [ecx*4 + 0x42d35c]
cmp dword [eax], edi
je 0x41d59f
dec edx
sub eax, 4
test edx, edx
jg 0x41d593
test edx, edx
jne 0x41d5d0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41d5ac
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41d5c4
lea eax, [edx*4 + 0x42d360]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41d5b2
cmp ecx, 0x10
jge 0x41d5d0
inc ecx
mov dword [0x42d358], ecx
push 0
push 0x42d3a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41d47f
xor eax, eax
jmp 0x41d665
test esi, esi
jle 0x41d47f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42d3a0
call ebx
test eax, eax
jne 0x41d47f
cmp dword [esi*4 + 0x42d360], edi
je 0x41d63c
mov eax, dword [0x42d358]
lea esi, [eax - 1]
test esi, esi
jl 0x41d62a
cmp dword [esi*4 + 0x42d360], edi
je 0x41d626
dec esi
jns 0x41d61a
test esi, esi
jge 0x41d63a
cmp eax, 0x10
jge 0x41d635
inc eax
mov dword [0x42d358], eax
lea esi, [eax - 1]
jmp 0x41d63c
je 0x41d654
xor ecx, ecx
test esi, esi
jl 0x41d654
lea eax, [ecx*4 + 0x42d360]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41d642
push 0
push 0x42d3a0
call ebx
jmp 0x41d47f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ddae
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 0x41de2e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41de69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42d3bc], eax
je 0x41de69
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 0x41de2e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42d3cc], eax
je 0x41de2e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42d3c8], eax
mov eax, dword [0x42d3c8]
test eax, eax
je 0x41de73
call eax
test eax, eax
je 0x41de5a
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 0x41de5a
test byte [ebp - 8], 1
jne 0x41de73
cmp dword [0x42d184], 4
jb 0x41de6d
or byte [ebp + 0x12], 0x20
jmp 0x41de92
xor eax, eax
jmp 0x41dea2
or byte [ebp + 0x12], 4
jmp 0x41de92
mov eax, dword [0x42d3c0]
test eax, eax
je 0x41de92
call eax
mov ebx, eax
test ebx, ebx
je 0x41de92
mov eax, dword [0x42d3c4]
test eax, eax
je 0x41de92
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 0x41e00a
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 0x41e03b
xor eax, eax
jmp 0x41e1c4
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 0x41e077
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041f328
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41e152
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41e190
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 0x41e0db
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41e0cc
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 0x41e0ac
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 0x41e11b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41e124
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41e09d
jmp 0x41e126
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41e1bf
cmp dword [ebp - 0x6c], edi
je 0x41e190
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41e185
call fcn.004181c9
mov dword [eax], 9
call fcn.004181d2
mov dword [eax], esi
jmp 0x41e1ba
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 0x41e17a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41e126
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41e126
push dword [ebp - 0x6c]
call fcn.004181db
pop ecx
jmp 0x41e1ba
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41e1a8
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41e1a8
xor eax, eax
jmp 0x41e1c2
call fcn.004181c9
mov dword [eax], 0x1c
call fcn.004181d2
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41e1c2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00415f02
add ebp, 0x3a0
leave
ret
Function at 0x41ef36
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4256f8
call fcn.00418074
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x42d490], edi
jne 0x41ef7a
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41ef65
mov dword [0x42d490], ebx
jmp 0x41ef7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41ef7a
mov dword [0x42d490], 2
mov eax, dword [0x42d490]
cmp eax, ebx
jne 0x41ef9a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x41f05d
cmp eax, 2
je 0x41efa3
cmp eax, edi
jne 0x41efcb
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x41efb6
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 0x41efd2
xor eax, eax
jmp 0x41f05d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004152b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x41f005
cmp esi, edi
jne 0x41f01b
push dword [ebp - 0x20]
call fcn.00415fb7
pop ecx
mov esi, eax
cmp esi, edi
je 0x41efcb
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 0x41f04e
cmp dword [ebp + 0x14], edi
jne 0x41f038
push edi
push edi
jmp 0x41f03e
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 0x41f05a
push esi
call fcn.00415232
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004180af
ret