joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1037a52
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x106ed40]
xor eax, dword [ebp + 4]
push ebx
mov ebx, ecx
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], eax
call fcn.0104c949
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.01037184
mov esi, eax
test esi, esi
jl 0x1037c5c
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0104d181
push 0x1004ca4
lea ecx, [ebp - 0x1c]
call fcn.0104ce77
lea ecx, [ebp - 0x1c]
call fcn.0104c957
test eax, eax
lea ecx, [ebp - 0x1c]
je 0x1037abe
call fcn.0104cd4c
mov esi, 0x8007000e
jmp 0x1037c5c
lea eax, [ebp - 0x284]
push eax
call fcn.0104c9be
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x1037b03
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1037aee
call esi
mov esi, eax
jmp 0x1037c54
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1037c54
test byte [ebp - 0x284], 0x12
jne 0x1037c09
test byte [ebp - 0x283], 0x11
jne 0x1037c09
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xc]
call fcn.0104d181
lea ecx, [ebp - 0xc]
call fcn.0104c957
test eax, eax
lea ecx, [ebp - 0xc]
jne 0x1037c23
push 0x1004ab0
call fcn.0104ce77
test eax, eax
lea ecx, [ebp - 0xc]
je 0x1037c23
lea eax, [ebp - 0x258]
push eax
call fcn.0104ce77
test eax, eax
je 0x1037c2a
lea eax, [ebp - 0x258]
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x1037b7e
and word [eax], 0
lea ecx, [ebp - 0x14]
call fcn.0104c949
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0104d19c
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
call fcn.010374f4
test eax, eax
jge 0x1037bd0
call fcn.01008080
push 1
push 0x2833
mov ecx, eax
call fcn.01008799
push eax
lea ecx, [ebp - 0x14]
call fcn.0104d1c9
push 2
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 1
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.0103731b
cmp eax, 0xffffffff
lea ecx, [ebp - 0x2c]
je 0x1037c31
call fcn.0104cd4c
lea ecx, [ebp - 0x14]
call fcn.0104cd4c
lea ecx, [ebp - 0xc]
call fcn.0104cd4c
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1037b03
jmp 0x1037c4b
mov esi, 0x8007000e
jmp 0x1037c46
mov esi, 0x8007000e
jmp 0x1037c43
mov esi, 0x8000ffff
call fcn.0104cd4c
lea ecx, [ebp - 0x14]
call fcn.0104cd4c
lea ecx, [ebp - 0xc]
call fcn.0104cd4c
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x1c]
call fcn.0104cd4c
lea ecx, [ebp - 0x34]
call fcn.0104cd4c
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
pop ebx
call fcn.0104ab5e
leave
ret
Function at 0x103c518
Capabilities:
Terminate process

Disassembly:
sub esp, 0x21c
mov eax, dword [0x106ed40]
xor eax, dword [esp + 0x21c]
push ebp
push esi
push edi
mov dword [esp + 0x224], eax
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
xor ebp, ebp
push ebp
stosd dword es:[edi], eax
push ebp
stosd dword es:[edi], eax
lea esi, [ecx + 0x20]
push 0x1009
push dword [esi]
mov dword [esp + 0x1c], 1
stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x10], ebp
call fcn.0100806e
mov ecx, eax
call fcn.010265aa
test eax, eax
jle 0x103c661
push ebx
mov ebx, 0x100
mov edi, 0x400
jmp 0x103c581
xor ebp, ebp
push ebp
push ebp
push 0x1004
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.0100806e
mov ecx, eax
call fcn.01026610
push ebx
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push 0
push ebp
mov ecx, esi
call fcn.0102efa0
push ebx
lea eax, [esp + 0x2c]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push 1
push ebp
mov ecx, esi
call fcn.0102efa0
test eax, eax
je 0x103c60a
cmp dword [esp + 0x10], 0
je 0x103c60a
mov dword [esp + 0x10], 1
jmp 0x103c60f
and dword [esp + 0x10], 0
push 0xffffffffffffffff
push dword [esp + 0x18]
call fcn.0100806e
mov ecx, eax
call fcn.0102663a
push eax
push 2
push ebp
mov ecx, esi
call fcn.0102efa0
test eax, eax
je 0x103c641
cmp dword [esp + 0x10], 0
je 0x103c641
mov dword [esp + 0x10], 1
jmp 0x103c646
and dword [esp + 0x10], 0
inc dword [esp + 0x14]
call fcn.0100806e
mov ecx, eax
call fcn.010265aa
cmp dword [esp + 0x14], eax
jl 0x103c57f
pop ebx
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0xc]
xor ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
add esp, 0x21c
jmp fcn.0104ab5e
Function at 0x1040a64
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push dword [esi + 4]
call fcn.010131d4
mov ebx, dword [esp + 0x14]
test ebx, ebx
mov ebp, eax
jne 0x1040a84
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ebx, eax
cmp dword [esp + 0x18], 0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x1040a98
push 0
push dword [esi + 4]
call edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetParent]
test eax, eax
jne 0x1040ab5
test ebp, ebp
setne al
push eax
push dword [esi + 4]
call edi
xor eax, eax
jmp 0x1040ac6
cmp dword [esp + 0x18], 0
je 0x1040ac3
push 1
push dword [esi + 4]
call edi
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x10432b1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1414
call fcn.0104ae00
mov eax, dword [0x106ed40]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, ecx
push 0x8cb
push dword [esi + 4]
mov dword [ebp - 4], eax
call edi
push 0x8cc
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x22c]
call fcn.01008062
mov ecx, eax
call fcn.0101f3bc
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jl 0x1043379
push 0x400
lea eax, [ebp - 0x1414]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0xc14]
push 0x503
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0xc14]
push eax
push dword [esi + 0x20]
mov word [ebp - 0x20e], bx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, esi
call fcn.01043164
mov edi, eax
cmp edi, ebx
jl 0x1043379
mov ecx, esi
call fcn.01043252
mov edi, eax
push 0x15
push ebx
push ebx
push dword [esi + 0x234]
push dword [esi + 0x230]
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esi + 4]
call fcn.0104f58f
push edi
push ebx
push 0x3a
push 0x1005680
call fcn.01056fa7
push eax
call fcn.01008074
mov ecx, eax
call fcn.010581e7
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0104ab5e
leave
ret 0x10
Function at 0x1043f9a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x54]
push edi
xor edi, edi
add ecx, 8
inc edi
call fcn.0104c957
test eax, eax
je 0x1043fe7
xor ebx, ebx
push ebx
push 0x47b1
push ebx
push edi
push ebx
push 0x432
push 0x1005760
call fcn.01056fa7
push eax
call fcn.01008074
push eax
call fcn.01058315
add esp, 0x18
jmp 0x10440bc
lea ecx, [ebp - 8]
call fcn.0104c949
push 0x1005984
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x54]
call fcn.01043408
xor ebx, ebx
test eax, eax
jl 0x1044042
lea ecx, [ebp - 8]
call fcn.0104c953
cmp eax, 0x104
jl 0x1044042
push ebx
push 0x47b2
push ebx
push 1
push ebx
push 0x43c
push 0x1005760
call fcn.01056fa7
push eax
call fcn.01008074
push eax
call fcn.01058315
add esp, 0x18
jmp 0x10440ae
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x54]
add ecx, 8
call fcn.0104c9be
push eax
call fcn.0104df7f
test eax, eax
jne 0x10440b0
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x54]
push ebx
add ecx, 8
call fcn.0104c9be
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10440b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x1044084
call edi
jmp 0x1044090
call edi
and eax, 0xffff
or eax, 0x80070000
push eax
push ebx
push 0x446
push 0x1005760
call fcn.01056fa7
push eax
call fcn.01008074
mov ecx, eax
call fcn.010581e7
xor edi, edi
lea ecx, [ebp - 8]
call fcn.0104cd4c
cmp edi, ebx
jne 0x10440d3
push 1
push dword [esi + 0x264]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x10440d6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1044200
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x54]
push edi
xor edi, edi
add ecx, 8
inc edi
call fcn.0104c957
test eax, eax
je 0x104424d
xor ebx, ebx
push ebx
push 0x47b1
push ebx
push edi
push ebx
push 0x4dc
push 0x1005760
call fcn.01056fa7
push eax
call fcn.01008074
push eax
call fcn.01058315
add esp, 0x18
jmp 0x1044322
lea ecx, [ebp - 8]
call fcn.0104c949
push 0x1005984
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x54]
call fcn.01043408
xor ebx, ebx
test eax, eax
jl 0x10442a8
lea ecx, [ebp - 8]
call fcn.0104c953
cmp eax, 0x104
jl 0x10442a8
push ebx
push 0x47b2
push ebx
push 1
push ebx
push 0x4e6
push 0x1005760
call fcn.01056fa7
push eax
call fcn.01008074
push eax
call fcn.01058315
add esp, 0x18
jmp 0x1044314
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x54]
add ecx, 8
call fcn.0104c9be
push eax
call fcn.0104df7f
test eax, eax
jne 0x1044316
mov eax, dword [esi + 0x50]
mov ecx, dword [eax + 0x54]
push ebx
add ecx, 8
call fcn.0104c9be
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1044316
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x10442ea
call edi
jmp 0x10442f6
call edi
and eax, 0xffff
or eax, 0x80070000
push eax
push ebx
push 0x4f0
push 0x1005760
call fcn.01056fa7
push eax
call fcn.01008074
mov ecx, eax
call fcn.010581e7
xor edi, edi
lea ecx, [ebp - 8]
call fcn.0104cd4c
cmp edi, ebx
jne 0x1044339
push 1
push dword [esi + 0x264]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
jmp 0x104433c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1046004
Capabilities:
Terminate process

Disassembly:
sub esp, 0x194
mov eax, dword [0x106ed40]
xor eax, dword [esp + 0x194]
push esi
mov dword [esp + 0x194], eax
lea eax, [esp + 4]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x104603b
mov dword [esi + 0x58], 1
lea eax, [esi + 0x1c]
push eax
mov ecx, esi
call fcn.01045e2b
lea eax, [esi + 0x30]
push eax
mov ecx, esi
call fcn.01045e2b
mov ecx, dword [esp + 0x194]
xor ecx, dword [esp + 0x198]
pop esi
add esp, 0x194
jmp fcn.0104ab5e
Function at 0x10472f6
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x20]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x104730f
cmp dword [edi + 0x24], 0
je 0x1047349
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 8
push eax
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.01047179
cmp dword [edi + 0x24], 0
je 0x1047349
mov ecx, edi
call fcn.010470df
and dword [edi + 0x24], 0
mov ecx, esi
call fcn.0102960e
pop edi
mov ecx, esi
pop esi
jmp fcn.0102960e

Function at 0x1047359
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x24], 0
jne 0x1047368
call fcn.01047106
lea esi, [edi + 0x20]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x104737d
cmp dword [edi + 0x24], 0
jne 0x10473b3
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 8
push eax
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
call fcn.01047179
cmp dword [edi + 0x24], 0
jne 0x10473b3
mov dword [edi + 0x24], 1
mov ecx, esi
call fcn.0102960e
pop edi
mov ecx, esi
pop esi
jmp fcn.0102960e
Function at 0x10477cf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov dword [ebp - 4], ebx
call fcn.0104c9be
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0xc], esi
jne 0x104782f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x104781a
call esi
mov ebx, eax
jmp 0x1047929
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x1047929
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x1047845
mov ebx, 0xc00d001c
jmp 0x1047920
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
jne 0x1047881
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x104786c
call esi
mov ebx, eax
jmp 0x1047920
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x1047920
shr esi, 1
shl esi, 1
lea eax, [esi + 2]
push edi
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
cmp edi, ebx
pop ecx
mov dword [ebp - 8], edi
jne 0x10478a0
mov ebx, 0x8007000e
jmp 0x104791f
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10478e1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10478c8
call esi
mov ebx, eax
jmp 0x10478d8
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x104791f
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
je 0x10478f0
mov ebx, 0x8000ffff
jmp 0x10478d8
push dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
xor eax, eax
add edi, esi
stosw word es:[edi], ax
call fcn.0104c995
test eax, eax
jne 0x104791f
mov ecx, dword [ebp + 0xc]
call fcn.0104c953
test eax, eax
je 0x104791a
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ebx, 0x8000ffff
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1047931
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push ebp
push esi
xor esi, esi
push esi
push 0x100
push 4
push esi
push 1
push 0x40000000
call fcn.0104c9be
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x1047983
call ebx
test eax, eax
jg 0x104796f
call ebx
mov esi, eax
jmp 0x104797f
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x1047a00
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x1047994
mov esi, 0xc00d001c
test esi, esi
jl 0x10479f4
mov ecx, dword [esp + 0x14]
push edi
call fcn.0104c953
mov ecx, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov edi, eax
shl edi, 1
call fcn.0104c9be
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10479e4
call ebx
test eax, eax
jg 0x10479d4
call ebx
mov esi, eax
jmp 0x10479e4
call ebx
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x10479f3
cmp edi, dword [esp + 0x14]
je 0x10479f3
mov esi, 0x8000ffff
pop edi
cmp ebp, 0xffffffff
je 0x1047a00
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1047a08
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x106ed40]
xor eax, dword [esp + 0x418]
push ebx
push ebp
push esi
mov dword [esp + 0x420], eax
push edi
lea eax, [esp + 0x14]
push eax
mov ebx, 0x104
push ebx
mov dword [esp + 0x18], ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x1047a68
call edi
test eax, eax
jg 0x1047a54
call edi
mov esi, eax
jmp 0x1047a64
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x1047ae0
cmp ebp, ebx
jbe 0x1047a71
mov esi, 0x8007006f
test esi, esi
jl 0x1047ae0
lea eax, [esp + 0x21c]
push eax
push 0
push 0x1005e4c
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1047aaf
call edi
test eax, eax
jg 0x1047a9f
call edi
mov esi, eax
jmp 0x1047aaf
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [esp + 0x430]
lea eax, [esp + 0x21c]
push eax
call fcn.0104d1c9
test esi, esi
jl 0x1047ae0
push dword [esp + 0x42c]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x434]
call fcn.01047931
mov esi, eax
mov ecx, dword [esp + 0x424]
xor ecx, dword [esp + 0x428]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.0104ab5e
add esp, 0x418
ret 8
Function at 0x1049c08
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov esi, ecx
and dword [esi + 0x34], 0
push 0x6f8
lea edi, [esi + 4]
push dword [edi]
lea ebx, [esi + 0x38]
and dword [ebx], 0
call ebp
push 0x6f7
push dword [edi]
mov dword [esi + 0x20], eax
call ebp
push 0x6f6
push dword [edi]
mov dword [esi + 0x24], eax
call ebp
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x28], eax
jne 0x1049c8d
push 0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.01008080
push 1
push 0x287b
mov ecx, eax
call fcn.01008799
mov ebp, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi]
call ebp
call fcn.01008080
push 1
push 0x287c
mov ecx, eax
call fcn.01008799
push eax
push dword [esi + 0x28]
call ebp
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x80]
push dword [ebx]
lea ebx, [esi + 0x24]
push 0
mov ecx, ebx
mov ebp, eax
call fcn.010295d3
push 1
mov ecx, ebx
call fcn.0104712d
push dword [edi]
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov ecx, edi
call fcn.01010250
test ebp, ebp
jl 0x1049cd0
mov ecx, esi
call fcn.01049a89
jmp 0x1049cf5
push ebp
push 0
push 0x51
push 0x1006100
call fcn.01056fa7
push eax
call fcn.01008074
mov ecx, eax
call fcn.010581e7
push 2
mov ecx, esi
call fcn.01049a53
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret 0x10
Function at 0x104ab6c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1006238
call fcn.0104ad64
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x104abb4
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x104abb4
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x104abcd
cmp ecx, 0x20b
je 0x104abba
and dword [ebp - 0x60], 0
jmp 0x104abe1
cmp dword [eax + 0x84], 0xe
jbe 0x104abb4
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x104abdb
cmp dword [eax + 0x74], 0xe
jbe 0x104abb4
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x60], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x10742d8], edi
mov dword [0x10742dc], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1072b88]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1072b84]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10742d4], eax
call fcn.0103ce7e
cmp dword [0x106ed50], 0
jne 0x104ac41
push fcn.0103ce7e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0104afb6
push 0x106508c
push 0x1065088
call sub.msvcrt.dll__initterm
mov eax, dword [0x1072b80]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push dword [0x1072b7c]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x74], eax
push 0x1065084
push 0x1065000
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], 0
jne 0x104aca5
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x104ad56
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
cmp word [eax], 0x22
jne 0x104ace8
add eax, esi
mov dword [ebp - 0x78], eax
mov cx, word [eax]
test cx, cx
je 0x104acc3
cmp cx, 0x22
jne 0x104acb0
cmp word [eax], 0x22
jne 0x104acce
add eax, esi
mov dword [ebp - 0x78], eax
mov cx, word [eax]
test cx, cx
je 0x104acdc
cmp cx, 0x20
jbe 0x104acc9
test byte [ebp - 0x30], 1
je 0x104acf5
movzx ecx, word [ebp - 0x2c]
jmp 0x104acf8
cmp word [eax], 0x20
jbe 0x104acce
add eax, esi
mov dword [ebp - 0x78], eax
jmp 0x104ace8
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.01011425
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x60], 0
jne 0x104ad18
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x104ad54
mov eax, esi
call fcn.0104ad9f
ret