joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f86e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100312b8]
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.10013fc3
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.10013fc3
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 0x1001f8e5
cmp word [ecx], dx
je 0x1001f8e5
mov eax, dword [0x1002930c]
push edi
dec eax
push eax
push 0x100291f8
call fcn.1001fa5e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001f958
cmp word [eax], dx
je 0x1001f958
mov eax, dword [edi]
test eax, eax
je 0x1001f909
cmp word [eax], dx
je 0x1001f909
lea eax, [ebp - 0x10]
push eax
call fcn.1001fabf
jmp 0x1001f912
lea eax, [ebp - 0x10]
push eax
call fcn.1001fdad
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001f982
mov eax, dword [0x100291f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10028ee8
call fcn.1001fa5e
add esp, 0xc
test al, al
je 0x1001f982
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001f94d
cmp word [eax], di
je 0x1001f94d
lea eax, [ebp - 0x10]
push eax
call fcn.1001fabf
pop ecx
jmp 0x1001f984
lea eax, [ebp - 0x10]
push eax
call fcn.1001fdad
jmp 0x1001f94a
mov eax, dword [edi]
test eax, eax
je 0x1001f96f
cmp word [eax], dx
je 0x1001f96f
lea eax, [ebp - 0x10]
push eax
call fcn.1001fee1
pop ecx
jmp 0x1001f982
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 0x1001fa4d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001ffd3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001fa4d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001fa4d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001fa4d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001f9da
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001624b
test ebx, ebx
je 0x1001fa48
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001624b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001fa4d
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 0x1001fa4d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10023ed2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001fa4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10006b9e
leave
ret
Function at 0x100200d9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10013fc3
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 0x10020148
cmp esi, dword [ebp - 4]
je 0x10020143
cmp dword [ebp + 0xc], 0
je 0x10020143
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10020120
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100201a2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002014a
xor eax, eax
inc eax
jmp 0x1002014a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10024754
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.100248eb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100248c3
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100248c3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10024878
jg 0x100247b0
test eax, eax
je 0x1002486e
push 1
push 0x1000
call fcn.10016784
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100247d3
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10024865
push 0x8000
push ebx
call fcn.1002464e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100247fc
jg 0x100247f7
cmp ecx, 0x1000
jb 0x100247fc
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001a568
add esp, 0x10
cmp eax, 0xffffffff
je 0x10024841
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 0x100247f7
jl 0x10024828
test ecx, ecx
jne 0x100247e9
push dword [ebp - 0xc]
push ebx
call fcn.1002464e
push esi
call fcn.10013d37
add esp, 0xc
xor ebx, ebx
jmp 0x100248d1
cmp byte [edi + 0x24], 0
je 0x10024858
cmp dword [edi + 0x20], 5
jne 0x10024858
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10024863
mov ebx, dword [edi + 0x18]
jmp 0x10024865
xor ebx, ebx
push esi
call fcn.10013d37
pop ecx
jmp 0x100248d1
test ecx, ecx
jg 0x1002483a
jl 0x10024878
test eax, eax
jae 0x1002483a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100194b3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10024898
cmp byte [edi + 0x1c], 0
je 0x1002483a
jmp 0x100248c9
push ebx
call fcn.10020483
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002483a
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 0x100248d1
cmp byte [edi + 0x1c], 0
je 0x100248ce
mov ebx, dword [edi + 0x18]
jmp 0x100248d1
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100194b3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f98e
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp ebx, esi
jne 0x45f467
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
push edi
xor edi, edi
test esi, esi
jne 0x45f47c
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x45f490
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x45f56b
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp - 4], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
push 1
push edi
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 8]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x45f547
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x45f54c
push 4
jmp 0x45f549
push 3
pop ebx
jmp 0x45f54f
mov ebx, dword [ebp - 0x10]
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push 0
push edi
push dword [ebp - 4]
call esi
push 0
push dword [ebp - 8]
push edi
call esi
jmp 0x45f56e
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x41f9ab
Function at 0x435aa9
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x435a41
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x435a5f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x435abd
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x435aa4
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x435aad
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x435ab7
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x435a99
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x435a23
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x435b0a
dec eax
je 0x435b01
sub eax, 3
je 0x435af8
mov dword [ebp - 4], 0x40
jmp 0x435b27
mov dword [ebp - 4], 4
jmp 0x435b0d
mov dword [ebp - 4], 0x20
jmp 0x435b0d
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x435b59
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x435ad9
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0043536a
mov fs, ebp
cmp al, 0xd8
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x435b65
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43927b
Capabilities:
Read file on windows

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

Function at 0x43d1d0
Capabilities:
Set environment variable

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

Function at 0x4606de
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], ebx
mov edi, edx
mov dword [ebp - 0xc], ebx
call fcn.0040a961
lea ecx, [ebp - 0x20]
call fcn.0040a961
lea ecx, [ebp - 0x40]
call fcn.0040a961
push 0x4c5950
lea ecx, [ebp - 0x30]
call fcn.00406b57
push esi
lea ecx, [ebp - 0x30]
call fcn.004033c6
push str.CLSID
lea ecx, [ebp - 0x30]
call fcn.004033c6
lea ecx, [ebp - 0x20]
call fcn.0040a6c3
test edi, edi
je 0x460761
push 0x5c
pop eax
cmp word [edi], ax
je 0x460761
cmp word [edi + 2], ax
je 0x460761
push 0x4c5984
lea ecx, [ebp - 0x20]
call fcn.00406b57
push edi
lea ecx, [ebp - 0x20]
call fcn.004033c6
cmp dword [ebp + 0xc], ebx
je 0x4607b2
push 0x20
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.00422340
add esp, 0xc
mov dword [ebp - 0x5c], ebx
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a8c7
push str.IPC_
lea ecx, [ebp - 0x40]
call fcn.004033c6
mov eax, dword [ebp - 0x40]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov esi, eax
test esi, esi
js 0x46083e
lea eax, [ebp - 0x10]
push eax
push reloc.WSOCK32.dll_bind
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
jne 0x46083e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x460839
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1fe
push eax
lea eax, [ebp - 0x26c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x460834
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 8]
shr eax, 1
mov dword [ebp - 8], eax
mov word [ebp + eax*2 - 0x26c], cx
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov esi, eax
push dword [ebp - 0xc]
call edi
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x40]
call fcn.0040988f
lea ecx, [ebp - 0x20]
call fcn.0040988f
lea ecx, [ebp - 0x30]
call fcn.0040988f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x461014
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
push esi
push 0
push dword [eax]
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
jne 0x46106c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46106a
push dword [esi]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x46106a
push esi
push dword [esi]
push eax
push 3
push ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x414ddc
Capabilities:
Encode data using xor

Disassembly:
xor dword [ecx], edx
add ecx, 4
push 0x3337ef08
mov edi, dword [esp]
add esp, 4
mov eax, edi
and edi, eax
cmp ecx, esi
jne fcn.00414ddc
ret
Function at 0x404250
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x40ddf0
push 0x69
push esi
call edi
push 0x64
push 0x40dd88
push 0x67
push esi
call edi
push str.Riched32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push esi
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x4c], 0x4066e0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 3
call edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x4000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x6c
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 0x69
mov dword [ebp - 0x2c], str.Langoback
call edi
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Lobster
push str.Langoback
push 0
mov dword [0x40a6a0], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x40438d
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
je 0x404382
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
jne 0x404362
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4064f6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040391c
xor ebx, ebx
cmp dword [0x40e498], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4065cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x406536
xor eax, eax
jmp 0x40668f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
add byte [edi - 1], dl
salc
cmp eax, ebx
je 0x40652f
push eax
call fcn.00401c19
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e498], eax
call esi
push eax
call fcn.00401c19
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e49c], eax
call esi
push eax
call fcn.00401c19
mov dword [0x40e4a0], eax
lea eax, [ebp - 8]
push eax
call fcn.00401380
test eax, eax
pop ecx
pop ecx
je 0x406599
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407d2d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4065cb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00401c19
cmp eax, ebx
pop ecx
mov dword [0x40e4a8], eax
je 0x4065cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401c19
pop ecx
mov dword [0x40e4a4], eax
mov eax, dword [0x40e4a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x406644
cmp dword [0x40e4a8], esi
je 0x406644
push eax
call fcn.00406afc
pop ecx
call eax
cmp eax, ebx
je 0x406611
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e4a8]
call fcn.00406afc
pop ecx
call eax
test eax, eax
je 0x406611
test byte [ebp - 0x18], 1
jne 0x406644
lea eax, [ebp - 0xc]
push eax
call fcn.0040312e
test eax, eax
pop ecx
je 0x40662c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407d2d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40663b
or dword [ebp + 0x10], 0x200000
jmp 0x406675
or dword [ebp + 0x10], 0x40000
jmp 0x406675
mov eax, dword [0x40e49c]
cmp eax, esi
je 0x406675
push eax
call fcn.00406afc
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406675
mov eax, dword [0x40e4a0]
cmp eax, esi
je 0x406675
push dword [ebp - 4]
push eax
call fcn.00406afc
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e498]
call fcn.00406afc
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408693
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b218]
jne 0x40869d
repz ret
jmp fcn.00406bbd
Function at 0x10001c50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x104
push 0x1004ade8
push str._temp_JPGLib.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp + 8]
push 0x10045444
push 0x1004ade8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
add esp, 4
pop ebp
ret

Function at 0x10002070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100020d4
call fcn.1003c900
cmp dword [0x1004ad7c], 0
jne 0x100020cb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x1004ad7c], eax
xor ecx, ecx
mov edx, 0x1004ad78
xchg dword [edx], ecx
test eax, eax
je 0x100020d4
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0x10001e50
push 0
push 0
mov dword [0x1004ad3c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
mov ecx, 0x1004ad78
xchg dword [ecx], eax
mov eax, 1
pop ebp
ret 0xc
Function at 0x100030e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004068b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x1004a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x214], edi
push 0xff
lea eax, [ebp - 0x110]
mov dword [ebp - 0x214], edi
push eax
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0xff
lea eax, [ebp - 0x210]
push eax
push 0x10045510
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 0x214]
lea eax, [ebp - 0x258]
push str._.10X
push eax
call fcn.10002b00
add esp, 0xc
mov eax, 1
mov dword [ebp - 4], 0
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x240]
mov dword [ebx], eax
lea eax, [ebp - 0x22c]
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
push dword [ebp - 0x234]
push dword [ebp - 0x240]
push dword [ebp - 0x238]
push str._.8X_.8X_.8X
push eax
call fcn.10002b00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x258]
cmp dword [ebp - 0x244], 0xf
lea eax, [ebp - 0x22c]
cmova ecx, dword [ebp - 0x258]
cmp dword [ebp - 0x218], 0xf
push ecx
cmova eax, dword [ebp - 0x22c]
push eax
push 0x1004551c
push edi
call fcn.10002b00
mov ecx, dword [ebp - 0x218]
add esp, 0x24
cmp ecx, 0xf
jbe 0x1000321e
mov edx, dword [ebp - 0x22c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003214
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10003265
push ecx
push edx
call fcn.1003f24b
add esp, 8
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
cmp ecx, 0xf
jbe 0x10003275
mov edx, dword [ebp - 0x258]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000326b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000326b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1003f24b
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003f23d
mov esp, ebp
pop ebp
ret