joyce8/EMBER2024-capa huggingface dataset:
Function at 0x549200
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x597f98]
mov dword [ebp - 4], eax
mov eax, dword [0x58eed0]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x54922f
call eax
cmp eax, ebx
mov dword [ebp - 0x528], eax
jne 0x5493bc
push dword [0x597f00]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 0x528], eax
je 0x5493bc
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x549267
mov byte [ebp - 0x41c], bl
push esi
lea eax, [ebp - 0x524]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x54927f
mov byte [ebp - 0x524], bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x528]
call edi
test eax, eax
jne 0x5492a0
mov byte [ebp - 0x10c], bl
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
test eax, eax
pop edi
jne 0x5492bd
mov byte [ebp - 0x214], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00549163
lea eax, [ebp - 0x52c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5492e0
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x314]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5492f4
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x213], bl
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x52c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00549163
lea eax, [ebp - 0x52c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x549329
sub eax, ecx
lea ecx, [ebp - 0x314]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x54933b
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x524]
push eax
mov byte [ebp + ecx - 0x10b], bl
call fcn.00549094
test eax, eax
pop esi
jne 0x54937c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x524]
push eax
call fcn.00549094
test eax, eax
jne 0x5493aa
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00549094
test eax, eax
jne 0x5493bc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00549094
test eax, eax
je 0x5493bc
push dword [ebp - 0x528]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x528], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x528]
pop ebx
call fcn.005498cd
leave
ret

Function at 0x5498cd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x597f98]
jne 0x5498d7
repz ret
jmp fcn.0054ab2e
Function at 0x54cc30
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5982d0]
je 0x54cc4b
inc edi
cmp edi, 0x17
jb 0x54cc3c
cmp edi, 0x17
jae 0x54cdcb
push ebp
push 3
call fcn.0054ef10
cmp eax, 1
pop ecx
je 0x54cd97
push 3
call fcn.0054ef10
test eax, eax
pop ecx
jne 0x54cc7f
cmp dword [0x597fa0], 1
je 0x54cd97
cmp ebx, 0xfc
je 0x54cdca
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x599848
push ebp
call fcn.0054eeab
add esp, 0xc
test eax, eax
je 0x54ccb5
push esi
push esi
push esi
push esi
push esi
call fcn.0054bdb5
add esp, 0x14
push 0x104
mov esi, 0x599861
push esi
push 0
mov byte [0x599965], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x54ccf9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0054eeab
add esp, 0xc
test eax, eax
je 0x54ccf9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0054bdb5
add esp, 0x14
push esi
call fcn.0054ee20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x54cd3e
push esi
call fcn.0054ee20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x599b5c
push 0x570a24
sub ecx, eax
push ecx
push eax
call fcn.0054ed6b
add esp, 0x14
test eax, eax
je 0x54cd3e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0054bdb5
add esp, 0x14
jmp 0x54cd40
xor esi, esi
push 0x587f40
push ebx
push ebp
call fcn.0054ecfa
add esp, 0xc
test eax, eax
je 0x54cd60
push esi
push esi
push esi
push esi
push esi
call fcn.0054bdb5
add esp, 0x14
push dword [edi*8 + 0x5982d4]
push ebx
push ebp
call fcn.0054ecfa
add esp, 0xc
test eax, eax
je 0x54cd82
push esi
push esi
push esi
push esi
push esi
call fcn.0054bdb5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0054eb3d
add esp, 0xc
jmp 0x54cdca
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x54cdca
cmp ebp, 0xffffffff
je 0x54cdca
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5982d4]
push dword [esi]
call fcn.0054ee20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40503c], 1
mov dword [0x405038], 1
mov dword [0x405034], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40500c], eax
mov eax, dword [0x405048]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40505c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x405044]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x403010], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401566
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0x4d
je 0x401587
mov eax, dword [ebp + 8]
add eax, 1
movzx eax, byte [eax]
cmp al, 0x5a
je 0x401587
mov eax, 0
jmp 0x4015b3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0x50
je 0x4015ae
mov eax, dword [ebp + 8]
add eax, 1
movzx eax, byte [eax]
cmp al, 0x45
je 0x4015ae
mov eax, 0
jmp 0x4015b3
mov eax, 1
pop ebp
ret

Function at 0x4019d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___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 sym.___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
lea esi, [esi]
Function at 0x401a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401b50
mov eax, dword [0x405054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401a64
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401ae7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a50
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b77
mov eax, dword [0x405054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x405054]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b57
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401ae0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x401af0
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x405054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a6e
mov eax, dword [0x405054]
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 sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40506c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405064]
sub esp, 4
test ebx, ebx
je 0x4020f5
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x4020ee
test eax, eax
jne 0x4020ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020d0
mov dword [esp], 0x40506c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402430
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402455
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402460
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402455
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4024a8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40249e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4024aa
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x402490
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401e3c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov esi, ecx
xor edi, edi
push dword [esi + 0xc]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x10]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x14]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x18]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x20]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x1c]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x30]
push esi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
ret

Function at 0x402ace
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 4], ebx
push 0x4013b0
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x402af9
cmp eax, 0x7a
jne 0x402b4f
mov eax, dword fs:[0x30]
push esi
push dword [ebp - 4]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x402b18
push 0xe
pop eax
jmp 0x402b4e
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push 0x4013b0
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x402b47
mov ecx, dword fs:[0x30]
push esi
push ebx
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
jmp 0x402b4e
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402b5c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x401370
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402bbd
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402bb8
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402bb8
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402bb4
sub eax, 1
jne 0x402bb8
mov ecx, esi
call fcn.00402a14
test eax, eax
jne 0x402bbd
xor eax, eax
jmp 0x402bbd
mov eax, 0x3f7
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x402fff
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x403580
call fcn.004034cc
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40305f
cmp eax, 0xffffffff
je 0x40305f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x403058
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x403058
cmp edx, 0x10000000
jae 0x403058
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x403055
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00403511
ret 4

Function at 0x4030d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40310e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x403106
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x403110
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4030f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4031f0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x403206
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x403221
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x403ba0
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov eax, 0x302c
call fcn.004076c0
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 0x403c26
push 0x4215e4
call fcn.00403d90
push ebp
mov ebx, eax
lea eax, [esp + 0x3c]
push 0x1000
push eax
call fcn.004029e0
push 0
push 0x4215e4
push 0
call fcn.00404a30
mov edi, eax
lea eax, [esp + 0x50]
push 0
push eax
push 0
call fcn.00404a30
mov esi, eax
push esi
push edi
call fcn.0040e1b1
push edi
call fcn.00409583
push esi
call fcn.00409583
add esp, 0x38
jmp 0x403c2a
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 0x4215e8
lea eax, [esp + 0x1c]
push 0x10
push eax
call fcn.00404660
add esp, 0x10
xor esi, esi
nop dword [eax]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x103c]
push eax
call fcn.0040f30f
mov edi, eax
push edi
call fcn.00404990
add esp, 0xc
test eax, eax
je 0x403cf2
push edi
call fcn.00409583
inc esi
add esp, 4
cmp esi, 5
jl 0x403c60
test ebp, ebp
je 0x403cee
push 0
push 0x4215e4
push 0
call fcn.00404a30
test ebx, ebx
je 0x403cd7
push 0
push ebx
push 0
mov edi, eax
call fcn.00404a30
mov esi, eax
push esi
push edi
call fcn.0040e1b1
push edi
call fcn.00409583
push esi
call fcn.00409583
push ebx
call fcn.00409583
add esp, 0x2c
xor eax, eax
jmp 0x403d68
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push esi
call fcn.00409583
add esp, 4
xor eax, eax
jmp 0x403d68
push 0x1000
push edi
push dword [esp + 0x18]
call fcn.00404ad0
push edi
call fcn.00409583
add esp, 0x10
test ebp, ebp
je 0x403d63
push 0
push 0x4215e4
push 0
call fcn.00404a30
test ebx, ebx
je 0x403d4c
push 0
push ebx
push 0
mov edi, eax
call fcn.00404a30
mov esi, eax
push esi
push edi
call fcn.0040e1b1
push edi
call fcn.00409583
push esi
call fcn.00409583
push ebx
call fcn.00409583
add esp, 0x2c
jmp 0x403d63
add esp, 0xc
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push esi
call fcn.00409583
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3038]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004076a4
add esp, 0x302c
ret
Function at 0x403d90
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.004076c0
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.00404a30
add esp, 0xc
lea ecx, [esp]
push 0x2000
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x403e20
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.00404ad0
add esp, 0xc
test eax, eax
je 0x403e20
cmp byte [eax], 0
je 0x403e20
push eax
call fcn.0040d5c2
add esp, 4
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.004076a4
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.004076a4
add esp, 0x4004
ret

Function at 0x404320
Capabilities:
Set environment variable

Disassembly:
push esi
push edi
push 0
push dword [esp + 0x10]
push 0
call fcn.00404a30
add esp, 0xc
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push edi
mov esi, eax
call fcn.00409583
add esp, 4
mov eax, esi
pop edi
pop esi
ret

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

Disassembly:
mov eax, 0x2068
call fcn.004076c0
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.00404a30
push 1
push 0x16
call fcn.0040eda4
push 1
push 2
call fcn.0040eda4
push 1
push 0xf
call fcn.0040eda4
push 1
push 0x15
call fcn.0040eda4
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.0040a4ea
push eax
call fcn.0040dbea
push eax
call fcn.0040e8db
push 1
mov dword [esp + 0x68], eax
call fcn.0040a4ea
push eax
call fcn.0040dbea
push eax
call fcn.0040e8db
push 2
mov dword [esp + 0x78], eax
call fcn.0040a4ea
push eax
call fcn.0040dbea
push eax
call fcn.0040e8db
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 0x4044a7
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.004076a4
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x4216ac
call fcn.004018c0
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.004076a4
add esp, 0x2068
ret
Function at 0x404990
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 [0x421874]
push eax
push 1
movups xmmword [esp + 0x2c], xmm0
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0xc
movq xmm0, qword [0x421884]
push eax
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x1c], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x404a03
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004076a4
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.004076a4
add esp, 0x38
ret
Function at 0x41242c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004122ab

Function at 0x416823
Capabilities:
Set environment variable

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

Function at 0x41682e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004163cc

Function at 0x407840
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..idata
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407862
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407869
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407858
mov eax, 1
add ebx, ebx
jne 0x40787b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
ja 0x407870
jne 0x40788c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407870
xor ecx, ecx
sub eax, 3
jb 0x4078a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407912
mov ebp, eax
add ebx, ebx
jne 0x4078ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4078b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4078dc
inc ecx
add ebx, ebx
jne 0x4078c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
ja 0x4078bd
jne 0x4078d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4078bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jle 0x4078fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4078ed
jmp 0x40785e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4078fc
add edi, ecx
jmp 0x40785e
pop esi
sub edi, dword [edi - 4]
push edi
mov edi, esi
mov ecx, 0x61
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40791e
cmp byte [edi], 0
jne 0x40791e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x407923
pop edi
mov eax, dword [edi]
or eax, eax
je 0x40798b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7568]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x75e0]
xchg edx, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40794b
push edx
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push edx
call dword [esi + 0x75e4]
pop edx
or eax, eax
je 0x407989
mov dword [ebx], eax
add ebx, 4
jmp 0x407968
popal
ret
lea ebx, [esi - 4]
add edi, 4
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4079bc
cmp al, 0xef
ja 0x4079af
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x407991
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x40799e
popal
jmp section..text