joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0370
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4a03bc
lea ecx, [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, byte [edx]
test eax, eax
je 0x4a03a6
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4a03a4
push 0
call fcn.004ac8d0
add esp, 4
jmp 0x4a03ba
mov byte [ebp - 2], 0
movzx edx, byte [ebp - 2]
test edx, edx
je 0x4a03ba
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x4a03da
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004a28a0
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4a5910
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x4a5954
lea ecx, [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
test eax, eax
je 0x4a594a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x4a5952
push 0
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
jmp 0x4a5977
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
push 0xed3
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0049e200
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4b09a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042df50
add esp, 8
mov edx, dword [ebp - 0x10]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x4b0a02
mov dword [ebp - 0x14], 0x4986
mov dword [ebp - 0x28], str.dry_hov_mlgxm_dxkobu
lea ecx, [ebp - 0x14]
push ecx
call fcn.004b08f0
add esp, 4
lea edx, [ebp - 0x28]
push edx
push 0x69b0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.004b1270
add esp, 0x10
xor eax, eax
jmp 0x4b0c0e
push 1
push 0xe61
push 0x484d
push 1
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004ae990
add esp, 0x1c
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4550
je 0x4b0a36
xor eax, eax
jmp 0x4b0c0e
push 0x64fe
push 1
push 0x4971
push 0x4967
lea edx, [ebp - 8]
push edx
push 0x7375
push 0x4faa
push 0x3d7f
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.004aebb0
add esp, 0x28
cmp dword [ebp - 0xc], 0
jne 0x4b0a75
xor eax, eax
jmp 0x4b0c0e
lea ecx, [ebp - 0xc]
push ecx
push 1
push 1
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x34]
push eax
push 0x5d26
push 0x481a
lea ecx, [ebp - 8]
push ecx
push 0x5f01
lea edx, [ebp - 0x10]
push edx
call fcn.004af2e0
add esp, 0x28
lea eax, [ebp - 8]
push eax
push 0x1902
push 0x1fe6
push 1
push 0x60b6
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 4]
push edx
push 1
push 0x7860
call fcn.004af430
add esp, 0x24
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x2d85
push 0x55b4
push 1
push 1
push 0x53cf
push 0x5e50
lea edx, [ebp - 8]
push edx
push 0x31cc
call fcn.004b0430
add esp, 0x28
cmp dword [ebp - 0x18], 0
je 0x4b0b2a
lea eax, [ebp - 0x18]
push eax
push 0x61f
push 0x1e41
push 1
lea ecx, [ebp - 4]
push ecx
push 1
push 0x2962
call fcn.004aed70
add esp, 0x1c
mov edx, dword [ebp - 4]
push edx
call fcn.004ad9a0
add esp, 4
test eax, eax
jne 0x4b0b41
xor eax, eax
jmp 0x4b0c0e
push 1
push 1
lea eax, [ebp - 4]
push eax
push 0x4ee1
call fcn.004b0550
add esp, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
cmp dword [edx + 0x28], 0
je 0x4b0bf3
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x28]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0x6d25
mov dword [ebp - 0x2c], str.njfhi_ogdk_jybneuc_kuzwc_lvtxyr_bgfik
lea eax, [ebp - 0x1c]
push eax
call fcn.004b08a0
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x4b0b97
xor eax, eax
jmp 0x4b0c0e
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.004b0920
add esp, 8
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4b0bc0
xor eax, eax
jmp 0x4b0c0e
push 0x539d
push 0xfac
push 0x4ad7
lea eax, [ebp - 4]
push eax
push 0x5088
push 0x59eb
push 0x3427
push 1
push 1
push 0x6a66
call fcn.004b0620
add esp, 0x28
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x4b0c04
mov edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
jmp 0x4b0c0b
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x4d1bef
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4db6c0]
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.004c4c7b
mov dword [ebp - 0x14], eax
cmp dword [0xa9c844], esi
jne 0x4d1ce2
push 0x800
push esi
push 0xa83a9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4d1c6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d1dc2
push esi
push esi
push 0xa83a9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4d1dc2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d1dc2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa9c844], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xa9c848], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa9c84c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa9c854], eax
test eax, eax
je 0x4d1cdf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa9c850], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d1d07
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d1cfa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4d1d1c
push 4
pop eax
jmp 0x4d1dc4
cmp dword [ebp - 0x14], esi
je 0x4d1d1c
push dword [0xa9c844]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d1d01
mov eax, dword [0xa9c850]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4d1d7a
cmp dword [0xa9c854], edi
je 0x4d1d7a
push eax
call ebx
push dword [0xa9c854]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d1d7a
test eax, eax
je 0x4d1d7a
call ecx
test eax, eax
je 0x4d1d6f
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 0x4d1d6f
test byte [ebp - 8], 1
jne 0x4d1d7a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4d1daa
mov eax, dword [0xa9c848]
cmp eax, edi
je 0x4d1da7
push eax
call ebx
test eax, eax
je 0x4d1da7
call eax
mov esi, eax
test esi, esi
je 0x4d1da7
mov eax, dword [0xa9c84c]
cmp eax, edi
je 0x4d1da7
push eax
call ebx
test eax, eax
je 0x4d1da7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa9c844]
call ebx
test eax, eax
je 0x4d1dc2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4d1dc4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bf7c6
mov esp, ebp
pop ebp
ret
Function at 0x10002a0a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1000a0e0]
je 0x10002a25
inc edi
cmp edi, 0x17
jb 0x10002a16
cmp edi, 0x17
jae 0x10002ba5
push ebp
push 3
call fcn.10005828
cmp eax, 1
pop ecx
je 0x10002b71
push 3
call fcn.10005828
test eax, eax
pop ecx
jne 0x10002a59
cmp dword [0x1000acf4], 1
je 0x10002b71
cmp ebx, 0xfc
je 0x10002ba4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1000ae68
push ebp
call fcn.10004f27
add esp, 0xc
test eax, eax
je 0x10002a8f
push esi
push esi
push esi
push esi
push esi
call fcn.10002d94
add esp, 0x14
push 0x104
mov esi, 0x1000ae81
push esi
push 0
mov byte [0x1000af85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10002ad3
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10004f27
add esp, 0xc
test eax, eax
je 0x10002ad3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10002d94
add esp, 0x14
push esi
call fcn.10004f90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10002b18
push esi
call fcn.10004f90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1000b17c
push 0x10008734
sub ecx, eax
push ecx
push eax
call fcn.10005775
add esp, 0x14
test eax, eax
je 0x10002b18
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10002d94
add esp, 0x14
jmp 0x10002b1a
xor esi, esi
push 0x10008730
push ebx
push ebp
call fcn.10005704
add esp, 0xc
test eax, eax
je 0x10002b3a
push esi
push esi
push esi
push esi
push esi
call fcn.10002d94
add esp, 0x14
push dword [edi*8 + 0x1000a0e4]
push ebx
push ebp
call fcn.10005704
add esp, 0xc
test eax, eax
je 0x10002b5c
push esi
push esi
push esi
push esi
push esi
call fcn.10002d94
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10005547
add esp, 0xc
jmp 0x10002ba4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10002ba4
cmp ebp, 0xffffffff
je 0x10002ba4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1000a0e4]
push dword [esi]
call fcn.10004f90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100053e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000aa70]
jne 0x100053ef
repz ret
jmp fcn.10006863
Function at 0x10005547
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100016e0
xor ebx, ebx
cmp dword [0x1000b348], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000561d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100056fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100056fd
push eax
call fcn.10001672
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000b348], eax
call esi
push eax
call fcn.10001672
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000b34c], eax
call esi
push eax
call fcn.10001672
mov dword [0x1000b350], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100013b3
test eax, eax
pop ecx
pop ecx
je 0x100055eb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002d94
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000561d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10001672
cmp eax, ebx
pop ecx
mov dword [0x1000b358], eax
je 0x1000561d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001672
pop ecx
mov dword [0x1000b354], eax
mov eax, dword [0x1000b354]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100056a2
cmp dword [0x1000b358], ecx
je 0x100056a2
push eax
call fcn.100016e9
push dword [0x1000b358]
mov esi, eax
call fcn.100016e9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100056a2
cmp edi, ebx
je 0x100056a2
call esi
cmp eax, ebx
je 0x1000566f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000566f
test byte [ebp - 0x18], 1
jne 0x100056a2
lea eax, [ebp - 0x10]
push eax
call fcn.100013ea
test eax, eax
pop ecx
je 0x1000568a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002d94
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10005699
or dword [ebp + 0x10], 0x200000
jmp 0x100056dd
or dword [ebp + 0x10], 0x40000
jmp 0x100056dd
mov eax, dword [0x1000b34c]
cmp eax, dword [ebp - 8]
je 0x100056dd
push eax
call fcn.100016e9
cmp eax, ebx
pop ecx
je 0x100056dd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100056dd
mov eax, dword [0x1000b350]
cmp eax, dword [ebp - 8]
je 0x100056dd
push eax
call fcn.100016e9
cmp eax, ebx
pop ecx
je 0x100056dd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000b348]
call fcn.100016e9
cmp eax, ebx
pop ecx
je 0x100056fd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100056ff
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100010d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [0x1001d040]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [ebp + 0xc], 1
jne 0x100011b1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movaps xmm0, xmmword [str.7sERVZdXQC]
mov edx, eax
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x126c1743
xor ecx, ecx
mov dword [esp + 0x24], 0x6a6f0f07
mov byte [esp + 0x28], 0
nop dword [eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0x17
jb 0x10001120
push edx
lea eax, [esp + 0x15]
mov byte [esp + 0x2c], 0
push eax
lea eax, [esp + 0x40]
push 0x32
push eax
call fcn.100014b0
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x48]
movaps xmmword [esp + 0x20], xmm0
add esp, 0x10
mov dword [esp + 0x24], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001167
sub ecx, edx
lea eax, [esp + 0x38]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.10001380
mov ecx, dword [esp + 0x24]
cmp ecx, 0xf
jbe 0x100011b1
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100011a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100011c4
push ecx
push edx
call fcn.10003065
add esp, 8
mov ecx, dword [esp + 0x6c]
mov al, 1
xor ecx, esp
call fcn.10003004
mov esp, ebp
pop ebp
ret 0xc
call fcn.100081c6
int3

Function at 0x10008867
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100088a6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100088a6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100088a6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100088a6
cmp dword [ecx + 0x74], 0xe
jbe 0x100088a6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000b32b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017990
push 0x10017988
push str.FlsAlloc
push 0x1f
call fcn.1000b247
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b35f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015114]
call esi
jmp 0x1000b365
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b3a9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100179a0
push 0x10017998
push str.FlsGetValue
push 0x21
call fcn.1000b247
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b3e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000b3e8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100179a8
push 0x100179a0
push str.FlsSetValue
push 0x22
call fcn.1000b247
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b422
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10015114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d201
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000d29e
push ebx
push esi
call fcn.1000d1ca
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000d15e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d24b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d29d
push edi
push eax
call fcn.100095dc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d26b
call fcn.100095a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d29c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d15e
add esp, 0x20
test eax, eax
jne 0x1000d28a
push edi
call fcn.100095a2
jmp 0x1000d292
push ebx
call fcn.100095a2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10014230
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001425d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001425d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401800
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x30
mov eax, dword [esp + 0x3c]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 8], eax
mov eax, dword [0x413034]
push 0x12f
push eax
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x14], 0x401270
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0x1e
mov dword [esp + 0x20], eax
call esi
mov ecx, dword [esp + 0x3c]
push ecx
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [0x413034]
push 0x12f
push eax
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], edx
call esi
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov edx, dword [0x413034]
push 0
push 0
push 0
push 0x12e
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
mov dword [0x413044], eax
pop esi
je 0x4018c1
mov ecx, dword [0x413038]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x413044]
xor edx, edx
test eax, eax
setne dl
mov eax, edx
add esp, 0x30
ret 0xc
Function at 0x401be0
Capabilities:
Create thread

Disassembly:
sub esp, 0x34
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov esi, ecx
mov ecx, dword [0x413044]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x11
call edi
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x2c]
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10
call edi
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x2c]
add eax, ecx
cdq
sub eax, edx
mov edx, dword [0x413044]
sar eax, 1
push eax
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push fcn.00401940
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
jne 0x401c7b
mov ecx, dword [0x413044]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
xor al, al
mov dword [0x413044], 0
pop ebp
add esp, 0x34
ret
mov edx, dword [0x413044]
push 0
push 0
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401ce6
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [esp + 0x28]
push ecx
call edi
lea edx, [esp + 0x28]
push edx
call ebx
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
cmp dword [esp + 0x10], 0x103
jne 0x401ce5
mov edx, dword [0x413044]
push 0
push 0
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x401ca8
pop ebx
pop edi
pop esi
mov al, 1
mov dword [0x413044], 0
pop ebp
add esp, 0x34
ret

Function at 0x401fc0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push esi
mov esi, ecx
xor ecx, ecx
lea eax, [esi + 0x10]
push eax
mov dword [esi], 0x40d3e0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov dword [eax], ecx
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi + 0xc], eax
mov eax, esi
pop esi
ret

Function at 0x402670
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x224]
cmp eax, 0xffffffff
jne 0x402695
xor eax, eax
pop esi
add esp, 8
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push 2
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4026c6
mov eax, dword [esi + 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esi + 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 8]
xor eax, eax
cmp ecx, 2
sete al
pop esi
add esp, 8
ret
Function at 0x403240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40c488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 8], ecx
lea ecx, [esp + 4]
mov dword [esi], 0x40da84
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0
call fcn.004038a0
mov edx, dword [esi + 4]
push 0xf003f
push edx
push 0x80000002
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0
call fcn.00403dc0
mov eax, dword [esi + 8]
push 0x1000
push 0x40d518
push eax
lea ecx, [esp + 0x10]
call fcn.00403a60
lea ecx, [esp + 4]
mov dword [esi + 0xc], eax
call fcn.004038c0
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.00403d80
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8

Function at 0x4038f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x413024]
push ebx
mov ebx, dword [esp + 0x21c]
test ebx, ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov dword [esp + 0x21c], eax
mov esi, ecx
jne 0x40391c
mov ebx, dword [esi + 4]
test ebp, ebp
je 0x403955
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [esi + 0x10], eax
je 0x40395f
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x210]
call fcn.0040bc27
add esp, 0x214
ret 8
mov ecx, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x104
call edi
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4039a5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, esi
call fcn.004038f0
test al, al
jne 0x403966
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
pop edi
jne 0x4039c5
test eax, eax
je 0x4039cf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 8], 0
jmp 0x4039cc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x10], eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ecx, ecx
test eax, eax
mov dword [esi + 0x10], eax
sete cl
pop esi
mov al, cl
mov ecx, dword [esp + 0x218]
pop ebp
pop ebx
call fcn.0040bc27
add esp, 0x214
ret 8