joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426660
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434db2
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x4430a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x628], esi
mov dword [ebp - 0x624], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x408
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x620]
push eax
mov dword [ebp - 0x624], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x426703
lea ecx, [ebp - 0x620]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4266f6
jmp 0x42675b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x42670d
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
push str.USERPROFILE
push 0x204
lea eax, [ebp - 0x620]
mov dword [ebp - 4], 1
push eax
push ecx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
add esp, 0x10
mov byte [ebp - 4], 0
test eax, eax
jne 0x4267b7
lea ecx, [ebp - 0x620]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426750
sub ecx, edx
lea eax, [ebp - 0x620]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00420080
push 0xc
push str..nitro_test
mov ecx, esi
call fcn.0041fa80
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x426786
mov eax, dword [esi]
xor ecx, ecx
cmp cx, word [eax]
je 0x426849
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4267a1
test al, 0x10
jne 0x4267b7
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4267ab
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], 0
mov word [eax], cx
cmp dword [esi + 0x10], 0
jne 0x4267c6
push esi
call fcn.0041dec0
add esp, 4
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x218]
push eax
push 0
call fcn.00405e60
add esp, 0x14
mov ecx, esi
push 1
push 0x438d30
call fcn.0041fa80
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426801
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0041fa80
push 9
push 0x438d34
mov ecx, esi
call fcn.0041fa80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d3e0
mov esp, ebp
pop ebp
ret
push str.DirectoryExists:_empty_path
lea ecx, [ebp - 0x634]
call fcn.0041aa00
push 0x43fb94
lea eax, [ebp - 0x634]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x427480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434f16
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4430a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 8]
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x120], esi
call sub.MSVCP140.dll__Mtx_lock
add esp, 4
test eax, eax
je 0x4274d2
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
add esp, 4
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - method.fmt::v6::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0xfa
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x11c]
push edx
push ebx
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0xc]
push dword [ebp - 0x114]
push 1
push dword [ebp - 0x118]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [edi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 0x14
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 2
mov dword [ebp - method.fmt::v6::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x427588
mov edx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x42757e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42757e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042d3d2
add esp, 8
push esi
mov dword [ebp - 4], 3
call sub.MSVCP140.dll__Mtx_unlock
add esp, 4
test eax, eax
je 0x4275a5
push eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d3e0
mov esp, ebp
pop ebp
ret 4
Function at 0x42a5a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4353e1
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x4430a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x130]
mov dword [ebp - 0x138], 0
mov dword [ebp - method.fmt::v6::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x134], 0xfa
mov ecx, dword [edi + 8]
lea esi, [ebp - 0x140]
push esi
push edx
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0x44]
mov esi, dword [ebp - 0x138]
add eax, esi
mov dword [edi + 0x44], eax
cmp eax, dword [edi + 0x3c]
jbe 0x42a636
mov ecx, edi
call fcn.004299c0
mov esi, dword [ebp - 0x138]
mov dword [edi + 0x44], esi
push dword [edi + 0x50]
push esi
push 1
push dword [ebp - 0x13c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, esi
jne 0x42a6bd
mov ecx, dword [ebp - 0x13c]
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 3
mov dword [ebp - method.fmt::v6::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v6::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x42a6a0
mov edx, dword [ebp - 0x134]
mov eax, ecx
cmp edx, 0x1000
jb 0x42a696
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42a696
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042d3d2
add esp, 8
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.0042d3e0
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
lea eax, [edi + 0x54]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00421ad0
push eax
lea eax, [ebp - 0x170]
mov byte [ebp - 4], 1
push str.Failed_writing_to_file
push eax
call fcn.00403670
add esp, 0x14
push esi
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0041ab90
push 0x43fcd4
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x431060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435ce5
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4430a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4310a1
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
jne 0x4310c4
push dword [ebp - 0x2c]
push ebx
push edi
call fcn.00430f30
add esp, 0xc
jmp 0x43123e
push esi
push ebx
call fcn.004308e0
add esp, 8
mov ecx, eax
mov dword [ebp - 0x30], ecx
test esi, 0x400
je 0x431203
cmp dword [ebx + 0x14], 8
mov edx, ebx
jb 0x4310e9
mov edx, dword [ebx]
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431110
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00420080
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x43119e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x431190
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x431190
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0042d3d2
add esp, 8
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x4311c6
push dword [ebp - 0x2c]
push ebx
push edi
call fcn.00430f30
add esp, 0xc
jmp 0x43123e
push ebx
call fcn.00430e50
add esp, 4
test al, al
jne 0x4311ef
mov eax, dword [ebp - 0x30]
mov dword [edi], 9
mov dword [edi + 4], eax
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43123e
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x43121b
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0x4396b0
and esi, 0x10
je 0x431225
mov edx, dword [ebp - 0x34]
jmp 0x43122a
mov edx, ecx
mov ecx, dword [ebp - 0x34]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [edi], eax
cmove ecx, edx
mov dword [edi + 4], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d3e0
mov esp, ebp
pop ebp
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x8de2ac
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de2b2
pop ebp
sub ebp, 6
sub ebp, 0x4de2ac
jmp 0x8de310
jmp 0x8de319
mov eax, 0x4de2ac
add eax, ebp
add eax, 0x93
mov ecx, 0x63b
mov edx, 0x6dad0285
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de330
jmp 0x8de343
out dx, eax
invalid
Function at 0x403cb1
Capabilities:
Encode data using xor

Disassembly:
lea esi, [esi]
lea edi, [edi]
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [edi]
mov ebx, edi
mov dword [ebp - 0x38], 0x4400000
mov dword [ebp - 0x34], 0
mov edx, dword [eax - 8]
mov dword [ebp - 0x30], 0
mov ecx, dword [eax - 4]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], 0
add ebx, edx
mov edx, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], 0x200010
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov eax, 6
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x16]
mov dword [esp], ecx
mov dword [esp + 4], eax
add al, 0xff
push edx
sbb al, 0x8b
jne 0x403c10
test esi, esi
je 0x403cad
mov ecx, dword [ebp - 0x2c]
mov ebx, esi
mov eax, ecx
and eax, 6
cmp al, 4
je 0x403cad
mov edx, dword [eax + edx*8 - 0x77]
shl byte [ebx], 1
inc ebp
int3
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x401430
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [0x403058], 1
mov dword [0x40305c], 1
mov dword [0x403060], 1
mov dword [0x40306c], 1
mov dword [ebp - 8], 0x400000
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x40147c
xor eax, eax
jmp 0x401530
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
je 0x40149a
xor eax, eax
jmp 0x401530
mov edx, dword [ebp - 0xc]
add edx, 0x18
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x10b
je 0x4014c0
cmp dword [ebp - 0x10], 0x20b
je 0x4014f4
jmp 0x40152e
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0xe
ja 0x4014cd
xor eax, eax
jmp 0x401530
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x60], 0
je 0x4014e8
mov dword [ebp - 0x14], 1
jmp 0x4014ef
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x401530
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x6c], 0xe
ja 0x401507
xor eax, eax
jmp 0x401530
mov edx, 8
imul eax, edx, 0xe
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x70], 0
je 0x401522
mov dword [ebp - 0x1c], 1
jmp 0x401529
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
jmp 0x401530
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401950
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
jmp 0x401990
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jae 0x4019bf
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jb 0x4019bd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 0xc], ecx
jae 0x4019bd
mov eax, dword [ebp - 4]
jmp 0x4019c1
jmp 0x40197e
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4019d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4019f0
xor eax, eax
jmp 0x401a2b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x401a0b
xor eax, eax
jmp 0x401a2b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x10b
je 0x401a26
xor eax, eax
jmp 0x401a2b
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401e70
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x403088], 0
jne 0x401e83
jmp 0x401edc
push 0x403070
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x40308c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401ed2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.kernel32.dll_TlsGetValue
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x401ec7
cmp dword [ebp - 8], 0
je 0x401ec7
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
jmp 0x401e95
push 0x403070
call sub.kernel32.dll_LeaveCriticalSection
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Copy file
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 8], ebx
push edi
mov byte [eax], bl
je 0x401169
lea eax, [ebp - 0x2a0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401169
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x114]
push eax
mov edi, 0x405030
push ebx
lea eax, [ebp - 0x2a0]
push edi
push eax
call esi
test eax, eax
je 0x401169
push ebx
push 0x100
push 4
push ebx
push ebx
lea eax, [ebp - 0x114]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x401090
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401169
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40107e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
test eax, eax
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
je 0x40107e
push dword [ebp + 0xc]
lea eax, [ebp - 0x2a0]
push ebx
push edi
push eax
call esi
test eax, eax
je 0x40107e
lea eax, [ebp - 0x19c]
push 0x20
push eax
lea eax, [ebp - 0x114]
push eax
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
cmp edi, ebx
jl 0x40107e
lea eax, [ebp - 0x19c]
push 0x1001
push eax
push dword [ebp + 0xc]
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
cmp esi, ebx
jge 0x40113a
push edi
call sub.LZ32.dll_LZClose
jmp 0x40107e
push esi
push edi
call sub.LZ32.dll_LZCopy
push esi
mov dword [ebp + 8], eax
call sub.LZ32.dll_LZClose
push edi
call sub.LZ32.dll_LZClose
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x114]
push eax
call esi
cmp dword [ebp + 8], ebx
jge 0x40116d
push dword [ebp + 0xc]
call esi
xor al, al
jmp 0x40116f
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401174
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
and byte [ebp - 1], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0x405050
push 0x67
push dword [ebp + 8]
call esi
xor edi, edi
cmp eax, edi
je 0x4011be
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4011be
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x53
push eax
call fcn.00401420
pop ecx
test eax, eax
pop ecx
setne byte [ebp - 1]
push 0x40504c
push 0x65
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x168]
push ecx
push eax
call section..text
pop ecx
test al, al
pop ecx
je 0x401209
push 0x405044
push 0x66
push dword [ebp + 8]
call esi
lea ecx, [ebp - 0x26c]
push ecx
push eax
call section..text
pop ecx
test al, al
pop ecx
jne 0x401211
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, 0xffffffff
jmp 0x4012df
lea eax, [ebp - 0x64]
mov dword [ebp - 0x10], 0xc
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, 0x405040
lea eax, [ebp - 0x474]
push esi
push eax
call fcn.00401320
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.00401330
add esp, 0x10
cmp byte [ebp - 1], 1
mov eax, str.___s__
je 0x401264
mov eax, 0x405034
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.00401330
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.00401330
lea eax, [ebp - 0x474]
push esi
push eax
call fcn.00401330
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push 0x20
lea eax, [ebp - 0x10]
push 1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4012e5
or edi, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x168]
push eax
call esi
lea eax, [ebp - 0x26c]
push eax
call esi
mov eax, edi
pop edi
pop esi
leave
ret 0x10
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0x103
jne 0x4012c5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4012e5
Function at 0x402121
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405110
cmp edx, dword [eax]
je 0x402143
add eax, 8
inc ecx
cmp eax, 0x4051a0
jl 0x402134
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405110]
jne 0x402271
mov eax, dword [0x4054c8]
cmp eax, 1
je 0x40224b
test eax, eax
jne 0x402174
cmp dword [0x405064], 1
je 0x40224b
cmp edx, 0xfc
je 0x402271
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4021ab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00401320
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402740
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4021ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402740
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043b8
push edi
call fcn.004033d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00401320
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00401330
lea eax, [ebp - 0xa0]
push 0x404398
push eax
call fcn.00401330
push dword [esi + 0x405114]
lea eax, [ebp - 0xa0]
push eax
call fcn.00401330
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040333e
add esp, 0x2c
pop edi
jmp 0x402271
lea eax, [ebp + 8]
lea esi, [esi + 0x405114]
push 0
push eax
push dword [esi]
call fcn.00402740
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret