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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x417a9e
cmp dword [edi + 0x74], 0
jne 0x417a9e
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0044d549
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00417a3b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41dba9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41dbf0
call fcn.0044d549
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41dbf0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41dc0c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041d6ae
mov esi, eax
test edi, edi
je 0x41dc0a
test ebx, ebx
je 0x41dc0a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e17e
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x41e1a2
mov eax, dword [esi]
push 0
call dword [eax + pe_nt_image_headers32]
test eax, eax
jne 0x41e1b0
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + pe_nt_image_headers32]
jmp 0x41e19c
xor eax, eax
inc eax
pop esi
ret

Function at 0x452b23
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x452b3b
mov edi, dword [esi + 0xc]
jmp 0x452b7b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x452b54
call fcn.004251c4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x452b69
call fcn.004251c4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x452b7b
call fcn.004251c4
call fcn.0044d549
cmp dword [eax + 0x3c], 0
je 0x452b90
push edi
mov ecx, ebx
call fcn.004519e1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00452a3d
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x452bae
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x452bba
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46a79d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46a7b7
call fcn.0044d549
mov esi, dword [eax + 0xc]
push dword [0x5abd18]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46a7d5
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46a7cd
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46a802
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46a7cf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046a6cb
mov esi, eax
jmp 0x46a7f4

Function at 0x46f94a
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x46f988
push 0x560600
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x46f996
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46f996
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x46f998
cmp dword [esi + 4], 0
je 0x46f996
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x47ae2f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041c034
call fcn.0040f658
cmp eax, esi
pop esi
jne 0x47ae4b
mov ecx, 0x5ab760
jmp fcn.00457a75
ret

Function at 0x4978f8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x54c619
call fcn.0052b2bd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d880
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x49795a
call fcn.0044ce0c
cmp eax, 1
jne 0x49795a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004136b6
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00410103
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040f5b8
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040f5b8
mov eax, esi
call fcn.0052b395
ret 0x10
Function at 0x497983
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x54c619
call fcn.0052b2bd
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040d880
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x4979e5
call fcn.0044ce0c
cmp eax, 1
jne 0x4979e5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004136b6
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00410103
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040f5b8
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040f5b8
mov eax, esi
call fcn.0052b395
ret 0x14

Function at 0x50ebac
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0050e86b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x50ebf6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041bc17
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041309f
jmp 0x50ec01
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00453c44
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x50ec07
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004140d7
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x50ec44
call fcn.0050e86b
mov dword [esi + 0xc], 1
jmp 0x50ec49
call fcn.0050e86b
cmp dword [esi], 0
je 0x50ec92
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x50ec6a
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041bc17
jmp 0x50ec7c
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.0040dc20
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041309f
jmp 0x50ecb6
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x50ecb6
push dword [esi]
push dword [ebp + 8]
call fcn.00453c44
pop esi
pop ebp
ret 0xc

Function at 0x52b2ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a7aa0]
jne 0x52b2b8
repz ret
jmp fcn.00537757
Function at 0x53e633
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a7aa0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00531942
and dword [ebp - 0x14], 0
cmp dword [0x5af17c], 0
mov dword [ebp - 0x18], eax
jne 0x53e6e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x53e78e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x53e78e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x581014
push ebx
mov dword [0x5af17c], eax
call edi
push eax
call esi
push 0x581000
push ebx
mov dword [0x5af180], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5af184], eax
call edi
push eax
call esi
mov dword [0x5af18c], eax
test eax, eax
je 0x53e6e6
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5af188], eax
mov eax, dword [0x5af188]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x53e73f
cmp dword [0x5af18c], ecx
je 0x53e73f
push eax
call esi
push dword [0x5af18c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x53e73f
test ebx, ebx
je 0x53e73f
call edi
test eax, eax
je 0x53e736
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53e736
test byte [ebp - 8], 1
jne 0x53e73f
or dword [ebp + 0x10], 0x200000
jmp 0x53e772
mov eax, dword [0x5af180]
cmp eax, dword [ebp - 0x18]
je 0x53e772
push eax
call esi
test eax, eax
je 0x53e772
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x53e772
mov eax, dword [0x5af184]
cmp eax, dword [ebp - 0x18]
je 0x53e772
push eax
call esi
test eax, eax
je 0x53e772
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5af17c]
call esi
test eax, eax
je 0x53e78e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x53e790
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b2ae
leave
ret
Function at 0x401840
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 sym._GetFileAttributesW_4
sub esp, 4
cmp eax, 0xffffffff
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
je 0x4018d0
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._MsiOpenDatabaseW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
jne 0x401890
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 [0x405004], 2
je 0x401884
mov eax, esi
call sym._wine_dbgstr_wn.constprop.1
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], 0x406334
mov dword [esp + 4], 0x405004
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x401884
mov dword [esp + 4], 3
mov dword [esp], esi
call sym._MsiOpenDatabaseW_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x401930
test byte [0x405004], 2
je 0x401884
mov eax, esi
call sym._wine_dbgstr_wn.constprop.1
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], 0x406334
mov dword [esp + 4], 0x405004
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x401884
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._MsiDatabaseCommit_4
sub esp, 4
mov ebx, eax
test eax, eax
je 0x40187d
test byte [0x405004], 2
jne 0x401964
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._MsiCloseHandle_4
sub esp, 4
jmp 0x401884
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed_to_commit_database___u__n
mov dword [esp + 8], 0x406334
mov dword [esp + 4], 0x405004
mov dword [esp], 1
call sym._wine_dbg_log.constprop.2
jmp 0x401951
Function at 0x402ba0
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 sym._strlen
mov esi, eax
xor eax, eax
test esi, esi
je 0x402bf7
cmp byte [ebx + esi - 1], 0xa
je 0x402bcb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov edx, 0x4070a4
lock xchg dword [edx], eax
mov dword [esp], 2
call dbg.__acrt_iob_func
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._fwrite
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x403150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
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 0x403313
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x4070a4]
cmp dword [edx + 0x24], edi
je 0x403235
test byte [0x40501c], 8
jne 0x4032c0
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x40502c], 8
jne 0x403281
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 sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4031d9
cmp esi, 3
jbe 0x403240
mov dword [esp], 2
call dbg.__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 0x4031e9
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 sym._fwrite
add esp, 0xfc
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 + 0x4063fc]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym.__snprintf
jmp 0x4031d9
mov dword [esp], 0x40502c
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x4031b0
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 sym._sprintf
add edi, eax
jmp 0x4031b0
mov dword [esp], 0x40501c
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40319b
call sym._GetTickCount_0
mov edx, 0x10624dd3
lea ebx, [ebp - 0xe0]
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 sym._sprintf
lea edi, [ebx + eax]
jmp 0x4031a3
mov eax, 0xffffffff
jmp 0x403235
Function at 0x4038d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x407440]
test esi, esi
jle 0x4039e0
mov edi, dword [0x407444]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x403904
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x403985
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x4038f0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x403a07
mov eax, dword [0x407444]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x407444]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4039e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40397e
sub eax, 4
and eax, 0xfffffffb
jne 0x403990
add dword [0x407440], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x407444]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40397e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x40390e
mov eax, dword [0x407444]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x403e40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x407458
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x407450]
sub esp, 4
test ebx, ebx
je 0x403e95
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x403e8e
test esi, esi
je 0x403e8e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403e70
mov dword [esp], 0x407458
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4044b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x422080
Capabilities:
Get geographical location

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x42210e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
cmp dword [esp + 0x18], 0x2d
jne 0x4220cc
push 0
push str.vepamanal_tulesizoxe_yabadodopa_zokorubonoxesiticohub_foyidufumobowebacaxosububonobo
call edi
push str.wuviyakox
push str.yekukefocudovizene
push str.kaluravujokiziduyux
push str.vixuboxituja
call ebx
push 0
call ebp
call fcn.00421fd0
mov ecx, dword [esp + 0x14]
xor byte [esi + ecx], al
cmp dword [esp + 0x18], 0xf
jne 0x422104
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push str.tigegisipawupesavumefozoj
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x4220a2
pop edi
pop ebp
pop ebx
cmp dword [esp + 0xc], 0x2d
pop esi
jne 0x42212a
mov dword [0x42c8d0], 0xa62e7790
mov dword [0x42c8d4], 0xffffffff
ret
Function at 0x4224d0
Capabilities:
Access the windows event log
Set file attributes

Disassembly:
mov eax, dword [0x42c8c4]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov ebp, 0x1519a5
lea esp, [esp]
mov dword [0x42c52c], 0x8e46a7b8
cmp eax, 0x3dc
jne 0x42251a
push 0
push 0x426f78
call esi
push str.rusokuj
push 0
push 0
call edi
mov eax, dword [0x42c8c4]
dec ebp
jne 0x4224f0
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
xor esi, esi
mov ebp, 0xec58acac
lea ebx, [ebx]
cmp eax, 0x997
jne 0x422542
push 0
push 0
call edi
mov eax, dword [0x42c8c4]
cmp esi, 0x846373
jne 0x422559
mov eax, dword [0x42aad0]
add eax, 0xa231
mov dword [0x42c8c4], eax
cmp eax, 0x141
jne 0x422570
mov dword [0x42bd18], ebp
mov dword [0x42bd1c], 0xffffffff
inc esi
cmp esi, 0x123c962
jl 0x422530
call fcn.00422170
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 0x30
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x47
ja case.0x401023.1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x401128]
jmp dword [eax*4 + 0x40110c]
push str.winepath
push str.Usage:__s__OPTION___PATH_..._n
call fcn.00401940
add esp, 8
push str.Convert_PATH_s__to_Unix_or_Windows_long_or_short_paths._n_n___u____unix____converts_a_Windows_path_to_a_Unix_path_n___w____windows_converts_a_Unix_path_to_a_long_Windows_path_n___l____long____converts_the_short_Windows_path_of_an_existing_file_or_n________________directory_to_the_long_format_n___s____short___converts_the_long_Windows_path_of_an_existing_file_or_n________________directory_to_the_short_format_n___0____________separate_output_with_0_character__instead_of_a_newline_n___h____help____output_this_help_message_and_exit_n_nIf_more_than_one_option_is_given_then_the_input_paths_are_output_in_nall_formats_specified__in_the_order_long__short__Unix__Windows._nIf_no_option_is_given_the_default_is_Unix_format._n
call fcn.00401940
add esp, 4
push 0
call fcn.00404d2f
mov eax, 2
jmp 0x401103
mov eax, 1
jmp 0x401103
mov eax, 4
jmp 0x401103
mov eax, 8
jmp 0x401103
mov eax, 0x10
jmp 0x401103
push str.winepath
push str._s:_invalid_option
push 2
call fcn.004035c8
add esp, 4
push eax
call fcn.00401900
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4010c3
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4122b0
push 2
call fcn.004035c8
add esp, 4
push eax
call fcn.00401900
add esp, 0xc
jmp 0x4010df
mov edx, dword [ebp + 8]
push edx
push str.__c_n
push 2
call fcn.004035c8
add esp, 4
push eax
call fcn.00401900
add esp, 0xc
push str.winepath
push str.Try__s___help_for_help_n
push 2
call fcn.004035c8
add esp, 4
push eax
call fcn.00401900
add esp, 0xc
push 2
call fcn.00404d2f
mov esp, ebp
pop ebp
ret 8
Function at 0x402169
Capabilities:
Parse pe header

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

Function at 0x411450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41147d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41147d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret