joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466b8a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x48a310]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x466bbb
xor eax, eax
jmp 0x466d44
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x48c360]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x466bf7
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0046f5b4
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x466cd2
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x466d10
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x466c5b
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x466c4c
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x466c2c
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x466c9b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x466ca4
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x466c1d
jmp 0x466ca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x466d3f
cmp dword [ebp - 0x6c], edi
je 0x466d10
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x466d05
call fcn.00466b05
mov dword [eax], 9
call fcn.00466b0e
mov dword [eax], esi
jmp 0x466d3a
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x466cfa
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x466ca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x466ca6
push dword [ebp - 0x6c]
call fcn.00466b17
pop ecx
jmp 0x466d3a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x466d28
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x466d28
xor eax, eax
jmp 0x466d42
call fcn.00466b05
mov dword [eax], 0x1c
call fcn.00466b0e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x466d42
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0046f32b
add ebp, 0x3a0
leave
ret
Function at 0x46cb97
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46cbc5
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x46cbcc
cmp ebx, dword [eax + 4]
jae 0x46cbcc
xor eax, eax
jmp 0x46cdbc
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x46cbdd
xor eax, eax
inc eax
jmp 0x46cdbb
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x46cbf3
cmp ecx, edx
jae 0x46cd38
cmp dword [eax + 4], 0
je 0x46cbfc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46cbe4
cmp dword [ebp + 8], 0
je 0x46cc1e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x46cd38
cmp eax, esi
jae 0x46cd38
mov eax, dword [0x48bd60]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46cc43
cmp dword [esi*4 + 0x48bd68], edi
je 0x46cd3c
inc esi
cmp esi, eax
jl 0x46cc31
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46cdb8
cmp dword [ebp - 8], 0x1000000
jne 0x46cdb8
test byte [ebp - 0xc], 0xcc
je 0x46ccc1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x46cdb8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46cdb8
cmp word [eax + 0x18], 0x10b
jne 0x46cdb8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x46cdb8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x46ccc1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x46ccc1
test byte [ecx + 0x27], 0x80
jne 0x46cd38
push 1
push 0x48bda8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x46cbd5
mov ecx, dword [0x48bd60]
test ecx, ecx
mov edx, ecx
jle 0x46ccf5
lea eax, [ecx*4 + 0x48bd64]
cmp dword [eax], edi
je 0x46ccf5
dec edx
sub eax, 4
test edx, edx
jg 0x46cce9
test edx, edx
jne 0x46cd26
push 0xf
pop ebx
cmp ecx, ebx
jg 0x46cd02
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x46cd1a
lea eax, [edx*4 + 0x48bd68]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x46cd08
cmp ecx, 0x10
jge 0x46cd26
inc ecx
mov dword [0x48bd60], ecx
push 0
push 0x48bda8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x46cbd5
xor eax, eax
jmp 0x46cdbb
test esi, esi
jle 0x46cbd5
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x48bda8
call ebx
test eax, eax
jne 0x46cbd5
cmp dword [esi*4 + 0x48bd68], edi
je 0x46cd92
mov eax, dword [0x48bd60]
lea esi, [eax - 1]
test esi, esi
jl 0x46cd80
cmp dword [esi*4 + 0x48bd68], edi
je 0x46cd7c
dec esi
jns 0x46cd70
test esi, esi
jge 0x46cd90
cmp eax, 0x10
jge 0x46cd8b
inc eax
mov dword [0x48bd60], eax
lea esi, [eax - 1]
jmp 0x46cd92
je 0x46cdaa
xor ecx, ecx
test esi, esi
jl 0x46cdaa
lea eax, [ecx*4 + 0x48bd68]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x46cd98
push 0
push 0x48bda8
call ebx
jmp 0x46cbd5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46ce21
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00462ba0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46cebc
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x48bac4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x46cebc
cmp eax, 1
je 0x46cedd
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46cebc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x46ce89
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x46ceb8
xor eax, eax
inc eax
jmp 0x46cefc
cmp edi, eax
jae 0x46cec0
xor eax, eax
jmp 0x46cefc
cmp eax, esi
jae 0x46cec7
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x48bac4]
jmp 0x46cee0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46e6f8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x48a310]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x48a320]
je 0x46e72d
inc eax
cmp eax, 0x13
jb 0x46e71e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x48a320]
jne 0x46e853
mov eax, dword [0x48babc]
cmp eax, 1
je 0x46e82b
cmp eax, edx
jne 0x46e75d
cmp dword [0x489b5c], 1
je 0x46e82b
cmp ecx, 0xfc
je 0x46e853
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46e793
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00461940
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004617f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46e7c7
mov eax, edi
push eax
call fcn.004617f0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x483ea8
push edi
call fcn.00470c40
add esp, 0x10
push edi
call fcn.004617f0
push dword [esi + 0x48a324]
mov ebx, eax
call fcn.004617f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00462ba0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00461940
push edi
push ebx
call fcn.00461950
push 0x483e88
push ebx
call fcn.00461950
push dword [esi + 0x48a324]
push ebx
call fcn.00461950
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00472454
add esp, 0x2c
jmp 0x46e853
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x48a324]
push dword [esi]
call fcn.004617f0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0046f32b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x46ed1b
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x48bfcc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x46ed64
call ebp
mov esi, eax
cmp esi, ebx
je 0x46ed4a
mov dword [0x48bfcc], 1
jmp 0x46ed69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x46ed5f
push 2
pop eax
mov dword [0x48bfcc], eax
jmp 0x46ed64
mov eax, dword [0x48bfcc]
cmp eax, 1
jne 0x46edc1
cmp esi, ebx
jne 0x46ed7c
call ebp
mov esi, eax
cmp esi, ebx
jne 0x46ed7c
xor eax, eax
jmp 0x46ee68
cmp word [esi], bx
mov eax, esi
je 0x46ed91
inc eax
inc eax
cmp word [eax], bx
jne 0x46ed83
inc eax
inc eax
cmp word [eax], bx
jne 0x46ed83
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.004644d3
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x46edb4
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x46ee68
push ebp
push esi
push edi
call fcn.00461a50
add esp, 0xc
jmp 0x46eda6
cmp eax, 2
je 0x46edca
cmp eax, ebx
jne 0x46ed75
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x46ed75
cmp byte [ebp], bl
mov esi, ebp
je 0x46ee00
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x46ed75
push esi
add edi, eax
call fcn.004617f0
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x46eddd
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.004644d3
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x46ee79
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x46ee5a
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x46ee6f
push edi
call fcn.004617f0
push esi
lea edi, [edi + eax + 1]
call fcn.0046176a
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x46ee20
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.004643b1
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x46ed75
Function at 0x46ee85
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x48bfd0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x46eec5
call esi
test eax, eax
je 0x46eeaa
mov dword [0x48bfd0], 1
jmp 0x46eeca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x46eec1
mov dword [0x48bfd0], 2
jmp 0x46eed3
xor eax, eax
jmp 0x46ef21
cmp eax, 1
jne 0x46eece
call esi
jmp 0x46ef21
cmp eax, 2
jne 0x46eec1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x46ef19
lea eax, [esi + esi]
push eax
call fcn.004644d3
mov ebp, eax
test ebp, ebp
pop ecx
je 0x46ef19
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x46ef1d
push ebp
call fcn.004643b1
pop ecx
xor eax, eax
jmp 0x46ef1f
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x472454
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x48c05c], ebx
push esi
push edi
jne 0x4724d4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47250f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x485954
push edi
call esi
test eax, eax
mov dword [0x48c05c], eax
je 0x47250f
push 0x485944
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x48c060], eax
call esi
cmp dword [0x48bac4], 2
mov dword [0x48c064], eax
jne 0x4724d4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x48c06c], eax
je 0x4724d4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x48c068], eax
mov eax, dword [0x48c068]
test eax, eax
je 0x472519
call eax
test eax, eax
je 0x472500
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x48c06c]
test eax, eax
je 0x472500
test byte [ebp - 8], 1
jne 0x472519
cmp dword [0x48bad0], 4
jb 0x472513
or byte [ebp + 0x12], 0x20
jmp 0x472538
xor eax, eax
jmp 0x472548
or byte [ebp + 0x12], 4
jmp 0x472538
mov eax, dword [0x48c060]
test eax, eax
je 0x472538
call eax
mov ebx, eax
test ebx, ebx
je 0x472538
mov eax, dword [0x48c064]
test eax, eax
je 0x472538
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x48c05c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47396c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x473b40
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x48c360]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x473b40
test cl, 0x48
je 0x4739d7
cmp byte [eax + 5], 0xa
je 0x4739d7
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x473a29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x473a11
call fcn.00466b05
mov dword [eax], 9
call fcn.00466b0e
mov dword [eax], esi
jmp 0x473a21
cmp eax, 0x6d
je 0x473b40
push eax
call fcn.00466b17
pop ecx
or eax, 0xffffffff
jmp 0x473b42
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x473b3b
test eax, eax
je 0x473a50
cmp byte [ebx], 0xa
jne 0x473a50
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x473a59
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x473b35
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x473b25
cmp al, 0xd
je 0x473a8b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x473b17
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x473aa5
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x473aa0
add dword [ebp + 0x10], 2
jmp 0x473af9
mov dword [ebp + 0x10], eax
jmp 0x473b13
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x473acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x473b13
cmp dword [ebp - 0xc], 0
je 0x473b13
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x473aee
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x473af9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x473b16
cmp ebx, dword [ebp + 0xc]
jne 0x473afe
cmp byte [ebp - 1], 0xa
jne 0x473afe
mov byte [ebx], 0xa
jmp 0x473b16
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046efac
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x473b17
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x473a6f
jmp 0x473b35
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x473b35
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x473b42
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47435f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x474378
or eax, 0xffffffff
jmp 0x4743d9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4743d5
push 0x3d
push esi
call fcn.0047455f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4743d5
cmp esi, eax
je 0x4743d5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x48bae4]
sete cl
cmp eax, dword [0x48bae8]
mov dword [ebp - 8], ecx
jne 0x4743bb
mov edi, eax
call fcn.004742fe
mov dword [0x48bae4], eax
cmp eax, ebx
jne 0x474414
cmp dword [ebp + 0xc], ebx
je 0x4743dd
cmp dword [0x48baec], ebx
je 0x4743dd
call fcn.004738dc
test eax, eax
je 0x474414
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4743e6
xor eax, eax
jmp 0x4743d8
push 4
call fcn.004644d3
cmp eax, ebx
pop ecx
mov dword [0x48bae4], eax
je 0x4743d5
mov dword [eax], ebx
cmp dword [0x48baec], ebx
jne 0x474414
push 4
call fcn.004644d3
cmp eax, ebx
pop ecx
mov dword [0x48baec], eax
je 0x4743d5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x48bae4]
call fcn.004742b1
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x474475
cmp dword [esi], ebx
je 0x474475
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004643b1
cmp dword [ebp - 8], ebx
pop ecx
jne 0x474458
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4744b6
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x47444f
mov eax, edi
shl eax, 2
push eax
push dword [0x48bae4]
call fcn.00464c4e
cmp eax, ebx
pop ecx
pop ecx
je 0x4744b6
jmp 0x4744b1
cmp dword [ebp - 8], ebx
jne 0x474521
cmp edi, ebx
jge 0x474484
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x48bae4]
call fcn.00464c4e
cmp eax, ebx
pop ecx
pop ecx
je 0x4743d5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x48bae4], eax
cmp dword [ebp + 0xc], ebx
je 0x47450b
push dword [ebp - 4]
call fcn.004617f0
inc eax
inc eax
push eax
call fcn.004644d3
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x47450b
push dword [ebp - 4]
push esi
call fcn.00461940
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x474504
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004643b1
pop ecx
cmp dword [ebp - 8], ebx
je 0x474519
push dword [ebp - 4]
call fcn.004643b1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4743d8
push dword [ebp - 4]
call fcn.004643b1
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4743e2
Function at 0x4030a0
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 4], 0x59386f
mov dword [esp], eax
call fcn.00444950
test eax, eax
mov esi, eax
je 0x403109
mov ecx, dword [0x4ad044]
test ecx, ecx
je 0x4030df
movzx ebx, byte [0x4ad040]
xor edx, edx
xor byte [edx + 0x4ad080], bl
add edx, 1
cmp edx, ecx
jne 0x4030d2
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], 0x4ad080
call fcn.00444940
mov dword [esp + 0x20], esi
add esp, 0x14
pop ebx
pop esi
jmp fcn.00444958
mov dword [esp], 1
call fcn.00444930
lea esi, [esi]
lea edi, [edi]
Function at 0x4384d0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x438508
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4384fe
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x43850a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4384f0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x439d50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00444908
mov esi, eax
lea eax, [eax + 0x41]
and eax, 0xfffffff0
call fcn.004387e0
mov edx, 0x326d
sub esp, eax
lea eax, [esp + 0x1b]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea edi, [esp + 0xc]
mov word [esp + 0x18], dx
mov dword [esp + 0xc], 0x2d636367
mov dword [esp], eax
mov dword [esp + 0x10], 0x656d6873
mov dword [esp + 0x14], 0x64742d6d
mov byte [esp + 0x1a], 0x2d
call fcn.00444910
lea eax, [esi + 0x10]
lea edx, [edi + eax]
mov dword [ebp - 0x20], eax
mov dword [edx], 0x61616161
mov dword [edx + 4], 0x61616161
mov dword [edx + 8], 0x61616161
mov dword [edx + 0xc], 0x61616161
mov dword [edx + 0x10], 0x61616161
mov dword [edx + 0x14], 0x61616161
mov dword [edx + 0x18], 0x61616161
mov dword [edx + 0x1c], 0x61616161
mov dword [ebp - 0x24], edx
mov byte [esp + esi + 0x3c], 0
mov byte [esp + esi + 0x1b], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [0x5a547c]
sub esp, 0xc
mov byte [edi + esi + 0xf], 0x2d
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [0x5a5574]
sub esp, 8
test eax, eax
mov edx, dword [ebp - 0x24]
je 0x439e3f
int3
mov dword [ebp - 0x24], edx
mov dword [esp], edi
call dword [0x5a5498]
sub esp, 4
test ax, ax
mov edx, dword [ebp - 0x24]
jne 0x439ee3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call fcn.00444900
mov edx, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x20
bt ebx, eax
jae 0x439e7a
mov byte [edx], 0x41
add edx, 1
sub eax, 1
jne 0x439e72
mov dword [esp], edi
call dword [0x5a5470]
sub esp, 4
test ax, ax
je 0x439ee0
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.00439cd0
cmp eax, ebx
mov esi, eax
je 0x439efa
mov dword [esp], ebx
call fcn.00444968
mov edi, dword [ebp - 0x1c]
mov dword [esp], edi
call dword [0x5a550c]
sub esp, 4
mov dword [esp], edi
call dword [0x5a5474]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
int3
lea ecx, [esi + 0x31]
mov esi, dword [ebp - 0x20]
movzx eax, ax
mov edx, edi
mov dword [esp], esi
call fcn.00439cd0
mov esi, eax
jmp 0x439eb4
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00444a78
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x439eb4
mov dword [esp], ebx
call dword [ebp + 0x10]
jmp 0x439eb4