joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push 0xa
push 0x60e
push 0
call sub.kernel32.dll_FindResourceA
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x40245b
mov esi, eax
mov al, byte [esi]
lea edi, [0x40a29b]
mov byte [edi], al
inc esi
inc edi
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
mov dword [edi], esi
mov dword [ebp - 4], 0
jmp 0x40242a
push esi
call sub.kernel32.dll_lstrlenA
add esi, eax
inc esi
add edi, 4
mov dword [edi], esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jb 0x402419
mov esi, dword [0x40a2a1]
jmp 0x40244a
cmp byte [esi], 0x2c
jne 0x402449
mov byte [esi], 0
inc esi
mov dword [0x40a2b1], esi
jmp 0x40245b
inc esi
cmp byte [esi], 0
jne 0x402438
push dword [0x40a2a1]
pop dword [0x40a2b1]
pop edi
pop esi
leave
ret

Function at 0x40255f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov dword [ebp - 4], 0
mov dword [0x40abc8], 0x7d0
push 0xa
push dword [0x40abc8]
push 0
call sub.kernel32.dll_FindResourceA
inc dword [0x40abc8]
mov dword [0x40abd8], eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4025a2
jmp 0x402661
mov dword [0x40abcc], eax
push dword [0x40abd8]
push 0
call sub.kernel32.dll_SizeofResource
push eax
push eax
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x40957e], eax
inc eax
mov dword [0x40abf5], eax
pop eax
push eax
push dword [0x40abcc]
push dword [0x40957e]
call fcn.0040329c
mov eax, dword [0x40957e]
mov bl, byte [eax]
cmp dword [ebp - 4], 0
je 0x4025f6
test bl, 0x80
jne 0x402651
mov dword [ebp - 4], 0
jmp 0x402651
test bl, 1
je 0x402602
call fcn.004026e6
jmp 0x40262a
test bl, 2
je 0x40260e
call fcn.00402a3d
jmp 0x40262a
test bl, 4
je 0x40261a
call fcn.00402d85
jmp 0x40262a
test bl, 8
je 0x402626
call fcn.00402ffa
jmp 0x40262a
xor ebx, ebx
jmp 0x402696
cmp eax, 1
jne 0x402633
jmp 0x402696
cmp eax, 2
jne 0x40263c
jmp 0x402675
cmp eax, 3
jne 0x402645
jmp 0x40266a
test bl, 0x80
je 0x402651
mov dword [ebp - 4], 1
push dword [0x40957e]
call sub.kernel32.dll_GlobalFree
jmp 0x402577
mov byte [0x40a2b9], 1
jmp 0x4026b2
push dword [0x40ab5e]
call sub.kernel32.dll_GlobalFree
push dword [0x40ab5e]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x40957a]
call sub.kernel32.dll_CloseHandle
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
push dword [0x40957e]
call sub.kernel32.dll_GlobalFree
test bl, 0x80
je 0x4026ab
jmp 0x402577
mov byte [0x40a2b9], 2
mov byte [0x40967e], 0
push 0x309
push dword [0x409474]
call sub.user32.dll_KillTimer
push 0x403512
push 0x14d
push 0x3e7
push dword [0x409474]
call sub.user32.dll_SetTimer
pop ebx
leave
ret
Function at 0x402d85
Capabilities:
Create process on windows
Delete file
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov byte [0x40a2ba], 0
push dword [0x40abf5]
call sub.kernel32.dll_lstrlenA
push eax
shl eax, 4
push eax
push eax
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x40abed], eax
pop eax
push eax
push 0
call sub.kernel32.dll_GlobalAlloc
mov dword [0x40abf1], eax
push dword [0x40abf5]
push dword [0x40abed]
call sub.kernel32.dll_lstrcpyA
push dword [0x40abf5]
push dword [0x40abf1]
call sub.kernel32.dll_lstrcpyA
pop esi
inc esi
add esi, dword [0x40abf5]
mov bl, byte [esi]
or bl, bl
je 0x402e05
call fcn.00403ec1
or eax, eax
jne 0x402e05
jmp 0x402fd3
inc esi
jmp 0x402e7c
mov edi, esi
add esi, 6
movzx edx, byte [esi]
mov dword [0x40abbe], edx
inc esi
mov dword [0x40abba], esi
push esi
call sub.kernel32.dll_lstrlenA
add esi, eax
inc esi
mov dword [0x40abb6], esi
pushal
push 0
push 0x403dfe
push dword [0x409474]
push 0x76c
push dword [0x409470]
call sub.user32.dll_DialogBoxParamA
popal
push 0x40a8ba
push edi
push dword [0x40abf1]
push dword [0x40abed]
call fcn.004040f0
push dword [0x40abf1]
push dword [0x40abed]
call sub.kernel32.dll_lstrcpyA
push esi
call sub.kernel32.dll_lstrlenA
add esi, eax
inc esi
cmp byte [esi], 0
jne 0x402e08
push dword [0x40abed]
call sub.kernel32.dll_GlobalFree
push 0x40a2ba
call fcn.004041a0
push str.___uppp_reg___
push 0x40a2ba
call sub.kernel32.dll_lstrcatA
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x40a2ba
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x402ed2
mov byte [0x40a2ba], 0
jmp 0x402fd3
mov dword [0x40ab5a], eax
push dword [0x40abf1]
call sub.kernel32.dll_lstrlenA
push 0
push 0x409586
push eax
push dword [0x40abf1]
push dword [0x40ab5a]
call sub.kernel32.dll_WriteFile
push dword [0x40ab5a]
call sub.kernel32.dll_FlushFileBuffers
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
push dword [0x40abf1]
call sub.kernel32.dll_GlobalFree
push 0x200
push 0x40a4ba
push str._WINDIR__regedit.exe
call sub.kernel32.dll_ExpandEnvironmentStringsA
push 0x40a4ba
push 0x40a6ba
call sub.kernel32.dll_lstrcpyA
push str.__s__
push 0x40a6ba
call sub.kernel32.dll_lstrcatA
push 0x40a2ba
push 0x40a6ba
call sub.kernel32.dll_lstrcatA
push 0x4090f7
push 0x40a6ba
call sub.kernel32.dll_lstrcatA
mov dword [0x40ab62], 0x44
push 0x40aba6
push 0x40ab62
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x40a6ba
push 0x40a4ba
call sub.kernel32.dll_CreateProcessA
push eax
push 0xffffffffffffffff
push dword [0x40aba6]
call sub.kernel32.dll_WaitForSingleObject
push 0x3e8
call sub.kernel32.dll_Sleep
push 0x409586
push dword [0x40aba6]
call sub.kernel32.dll_GetExitCodeProcess
pop eax
or eax, eax
je 0x402fd3
cmp dword [0x409586], 0
jne 0x402fd3
jmp 0x402fd6
inc dword [ebp - 4]
or bl, bl
je 0x402fdf
call fcn.00403eec
cmp byte [0x40a2ba], 0
je 0x402ff2
push 0x40a2ba
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4032d9
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get file size
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
test dword [0x40abd4], 2
je 0x4034af
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push str.___uppp_bin___
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x403503
mov dword [0x40ab5a], eax
push 0xa
push 0x640
push dword [0x409470]
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x40348f
push eax
push eax
push dword [0x409470]
call sub.kernel32.dll_SizeofResource
mov dword [0x409586], eax
push dword [0x409470]
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x40348f
push 0
push 0x40abe0
push dword [0x409586]
push eax
push dword [0x40ab5a]
call sub.kernel32.dll_WriteFile
or eax, eax
je 0x40348f
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
mov dword [0x40ab5a], 0
push dword [ebp + 8]
call sub.shlwapi.dll_PathStripPathA
push str.___uppp_bin___
push 0x40a8ba
call sub.kernel32.dll_lstrcpyA
push 0x4091ce
push 0x40a8ba
call sub.kernel32.dll_lstrcatA
push dword [ebp + 8]
push 0x40a8ba
call sub.kernel32.dll_lstrcatA
mov dword [0x40ab62], 0x44
push 0x40aba6
push 0x40ab62
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x40a8ba
push str.___uppp_bin___
call sub.kernel32.dll_CreateProcessA
or eax, eax
je 0x40348f
push 0xffffffffffffffff
push dword [0x40aba6]
call sub.kernel32.dll_WaitForSingleObject
push pe_nt_image_headers32
call sub.kernel32.dll_Sleep
push 0x409586
push dword [0x40aba6]
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [0x409586], 0
jne 0x40348f
push 0
push 2
push 3
push 0
push 0
push 0x80000000
push str.___uppp_res___
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x40348f
mov dword [0x40ab5a], eax
push 0x409586
push dword [0x40ab5a]
call sub.kernel32.dll_GetFileSize
push 0
push 0x409586
push eax
push dword [ebp + 8]
push dword [0x40ab5a]
call sub.kernel32.dll_ReadFile
mov ebx, eax
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
mov dword [0x40ab5a], 0
push str.___uppp_res___
call sub.kernel32.dll_DeleteFileA
cmp dword [0x40ab5a], 0
je 0x4034a3
push dword [0x40ab5a]
call sub.kernel32.dll_CloseHandle
push str.___uppp_bin___
call sub.kernel32.dll_DeleteFileA
jmp 0x403503
push dword [ebp + 8]
call sub.shlwapi.dll_PathStripPathA
push dword [ebp + 8]
push 0x40a8ba
call sub.kernel32.dll_lstrcpyA
push 0x40a8ba
call sub.kernel32.dll_lstrlenA
add eax, 0x40a8ba
inc eax
push dword [ebp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x40a8ba
push str.Target_not_found___Lets_search_n_...
push 0
push dword [0x409474]
call fcn.00404260
cmp byte [eax], 0
je 0x403503
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcpyA
inc ebx
or ebx, ebx
jne 0x40350d
mov eax, dword [ebp + 8]
mov byte [eax], 0
pop ebx
leave
ret 4
Function at 0x404204
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x40422f
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x404390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x37], 0
jne 0x4043a3
cmp dword [esi + 0x2b], 0
je 0x4043b1
mov dword [esi + 8], 0x1002
xor esi, esi
jmp 0x40443a
mov dword [esi + 8], 0
push 0xa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindResourceA]
or eax, eax
jne 0x4043d5
mov dword [esi + 8], 0x3001
xor esi, esi
jmp 0x40443a
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_LoadResource]
pop ecx
or eax, eax
jne 0x4043f0
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x40443a
mov dword [esi + 0x13], eax
mov dword [esi + 0x1b], eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_SizeofResource]
or eax, eax
jne 0x40440f
mov dword [esi + 8], 0x3002
xor esi, esi
jmp 0x40443a
mov dword [esi + 0x17], eax
mov dword [esi + 0x2b], 2
push esi
call fcn.004046c0
or eax, eax
jne 0x40442e
mov dword [esi + 0x2b], 0
xor esi, esi
jmp 0x40443a
mov dword [esi + 0x37], 1
mov esi, 1
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x4062c2
Capabilities:
Create thread

Disassembly:
ret
call fcn.004063bb
pop eax
pop edx
pop dword [0x40ce94]
pop ecx
test edx, edx
push eax
je 0x4062c1
push ebx
push esi
push edi
push ebp
mov ebx, 0x40ae84
mov ebp, 0x40cea8
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x406148
jne 0x4062fd
test cl, 2
lea esi, [esi + 0x10]
jne 0x4062fd
lea esi, [esi - 0x1c]
test cl, 8
setne byte [ebp - 0x18]
and cl, 0x10
mov byte [ebp - 0x17], cl
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
cmp dword [ebp - 4], eax
jne 0x40631d
mov word [ebp - 4], 0x8000
push eax
push eax
push eax
push eax
push eax
push eax
push 0x40612c
push 0xffffffffffffffff
push ebx
call dword [sym.imp.winmm.dll_waveOutOpen]
call dword [sym.imp.kernel32.dll_HeapCreate]
test eax, eax
mov dword [ebx - 8], eax
je 0x40634f
mov dword [ebp - 0xc], esi
call dword [ebp]
call fcn.00406b98
xchg edi, eax
call dword [ebp + 0xc]
test edi, edi
je 0x4063bf
mov esi, 0x41ceb8
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x40ceb8
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutPrepareHeader]
xor edi, edi
call fcn.00406484
cmp dword [ebx + 4], edi
jne 0x406379
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutWrite]
test eax, eax
jne 0x4063bf
push ebp
push edi
push edi
push 0x40642e
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
mov dword [ebx - 4], eax
je 0x4063bf
push 0xf
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, 0x40ae80
mov eax, dword [ebp]
test eax, eax
je 0x4063dd
mov dword [ebp + 0xc], eax
push eax
push ebp
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ebx, ebx
mov dword [ebp], ebx
mov edi, dword [ebp + 4]
mov dword [ebp + 8], ebx
test edi, edi
je 0x40640b
mov dword [ebp + 4], ebx
push edi
push 0x20
push 0x41ceb8
push edi
push edi
call dword [sym.imp.winmm.dll_waveOutReset]
call dword [sym.imp.winmm.dll_waveOutUnprepareHeader]
call dword [sym.imp.winmm.dll_waveOutClose]
mov eax, dword [ebp - 4]
test eax, eax
je 0x406429
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.kernel32.dll_HeapDestroy]
xchg ebx, eax
mov ecx, 0x23
mov edi, 0x41ced8
rep stosd dword es:[edi], eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x40915c
nop
mov ecx, 0x35966e8f
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x318f7cfa
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401cb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x416010]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [0x40f268]
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov ebx, ecx
push eax
push str.ShockwaveFlash.ShockwaveFlash
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x401dcb
test ebx, ebx
jne 0x401d01
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402369
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
push str.D27CDB6B_AE6D_11cf_96B8_444553540000
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jne 0x401dcb
lea eax, [ebp - 0x28]
push eax
push 0x409
push 0
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_LHashValOfNameSys]
mov edi, eax
test edi, edi
jne 0x401dc0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x401dc0
push esi
call fcn.00402360
add esp, 4
mov dword [ebp - 0x38], eax
push eax
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401dc0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x414700
push dword [ebp - 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401dc0
cmp dword [ebp - 0x30], edi
je 0x401dc0
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx], 0xfeef04bd
jne 0x401dc0
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x414704
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402369
mov esp, ebp
pop ebp
ret
Function at 0x401de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x418278]
sub esp, 0xc
push esi
mov esi, ecx
test eax, eax
jne 0x401dfe
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0xc], 1
je 0x401df2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x414668
push 0x81
push eax
call edi
test eax, eax
je 0x401e79
push 0x414668
push 0x81
push dword [0x418278]
call edi
mov edi, eax
test edi, edi
je 0x401e79
push edi
push dword [0x418278]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x401e79
push edi
push dword [0x418278]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x401e79
lea eax, [edi + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x401e86
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x401ea0
lea eax, [ebx + 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
push dword [ebp - 4]
lea eax, [ebx + 8]
mov dword [ebx], 0x55665566
push eax
mov dword [ebx + 4], edi
call fcn.00403090
add esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edi, eax
test edi, edi
jne 0x401f37
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x401f13
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
push 0x40f278
push ecx
call dword [eax]
mov edi, eax
test edi, edi
jne 0x401f01
mov eax, dword [ebp - 4]
push dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0
jmp 0x401f27
push 0
push 0x41471c
push 0x414740
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 8], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop ebx
mov eax, edi
mov dword [esi + 0xc], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409818
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405d35
mov dword [ebp - 0x14], eax
cmp dword [0x418254], esi
jne 0x40990b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x409898
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4099eb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4099eb
push 0x413bdc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4099eb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x418254], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x418258], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41825c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418264], eax
test eax, eax
je 0x409908
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418260], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x409930
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409923
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x409945
push 4
pop eax
jmp 0x4099ed
cmp dword [ebp - 0x14], esi
je 0x409945
push dword [0x418254]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40992a
mov eax, dword [0x418260]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4099a3
cmp dword [0x418264], edi
je 0x4099a3
push eax
call ebx
push dword [0x418264]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4099a3
test eax, eax
je 0x4099a3
call ecx
test eax, eax
je 0x409998
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x409998
test byte [ebp - 8], 1
jne 0x4099a3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4099d3
mov eax, dword [0x418258]
cmp eax, edi
je 0x4099d0
push eax
call ebx
test eax, eax
je 0x4099d0
call eax
mov esi, eax
test esi, esi
je 0x4099d0
mov eax, dword [0x41825c]
cmp eax, edi
je 0x4099d0
push eax
call ebx
test eax, eax
je 0x4099d0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x418254]
call ebx
test eax, eax
je 0x4099eb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4099ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402369
mov esp, ebp
pop ebp
ret
Function at 0xfd95fc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xfd9606
pushal
call 0xfd960c
pop ebp
sub ebp, 0x10
sub ebp, 0xbd95fc
jmp 0xfd9622
mov eax, 0xb8ffeb11
cld
xchg ebp, eax
mov ebp, 0x81c50300
ror byte [eax + eax], 0
mov eax, 0xbd95fc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0xf2bf2716
xor byte [eax], dl
inc eax
dec ecx
jne 0xfd9639
jmp 0xfd964c
popfd
fistp dword [ebp + 0x16162a9f]
push ss
xchg edi, eax
xlatb
out dx, al
push ss
push ss
push ss
adc eax, 0x1613aedb
scasb al, byte es:[edi]
adc edx, dword [esi]
push ss
push ss
lodsb al, byte [esi]
push ss
push ss
push ss
loope 0xfd965c
adc eax, 0x1a979dde
push ss
push ss
push ss
adc eax, 0x729b46d3
xor ch, dl
lahf
adc dh, byte [edx]
jle 0xfd961e
mov ebx, 0x5e7e1636
dec byte [edx + 0x323a1716]
jle 0xfd9619
pop edx
pushfd
sar esi, 0x13
push ss
push ss
push ss
invalid
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x412a40], 1
mov dword [0x412a3c], 1
mov dword [0x412a38], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x41200c], eax
mov eax, dword [0x412a4c]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x412a60]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x412a48]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40c07c], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x4017a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov dword [esp + 4], str.__s_
mov dword [esp], eax
call sym._fprintf
lea eax, [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 8], ebx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.vfprintf
mov dword [esp], 2
mov eax, dword [dbg.__acrt_iob_func]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x40d051
call sym._fwrite
nop
mov ebx, dword [ebp - 4]
leave
ret