joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push esi
push edi
lea edi, [ebp - 0x320]
mov ecx, 0xc8
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x408014]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, esp
call fcn.004031a0
test eax, eax
jne 0x401eda
push str.Unable_to_get_executable_file_name._n
call fcn.00402ea0
add esp, 4
jmp 0x40203d
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x210]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x401f0e
push str.Unable_to_get_version_info_size._n
call fcn.00402ea0
add esp, 4
jmp 0x40203d
mov eax, dword [ebp - 0x224]
push eax
call fcn.00402f48
add esp, 4
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
mov dword [ebp - 0x228], ecx
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x224]
push eax
push 0
lea ecx, [ebp - 0x210]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x401f61
push str.Unable_to_get_version_info._n
call fcn.00402ea0
add esp, 4
jmp 0x40203d
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x230]
push eax
push 0x405978
mov ecx, dword [ebp - 0x228]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x401f96
push str.Unable_to_query_version_value._n
call fcn.00402ea0
add esp, 4
jmp 0x40203d
mov edx, dword [ebp - 0x230]
mov dword [ebp - 0x244], edx
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x14]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x244]
mov eax, dword [edx + 0x14]
shr eax, 0x10
push eax
mov ecx, dword [ebp - 0x244]
mov edx, dword [ecx + 0x10]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x244]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
push ecx
push str.version__i._i._i._i
lea edx, [ebp - 0x2ac]
push edx
call fcn.00402c00
add esp, 0x18
push 0x4059b0
lea eax, [ebp - 0x318]
push eax
call fcn.00402d00
add esp, 8
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x318]
push edx
call fcn.00402ca0
add esp, 8
push str._njabswitch_enables_or_disables_the_Java_Access_Bridge._n
lea eax, [ebp - 0x318]
push eax
call fcn.00402ca0
add esp, 8
lea ecx, [ebp - 0x318]
push ecx
call fcn.00402ea0
add esp, 4
push edx
mov ecx, ebp
push eax
lea edx, [0x40206c]
call fcn.0040314c
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004031cf
add esp, 0x320
cmp ebp, esp
call fcn.004031a0
mov esp, ebp
pop ebp
ret
Function at 0x401120
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
push 0
mov dword [esp + 0xc], 0
push dword [esi]
call fcn.0040a369
push dword [esi]
lea eax, [esp + 0x1c]
push 2
push 1
push eax
call fcn.00409f7e
mov ax, word [esp + 0x28]
add esp, 0x1c
cmp al, 0x4d
jne 0x4011f2
cmp ah, 0x5a
jne 0x4011f2
push 0
push 0x3c
push dword [esi]
call fcn.0040a369
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409f7e
mov eax, dword [esp + 0x20]
push 0
add eax, 0x18
push eax
push dword [esi]
call fcn.0040a369
push dword [esi]
lea eax, [esp + 0x38]
push 1
push 2
push eax
call fcn.00409f7e
mov ax, word [esp + 0x44]
add esp, 0x38
cmp al, 0xb
jne 0x4011f2
cmp ah, 1
jne 0x4011b6
mov ecx, 0x98
jmp 0x4011c0
cmp ah, 2
jne 0x4011f2
mov ecx, 0xa8
mov eax, dword [esp + 4]
push 0
add eax, ecx
push eax
push dword [esi]
call fcn.0040a369
push dword [esi]
lea eax, [esp + 0x14]
push 1
push 4
push eax
call fcn.00409f7e
mov eax, dword [esp + 0x20]
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmove eax, ecx
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x401220
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi], 0
jne 0x401252
lea eax, [edi + 0x68]
push 0x420210
push eax
call fcn.00402960
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x401252
push str.Cannot_open_archive_file_n
call fcn.00401a80
add esp, 4
xor eax, eax
pop edi
ret
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push 0
push dword [ebp + 4]
call sub.WS2_32.dll_ntohl
add eax, dword [edi + 4]
push eax
push dword [edi]
call fcn.0040a369
add esp, 0xc
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
call fcn.00409c5b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40129a
push str.Could_not_allocate_read_buffer_n
call fcn.00401a80
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop edi
ret
push dword [edi]
push 1
push dword [ebp + 8]
call sub.WS2_32.dll_ntohl
push eax
push ebx
call fcn.00409f7e
add esp, 0x10
cmp eax, 1
jae 0x4012ce
push str.Could_not_read_from_file_n
call fcn.00401a80
push ebx
call fcn.00409c56
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
cmp byte [ebp + 0x10], 1
jne 0x401305
push esi
push ebp
push ebx
call fcn.00401030
push ebx
mov esi, eax
call fcn.00409c56
add esp, 0xc
mov ebx, esi
test esi, esi
pop esi
jne 0x401305
lea eax, [ebp + 0x12]
push eax
push str.Error_decompressing__s_n
call fcn.00401a80
add esp, 8
xor eax, eax
pop ebp
pop ebx
pop edi
ret
mov eax, dword [edi]
test eax, eax
je 0x40131a
push eax
call fcn.00409cdc
add esp, 4
mov dword [edi], 0
pop ebp
mov eax, ebx
pop ebx
pop edi
ret
Function at 0x401320
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push ebp
push esi
call fcn.00401220
push esi
mov ebx, eax
call fcn.00403c50
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401348
pop esi
pop ebp
or eax, eax
pop ebx
ret
push edi
lea edi, [ebp + 0x12]
lea eax, [esi + 0x2068]
push edi
push eax
call fcn.00403f40
add esp, 8
mov esi, eax
push dword [ebp + 0xc]
call sub.WS2_32.dll_ntohl
mov ebp, eax
test esi, esi
jne 0x401387
push edi
push str._s_could_not_be_extracted__n
push str.fopen
call fcn.004017f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push 1
push ebp
push ebx
call fcn.0040ab1e
add esp, 0x10
cmp eax, 1
je 0x4013b8
test ebp, ebp
je 0x4013b8
push edi
push str.Failed_to_write_all_bytes_for__s_n
push str.fwrite
call fcn.004017f0
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00409cdc
push ebx
call fcn.00409c56
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4013d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x64
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [esp + 0x70]
push esi
push edi
mov edi, dword [esp + 0x74]
lea esi, [esp + 0x14]
push 0
add ebx, 0xffffffa0
push ebx
push dword [edi]
call fcn.0040a369
add esp, 0xc
test eax, eax
jne 0x40143d
push dword [edi]
lea eax, [esp + 0x10]
push 1
push 0x60
push eax
call fcn.00409f7e
add esp, 0x10
cmp eax, 1
jb 0x40143d
nop dword [eax]
push 8
push esi
push str.MEI_f_v_n_v
call fcn.00409900
add esp, 0xc
test eax, eax
je 0x401452
dec esi
lea eax, [esp + 0xc]
cmp esi, eax
jae 0x401420
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00407a64
add esp, 0x64
ret
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [edi + 0x50], xmm0
movq xmm0, qword [esi + 0x50]
movq qword [edi + 0x60], xmm0
push dword [edi + 0x18]
call sub.WS2_32.dll_ntohl
lea ecx, [esp + 0xc]
sub esi, ecx
mov ecx, dword [esp + 0x6c]
add esi, ebx
sub esi, eax
xor eax, eax
add esi, 0x58
mov dword [edi + 4], esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407a64
add esp, 0x64
ret
Function at 0x401560
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi], 0
jne 0x401585
lea eax, [esi + 0x68]
push 0x420210
push eax
call fcn.00402960
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x401610
push esi
call fcn.00401120
add esp, 4
cmp eax, 1
jge 0x4015a8
push 2
push 0
push dword [esi]
call fcn.0040a369
push dword [esi]
call fcn.0040a8db
add esp, 0x10
push eax
push esi
call fcn.004013d0
add esp, 8
cmp eax, 0xffffffff
je 0x401610
push dword [esi + 0x24]
mov dword [esi + 0x406c], 0
call sub.WS2_32.dll_ntohl
push 0
mov dword [0x42c954], eax
push dword [esi + 0x1c]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
push eax
push dword [esi]
call fcn.0040a369
add esp, 0xc
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
call fcn.00409c5b
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401615
push str.Could_not_allocate_buffer_for_TOC.
push str.malloc
call fcn.004017f0
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi]
push 1
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
push eax
push dword [esi + 8]
call fcn.00409f7e
add esp, 0x10
cmp eax, 1
jae 0x401649
push str.Could_not_read_from_file.
push str.fread
call fcn.004017f0
add esp, 8
or eax, 0xffffffff
pop esi
ret
push dword [esi + 0x20]
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
push dword [esi]
mov dword [esi + 0xc], eax
call fcn.00409d87
add esp, 4
test eax, eax
je 0x401677
push str.Error_on_file_n.
call fcn.00401a10
add esp, 4
or eax, 0xffffffff
pop esi
ret
push esi
call fcn.00401200
add esp, 4
xor eax, eax
pop esi
ret
Function at 0x403b20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00407a80
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
mov esi, dword [esp + 0x1018]
push edi
mov edi, dword [esp + 0x1018]
push 0x420210
push eax
call fcn.00402960
push esi
push edi
mov ebx, eax
call fcn.00403f40
add esp, 0x10
xor edi, edi
mov esi, eax
test ebx, ebx
je 0x403c1c
push ebx
test esi, esi
je 0x403c21
call fcn.00409d5c
add esp, 4
test eax, eax
jne 0x403bf3
push ebx
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.00409f7e
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403bb2
push ebx
call fcn.00409d87
add esp, 4
test eax, eax
je 0x403bd8
push ebx
jmp 0x403be8
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.0040ab1e
add esp, 0x10
test eax, eax
jle 0x403be7
push esi
call fcn.00409d87
add esp, 4
test eax, eax
jne 0x403be7
push ebx
call fcn.00409d5c
add esp, 4
test eax, eax
je 0x403b88
jmp 0x403bf3
push esi
call fcn.0040f75d
add esp, 4
or edi, 0xffffffff
push ebx
call fcn.00409cdc
push esi
call fcn.00409cdc
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.00407a64
add esp, 0x1004
ret
test esi, esi
je 0x403c29
push esi
call fcn.00409cdc
add esp, 4
mov ecx, dword [esp + 0x100c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407a64
add esp, 0x1004
ret
Function at 0x403ca0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x302c
call fcn.00407a80
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x3028], eax
mov eax, dword [esp + 0x3030]
push ebx
push ebp
mov ebp, dword [esp + 0x303c]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
je 0x403d26
push 0x421574
call fcn.00403e90
push ebp
mov ebx, eax
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.004029d0
push 0
push 0x421574
push 0
call fcn.00404d30
mov edi, eax
lea eax, [esp + 0x50]
push 0
push eax
push 0
call fcn.00404d30
mov esi, eax
push esi
push edi
call fcn.0040e615
push edi
call fcn.00409c56
push esi
call fcn.00409c56
add esp, 0x38
jmp 0x403d2a
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x1038]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x421578
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404760
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x103c]
push eax
call fcn.0040f742
mov edi, eax
push edi
call fcn.00404ba0
add esp, 0xc
test eax, eax
je 0x403df2
push edi
call fcn.00409c56
inc esi
add esp, 4
cmp esi, 5
jl 0x403d60
test ebp, ebp
je 0x403dee
push 0
push 0x421574
push 0
call fcn.00404d30
test ebx, ebx
je 0x403dd7
push 0
push ebx
push 0
mov edi, eax
call fcn.00404d30
mov esi, eax
push esi
push edi
call fcn.0040e615
push edi
call fcn.00409c56
push esi
call fcn.00409c56
push ebx
call fcn.00409c56
add esp, 0x2c
xor eax, eax
jmp 0x403e68
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409c56
add esp, 4
xor eax, eax
jmp 0x403e68
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404dc0
push edi
call fcn.00409c56
add esp, 0x10
test ebp, ebp
je 0x403e63
push 0
push 0x421574
push 0
call fcn.00404d30
test ebx, ebx
je 0x403e4c
push 0
push ebx
push 0
mov edi, eax
call fcn.00404d30
mov esi, eax
push esi
push edi
call fcn.0040e615
push edi
call fcn.00409c56
push esi
call fcn.00409c56
push ebx
call fcn.00409c56
add esp, 0x2c
jmp 0x403e63
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call fcn.00409c56
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407a64
add esp, 0x302c
ret
Function at 0x403e90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.00407a80
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push eax
push 0
call fcn.00404d30
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x403f20
push 0x2000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
lea eax, [esp + 4]
push eax
push 0
call fcn.00404dc0
add esp, 0xc
test eax, eax
je 0x403f20
cmp byte [eax], 0
je 0x403f20
push eax
call fcn.0040dd04
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.00407a64
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.00407a64
add esp, 0x4004
ret

Function at 0x404420
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404d30
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.00409c56
add esp, 4
mov eax, esi
pop edi
pop esi
ret

Function at 0x404450
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407a80
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00404d30
push 1
push 0x16
call fcn.0040f1d7
push 1
push 2
call fcn.0040f1d7
push 1
push 0xf
call fcn.0040f1d7
push 1
push 0x15
call fcn.0040f1d7
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040ac3e
push eax
call fcn.0040e32c
push eax
call fcn.0040ed3f
push 1
mov dword [esp + 0x68], eax
call fcn.0040ac3e
push eax
call fcn.0040e32c
push eax
call fcn.0040ed3f
push 2
mov dword [esp + 0x78], eax
call fcn.0040ac3e
push eax
call fcn.0040e32c
push eax
call fcn.0040ed3f
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4045a7
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00407a64
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x42163c
call fcn.00401900
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.00407a64
add esp, 0x2068
ret
Function at 0x404ba0
Capabilities:
Create directory

Disassembly:
sub esp, 0x38
mov eax, dword [0x42c008]
xor eax, esp
mov dword [esp + 0x34], eax
movups xmm0, xmmword [str.D:_A__FA___S_1_3_4_]
push esi
mov esi, dword [esp + 0x40]
lea eax, [esp + 8]
movups xmmword [esp + 0x10], xmm0
push 0
movups xmm0, xmmword [0x421810]
push eax
push 1
movups xmmword [esp + 0x2c], xmm0
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0xc
movq xmm0, qword [0x421820]
push eax
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x1c], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x404c13
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.00407a64
add esp, 0x38
ret
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x38]
neg eax
pop esi
sbb eax, eax
xor ecx, esp
neg eax
dec eax
call fcn.00407a64
add esp, 0x38
ret
Function at 0x412867
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004126e6

Function at 0x416c5f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004165cd

Function at 0x416c6a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416808
Function at 0x5a9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5a938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5d2074
push ecx
mov edi, eax
call fcn.005bd198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5a93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005bd02e
push esi
call fcn.005bcfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5ac850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5ac8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5d7720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5ac8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005bd1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5ac8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5d7720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5ac92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005be082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5ac957
mov word [eax], si
add eax, 2
push eax
call fcn.005be030
add esp, 4
jmp 0x5ac959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5ac8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5ac8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5acff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5ad080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5ad0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5d2458
push ecx
call fcn.005bd1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005bd1e1
add esp, 0x10
jmp 0x5ad0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005bd20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005bcdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005ad050
mov eax, dword [0x5d7728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x5ad13b
push esi
call fcn.005acfb0
add esp, 4
mov dword [0x5d7728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5ad14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.005acff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x5b0440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5b04b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5b048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5b0471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5b047e
add edx, ecx
cmp ebx, edx
jb 0x5b048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5b0467
xor ecx, ecx
jmp 0x5b04a2
test eax, eax
jne 0x5b0492
xor ecx, ecx
jmp 0x5b04a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005b03c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5b08f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b0921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x5b0946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x5b096e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x5b0993
push ecx
push esi
call fcn.005b04c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret