joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50ffaa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x50ffd8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x50fff6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0050ff10
jmp 0x50fff6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x50fff6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0050ff10
test edi, edi
mov eax, edi
jne 0x50ffe0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x42c0e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x42c102
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42c109
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42c0f8
mov eax, 1
add ebx, ebx
jne 0x42c11b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42c110
jne 0x42c12c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c110
xor ecx, ecx
sub eax, 3
jb 0x42c140
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42c1b2
mov ebp, eax
add ebx, ebx
jne 0x42c14b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42c158
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42c17c
inc ecx
add ebx, ebx
jne 0x42c168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42c15d
jne 0x42c179
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42c15d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42c19c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42c18d
jmp 0x42c0fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42c19c
add edi, ecx
jmp 0x42c0fe
pop esi
mov edi, esi
mov ecx, 0xa95
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42c1ba
cmp byte [edi], 0xa
jne 0x42c1ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42c1bf
lea edi, [esi + 0x2a000]
mov eax, dword [edi]
or eax, eax
je 0x42c22e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c0c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42c1ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c0cc]
or eax, eax
je 0x42c228
mov dword [ebx], eax
add ebx, 4
jmp 0x42c209
call dword [esi + 0x2c0d4]
mov ebp, dword [esi + 0x2c0d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42c262
sub esp, 0xffffff80
jmp 0x40e266
Function at 0x1000f86c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008c670]
jne 0x1000f876
repz ret
jmp fcn.1000fb1d

Function at 0x10011250
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [0x1008c648], 0x252d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x1008c64c]
add eax, 0x253
mov dword [0x1008c648], eax
mov dword [ebp - 8], 0
jmp 0x10011308
mov dword [0x1008c64c], 0x198f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dx, word [eax + ecx*2 - 0x16]
mov word [ebp - 0x12], dx
mov ax, word [ebp - 0x12]
movzx ecx, ax
cmp ecx, 0x61
je 0x1001135d
jmp 0x100113df
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov dx, word [eax + ecx*2]
mov word [ebp - 0x14], dx
mov ax, word [ebp - 0x14]
movzx ecx, ax
cmp ecx, 0
je 0x1001131e
jmp 0x10011320
mov dword [0x1008c64c], 0x1ac
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10011337
jmp 0x100113e3
cmp dword [ebp - 8], 0x104
setl al
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x15]
test al, 1
jne 0x100112c8
jmp 0x100112e7
jmp 0x100112e7
mov dword [0x1008c648], 0xbea
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x10011308
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
sete dl
mov byte [ebp - 0x16], dl
mov al, byte [ebp - 0x16]
test al, 1
jne 0x10011297
jmp 0x100113e1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
jne 0x100113dd
mov eax, dword [0x1008c648]
sub eax, 0x1325
mov dword [0x1008c648], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx + eax*2 - 0x12]
cmp eax, 0x64
jne 0x100113db
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2 - 0x10]
cmp eax, 0x6c
jne 0x100113d9
mov dword [0x1008c648], 0x23b8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
movzx eax, word [eax + ecx*2 - 0xe]
cmp eax, 0x6c
jne 0x100113d7
mov dword [0x1008c64c], 0xc8
mov dword [ebp - 4], 1
jmp 0x100113ea
jmp 0x100113d9
jmp 0x100113db
jmp 0x100113dd
jmp 0x100113df
jmp 0x100113e1
jmp 0x100113e3
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x1c
pop ebp
ret
Function at 0x100115f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.100115f0]
mov dword [ebp - 8], eax
jmp 0x10011633
mov dword [ebp - 4], 0
jmp 0x1001165c
mov eax, dword [ebp - 8]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 8], eax
mov eax, dword [0x1008c648]
sub eax, 0x362
mov dword [0x1008c648], eax
jmp 0x10011654
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x1001165c
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
jne 0x1001160a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 8]
cmp dword [ecx + eax], 0x4550
je 0x1001162b
jmp 0x1001160a
mov al, 1
test al, 1
jne 0x10011633
jmp 0x10011601
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x1e4574d7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, str.5z
nop
mov ebx, 0x42e1d0
mov ecx, 0x353d36ca
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4017e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x401838
cmp byte [ebx + esi - 1], 0xa
je 0x40180c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x406084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x401e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x402014
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x406084]
cmp dword [edx + 0x24], edi
je 0x401f37
test byte [0x403018], 8
jne 0x401fc0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x403028], 8
jne 0x401f83
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x401ed9
cmp esi, 3
jbe 0x401f42
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x401eea
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x405164]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x401ed9
mov dword [esp], 0x403028
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401eb0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x401eb0
mov dword [esp], 0x403018
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401e9b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x401ea3
mov eax, 0xffffffff
jmp 0x401f37

Function at 0x402080
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x401bbf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 0x54]
push edi
xor esi, esi
push 0x44
push esi
push eax
call fcn.004023c0
add esp, 0xc
lea eax, [ebp - 0x10]
mov edi, 1
push 0x10
push esi
push eax
call fcn.004023c0
mov word [ebp - 0x24], di
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x54]
push eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x54], 0x44
push ecx
push dword [ebp + 0x10]
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, edi
je 0x401c22
xor eax, eax
jmp 0x401c4f
cmp dword [ebp - 0x10], 0
jne 0x401c2c
xor eax, eax
jmp 0x401c4f
push 0x1f4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x401c2c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402980
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406020
push 0x404524
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x4070ac], eax
xor eax, eax
mov al, byte [0x4070ad]
mov dword [0x4070b8], eax
mov eax, dword [0x4070ac]
shr dword [0x4070ac], 0x10
and eax, 0xff
mov dword [0x4070b4], eax
shl eax, 8
add eax, dword [0x4070b8]
mov dword [0x4070b0], eax
call fcn.004044e0
test eax, eax
jne 0x4029f4
push 0x1c
call fcn.00402b20
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404300
call fcn.004042f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4080f0], eax
call fcn.00403ea0
mov dword [0x407070], eax
test eax, eax
je 0x402a27
cmp dword [0x4080f0], 0
jne 0x402a31
push 0xffffffffffffffff
call fcn.00403830
add esp, 4
call fcn.00403c20
call fcn.00403b30
call fcn.00403800
mov esi, dword [0x4080f0]
mov al, byte [esi]
cmp al, 0x22
je 0x402a58
cmp al, 0x20
jbe 0x402a85
inc esi
cmp byte [esi], 0x20
ja 0x402a50
jmp 0x402a85
inc esi
cmp byte [esi], 0x22
je 0x402a84
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x402a7f
xor eax, eax
mov al, bl
push eax
call fcn.00403ad0
add esp, 4
test eax, eax
je 0x402a79
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x402a61
cmp byte [esi], 0x22
jne 0x402a85
inc esi
cmp byte [esi], 0
je 0x402a95
cmp byte [esi], 0x20
ja 0x402a95
inc esi
cmp byte [esi], 0
jne 0x402a8a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x402ab9
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403830
jmp 0x402afa
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403870
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4070e8], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40388e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4070e4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4070e0], bl
jne 0x4038e8
cmp dword [0x4080e8], 0
je 0x4038d6
mov edi, dword [0x4080e4]
sub edi, 4
cmp edi, dword [0x4080e8]
jb 0x4038d6
mov eax, dword [edi]
test eax, eax
je 0x4038cb
call eax
sub edi, 4
cmp edi, dword [0x4080e8]
jae 0x4038c3
push 0x40701c
push 0x407018
call fcn.00403920
add esp, 8
push 0x407024
push 0x407020
call fcn.00403920
add esp, 8
test ebx, ebx
jne 0x40390f
mov dword [0x4070e8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x403ea0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x407180], ebx
jne 0x403eef
call esi
cmp eax, ebx
mov edi, eax
je 0x403ecd
mov dword [0x407180], 1
jmp 0x403eef
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x403ee5
mov dword [0x407180], 2
jmp 0x403eef
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x407180], 1
jne 0x403f9e
test edi, edi
jne 0x403f12
call esi
mov edi, eax
test edi, edi
jne 0x403f12
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x403f2c
add esi, 2
cmp word [esi], 0
jne 0x403f1a
add esi, 2
cmp word [esi], 0
jne 0x403f1a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x403f8d
push ebp
call fcn.00402ba0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x403f8d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403f7c
push ebx
call fcn.00402b50
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x407180], 2
jne 0x404022
test ebx, ebx
jne 0x403fc1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x403fc1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x403fd6
inc ebp
cmp byte [ebp], 0
jne 0x403fc8
inc ebp
cmp byte [ebp], 0
jne 0x403fc8
sub ebp, ebx
inc ebp
push ebp
call fcn.00402ba0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x403ffb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x404640
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4073b0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x404667
add eax, 8
inc ecx
cmp eax, 0x407440
jb 0x404658
cmp dword [ecx*8 + 0x4073b0], edx
lea ebx, [ecx*8]
jne 0x40482b
cmp dword [0x40707c], 1
je 0x4047e7
cmp dword [0x40707c], 0
jne 0x40469e
cmp dword [0x407080], 1
je 0x4047e7
cmp edx, 0xfc
je 0x40482b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4046db
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40471f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x40637c
push ebp
call fcn.004053b0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40635c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x4073b4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00405310
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x407fe0], 0
je 0x4047fd
mov eax, dword [0x407fe0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404807
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x4073b4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x10006100
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x1005400c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 8], 0
call fcn.10006220
cmp dword [0x100560b0], 0x4000
je 0x100061d9
call fcn.10006220
cmp dword [0x100560b0], 0x8000
je 0x100061d9
call fcn.10006220
cmp dword [0x100560b0], 0x400
jl 0x1000617e
lea eax, [esp + 8]
push eax
push 0x10006030
push 0
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [esp + 8]
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000faec
mov esp, ebp
pop ebp
ret
push 0
push str.Shell_TrayWnd
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x1000616a
lea eax, [esp + 0xc]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
push 5
push 5
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ChildWindowFromPointEx]
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000faec
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.Shell_TrayWnd
push 0
push 0
call esi
test eax, eax
jne 0x10006200
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1000faec
mov esp, ebp
pop ebp
ret
push 0
push str.Start
push 0
push eax
call esi
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.1000faec
mov esp, ebp
pop ebp
ret
Function at 0x100065e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006639
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006639
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000662a
cmp esi, edx
jae 0x10006639
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10006618
cmp esi, edx
jae 0x10006639
cmp word [esi], 0
je 0x10006639
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10006ab0
Capabilities:
Find taskbar
Set global application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0xc
mov ecx, dword [0x10055558]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100560cc]
cmp eax, dword [ecx + 4]
jle 0x10006aff
push 0x100560cc
call fcn.1000fcba
add esp, 4
cmp dword [0x100560cc], 0xffffffff
jne 0x10006aff
push 0x1003f880
call fcn.100100df
push 0x100560cc
call fcn.1000fc70
add esp, 8
push 0
push str.XLauncherWnd_lds
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x10006be1
cmp dword [section..menu_sh], eax
jne 0x10006be1
push esi
push eax
push str.Shell_TrayWnd
push eax
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
mov esi, eax
test esi, esi
je 0x10006b8f
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x10006b8f
push eax
push dword [0x10056088]
push 0x100076b0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [section..menu_sh], eax
lea eax, [ebp - 8]
push eax
push 0x4e20
push 0
push 0
push 0
push 5
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10006b96
call esi
cmp eax, 0x5b4
jne 0x10006b96
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push str.KNHookComplete_lds
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x10006bd9
call esi
cmp eax, 0xb7
je 0x10006bd9
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xc]
push ecx
push 0x3e8
push 0
push 0
push 0
push 0xbd0
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
xor eax, eax
mov esp, ebp
pop ebp
ret