joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401186
Capabilities:
Create process on windows
Get token membership
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0x154
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0xd0], eax
push ebx
xor ebx, ebx
mov word [ebp - 0x38], 0x500
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4011e8
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x40]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x44], ebx
jne 0x40124a
push 0x104
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40124a
push 0x38
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x3c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x74], str.runas
lea eax, [ebp - 0x34]
mov dword [ebp - 0x6c], str.__food
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x78], ebx
push eax
mov dword [ebp - 0x64], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x401247
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push ebx
jmp 0x401241
mov ecx, dword [ebp + 0xd0]
xor ecx, ebp
pop ebx
call fcn.00401b57
add ebp, 0xd4
leave
ret

Function at 0x401260
Capabilities:
Stop service

Disassembly:
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4012e8
mov dword [esp + 8], str.wuauserv
mov dword [esp + 0xc], str.bits
mov dword [esp + 0x10], str.cryptsvc
push ebp
push 0x24
push dword [esp + esi*4 + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, eax
test ebp, ebp
je 0x4012da
lea eax, [esp + 0x18]
push eax
push 1
push ebp
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4012d3
push dword [esp + esi*4 + 0xc]
push str.s__s_st._n
call fcn.00401029
pop ecx
pop ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc esi
cmp esi, 3
jb 0x40129e
pop ebp
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor ecx, esp
call fcn.00401b57
add esp, 0x2c
ret
Function at 0x401a02
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Generate random numbers via winapi
Terminate process

Disassembly:
push ecx
push ebx
push ebp
push edi
push 0xf0000000
push 0x18
xor edi, edi
lea eax, [esp + 0x14]
push edi
push edi
push eax
mov ebx, edx
mov ebp, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x401a74
push ebp
push 0x20
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push ebx
push 0x10
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push edi
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movaps xmm2, xmmword [0x403420]
movups xmm0, xmmword [edi + ebp]
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [edi + ebp], xmm1
add edi, 0x10
cmp edi, 0x20
jb 0x401a50
movups xmm0, xmmword [ebx]
pop edi
pop ebp
xorps xmm2, xmm0
movups xmmword [ebx], xmm2
pop ebx
pop ecx
ret
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x401a7d
Capabilities:
Create process on windows
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
push edi
mov edi, dword [ebp + 0xc]
jge 0x401abb
call fcn.00401186
push 0
push 0
push str.__food
push dword [edi]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
jmp 0x401b4a
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x34]
call fcn.00401a02
call fcn.00401260
movaps xmm1, xmmword [0x403420]
xor eax, eax
movups xmm0, xmmword [ebp + eax - 0x34]
xorps xmm0, xmm1
movups xmmword [ebp + eax - 0x34], xmm0
add eax, 0x10
cmp eax, 0x20
jb 0x401ad4
movups xmm0, xmmword [ebp - 0x14]
xorps xmm1, xmm0
movups xmmword [ebp - 0x14], xmm1
call fcn.004010d7
push str.__food
push dword [edi + 4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
pop ecx
pop ecx
test eax, eax
jne 0x401b47
push ecx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x34]
call fcn.0040185c
pop ecx
push 0
push 0
push dword [0x405408]
call dword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroupMembers]
push dword [0x405408]
call dword [sym.imp.KERNEL32.dll_CloseThreadpoolCleanupGroup]
push dword [0x40540c]
call dword [sym.imp.KERNEL32.dll_CloseThreadpool]
jmp 0x401ab4
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401b57
leave
ret

Function at 0x40235a
Capabilities:
Parse pe header

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x69695ac5
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x65495005
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401c31
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x2457374], 0x400
push edi
jne 0x401c84
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004041a1
push esi
call fcn.00404928
push esi
push esi
call fcn.00404773
push esi
call fcn.004049de
push esi
push esi
call fcn.004041db
add esp, 0x1c
xor edi, edi
cmp edi, 0x16c76
jge 0x401c96
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401cbc
inc edi
cmp edi, 0x3003f
jl 0x401c86
mov eax, dword [0x439b7c]
mov dword [0x2457374], eax
call fcn.0040192c
mov edi, 0x3078f
cmp dword [0x2457374], 0x51f
jne 0x401ce8
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401cd0
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4027bb
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x43290d
call fcn.00432790
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00403491
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.004049ed
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x402803
call fcn.00403245
mov dword [ebx], eax
call fcn.00403004
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x402805
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405075
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43899c]
jne 0x40507f
repz ret
jmp fcn.0040b92c
Function at 0x422e50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x422e6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422e71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422e60
mov eax, 1
add ebx, ebx
jne 0x422e83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422e78
jne 0x422e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422e78
xor ecx, ecx
sub eax, 3
jb 0x422ea8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422f1a
mov ebp, eax
add ebx, ebx
jne 0x422eb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422ec0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422ee4
inc ecx
add ebx, ebx
jne 0x422ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422ec5
jne 0x422ee1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422ec5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422f04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422ef5
jmp 0x422e66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422f04
add edi, ecx
jmp 0x422e66
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422f22
cmp byte [edi], 9
jne 0x422f22
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 0x422f27
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422f9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2663c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x26704]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422f54
mov ecx, edi
jns 0x422f83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26708]
or eax, eax
je 0x422f99
mov dword [ebx], eax
add ebx, 4
jmp 0x422f71
call dword [esi + 0x26718]
mov ebp, dword [esi + 0x2670c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x422fd3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x401350
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
je 0x4013e0
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._MsiOpenDatabaseW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x4013a0
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [edi], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x403000], 2
je 0x401395
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_open_package_database__s___u__n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401395
mov dword [esp + 4], 3
mov dword [esp], esi
call sym._MsiOpenDatabaseW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401440
test byte [0x403000], 2
je 0x401395
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_create_package_database__s___u__n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401395
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._MsiDatabaseCommit_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x40138e
test byte [0x403000], 2
jne 0x401478
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._MsiCloseHandle_4
sub esp, 4
jmp 0x401395
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_commit_database___u__n
mov dword [esp + 8], global___func__.1
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401461
Function at 0x401e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401e7b
cmp byte [esi + ebx - 1], 0xa
je 0x401e4f
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], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x406094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402610
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x406094]
movzx eax, al
bt eax, esi
jae 0x402670
mov ecx, dword [0x406084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402516
test byte [0x403018], 8
jne 0x4025b0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403028], 8
jne 0x402560
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 0x4024e5
cmp esi, 3
jbe 0x402520
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x404418]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x4024e5
mov ecx, dword [0x406094]
test ecx, ecx
je 0x402650
mov dword [esp], 0x403028
call dword [0x406094]
test al, 8
je 0x4024bc
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 0x4024bc
mov ebx, dword [0x406094]
test ebx, ebx
je 0x402630
mov dword [esp], 0x403018
call dword [0x406094]
test al, 8
je 0x4024a9
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
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 0x4024af
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x402470
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x4025ba
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x40256e
mov eax, 0xffffffff
jmp 0x402516
Function at 0x4027d0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x4016c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401719
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401719
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401708
cmp esi, edx
jae 0x401719
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4016f6
cmp esi, edx
jae 0x401719
cmp word [esi], 0
je 0x401719
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4038f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aafd0
mov eax, dword fs:[0]
push eax
mov eax, 0x1230
call fcn.0057db00
mov eax, dword [0x63afd4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0057fb60
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x121c]
mov dword [ebp - 0x121c], 0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push 0x1000
mov esi, eax
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.0057fb60
add esp, 0xc
lea eax, [ebp - 0x1218]
push eax
push esi
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4039a6
xor edx, edx
xor esi, esi
xor ecx, ecx
xor edi, edi
jmp 0x4039fe
lea eax, [ebp - 0x1220]
mov dword [ebp - 0x1220], 0
push eax
lea eax, [ebp - 0x123c]
mov dword [ebp - 0x123c], 0
push eax
push 0x6212e0
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x123c]
test eax, eax
jne 0x4039ee
xor edx, edx
xor esi, esi
xor ecx, ecx
xor edi, edi
jmp 0x4039fe
movzx edx, word [eax + 0xa]
movzx esi, word [eax + 0xc]
movzx ecx, word [eax + 8]
movzx edi, word [eax + 0xe]
sub esp, 0x18
lea eax, [ecx + ecx*4]
lea eax, [edi + eax*2]
movzx eax, ax
push esi
push eax
push edx
push ecx
lea eax, [ebp - 0x218]
push eax
call fcn.00401e10
add esp, 0x2c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x1238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x1228], 0
mov dword [ebp - 0x1224], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1238], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403a60
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1238]
call fcn.00403c20
push 0x10
push str.TxBugReport.exe
lea ecx, [ebp - 0x1238]
mov dword [ebp - 4], 0
call fcn.00403d30
cmp dword [ebp - 0x1224], 8
lea eax, [ebp - 0x1238]
lea ecx, [ebp - 0x123c]
cmovae eax, dword [ebp - 0x1238]
push eax
call fcn.004031a0
mov eax, dword [ebp - 0x123c]
test eax, eax
je 0x403ae4
cmp word [eax], 0
je 0x403ae4
push eax
push 0x104
push 0x6439d0
call fcn.005826c2
mov eax, dword [ebp - 0x123c]
add esp, 0xc
lea ecx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x403b08
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x5b6448]
mov ecx, edi
call esi
mov eax, dword [0x643bdc]
mov dword [0x642f3c], 0x4038d0
mov dword [0x642f38], 0x4030c0
test eax, eax
je 0x403b2c
mov dword [eax + 4], 0xb
lea ecx, [ebp - 0x1238]
call fcn.00403bc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057d277
mov esp, ebp
pop ebp
ret
Function at 0x415d90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
je 0x415dc3
push 0x2711
push 0
push 1
call dword [sym.imp.mmmojo.dll_CreateMMMojoWriteInfo]
push eax
push dword [esi + 4]
call dword [sym.imp.mmmojo.dll_SendMMMojoWriteInfo]
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x33
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
mov esp, ebp
pop ebp
ret 4