joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402050
Capabilities:
Check if file exists
Create http request
Get file attributes
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ea9d
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x41c], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x438]
call fcn.00403c40
push 0
push 0
push 0
push 0
push str.RookIE_1.0
mov byte [ebp - 0x415], 1
mov dword [ebp - 0x414], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x4021de
cmp dword [ebp - 0x424], 7
lea ecx, [ebp - 0x438]
push 0
cmova ecx, dword [ebp - 0x438]
push 0x4000000
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x4021a0
push 0x437d7c
push esi
call fcn.00417330
mov esi, eax
add esp, 8
test esi, esi
je 0x40217a
cmp dword [ebp - 0x414], 0
jbe 0x402160
nop dword [eax + eax]
lea eax, [ebp - 0x414]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x402160
push esi
push eax
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.00417190
add esp, 0x10
cmp dword [ebp - 0x414], 0
ja 0x402120
push esi
call fcn.0041429b
mov esi, dword [ebp - 0x41c]
add esp, 4
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x4021d6
mov esi, dword [ebp - 0x41c]
push esi
push str.Failed_to_open_file_for_writing:__s_n
call fcn.00401170
add esp, 8
mov byte [ebp - 0x415], 0
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
jmp 0x4021d6
movups xmm0, xmmword [ebp - 0x438]
sub esp, 0x18
mov eax, esp
push str.Failed_to_open_URL:__s_n
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x428]
movq qword [eax + 0x10], xmm0
call fcn.00401170
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x1c
mov byte [ebp - 0x415], 0
push dword [ebp - 0x420]
call edi
mov ecx, dword [ebp - 0x424]
cmp ecx, 7
jbe 0x40221a
mov edx, dword [ebp - 0x438]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402210
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40228b
push ecx
push edx
call fcn.0040c015
add esp, 8
cmp byte [ebp - 0x415], 0
je 0x402236
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402236
mov esi, 1
jmp 0x402238
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 7
jbe 0x40226e
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402264
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402290
push ecx
push edx
call fcn.0040c015
add esp, 8
mov eax, esi
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.0040bfd2
mov esp, ebp
pop ebp
ret
call fcn.0041762b
call fcn.0041762b
int3
Function at 0x402a40
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42eba2
mov eax, dword fs:[0]
push eax
mov eax, 0x27bc
call fcn.0040cdf0
mov eax, dword [0x43d040]
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 dword [ebp - 0x27c4], edi
mov dword [ebp - 0x27bc], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x27c8], edi
mov dword [ebp - 0x27c0], 0
push 4
movups xmmword [edi], xmm0
push str.fail
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00404f60
xorps xmm0, xmm0
mov dword [ebp - 0x27c0], 1
movups xmmword [ebp - 0x27b8], xmm0
mov dword [ebp - 0x27a8], 0
mov dword [ebp - 0x27a4], 0xf
mov byte [ebp - 0x27b8], 0
push 0x437e1c
push 0x437e28
mov dword [ebp - 4], 1
call fcn.00416a91
mov esi, eax
add esp, 8
mov dword [ebp - 0x27bc], esi
test esi, esi
je 0x402b89
push esi
call fcn.004173ca
add esp, 4
test eax, eax
jne 0x402b80
nop word [eax + eax]
push esi
lea eax, [ebp - 0x90]
push 0x80
push eax
call fcn.00416e95
add esp, 0xc
test eax, eax
je 0x402b6d
lea eax, [ebp - 0x90]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b41
lea edi, [ebp - 0x27a0]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402b51
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x27bc]
push esi
call fcn.004173ca
add esp, 4
test eax, eax
je 0x402b20
mov edi, dword [ebp - 0x27c4]
push esi
call fcn.004169ba
add esp, 4
lea ecx, [ebp - 0x27a0]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402b92
sub ecx, edx
lea eax, [ebp - 0x27a0]
push ecx
push eax
lea ecx, [ebp - 0x27b8]
call fcn.00404120
push ecx
push str.winload.efi
lea ecx, [ebp - 0x27b8]
call fcn.00403d40
cmp eax, 0xffffffff
je 0x402bcd
push 3
push 0x437e44
jmp 0x402bea
push ecx
push str.winload.exe
lea ecx, [ebp - 0x27b8]
call fcn.00403d40
cmp eax, 0xffffffff
je 0x402bf1
push 3
push 0x437e54
mov ecx, edi
call fcn.00404120
mov ecx, dword [ebp - 0x27a4]
cmp ecx, 0xf
jbe 0x402c27
mov edx, dword [ebp - 0x27b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402c1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c44
push ecx
push edx
call fcn.0040c015
add esp, 8
mov eax, edi
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.0040bfd2
mov esp, ebp
pop ebp
ret
call fcn.0041762b
int3
Function at 0x40aeb8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40aed9
jl 0x40aed0
test edi, edi
jne 0x40aed9
xor eax, eax
xor edx, edx
jmp 0x40af9a
cmp dword [ebx + 0x38], 0
je 0x40aeee
push eax
push edi
push dword [ebp + 8]
call fcn.0040afa0
jmp 0x40af9a
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40af35
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40af35
cmp eax, edi
jb 0x40af0f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040d550
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40af3b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40af8f
mov ecx, ebx
call fcn.0040a74f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40af7a
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00418294
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40af8f
jmp 0x40af4d
test edx, edx
je 0x40af8f
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00418294
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40cc7e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ccbd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ccbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ccbd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ccbd
cmp dword [ecx + 0x74], 0xe
jbe 0x40ccbd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41d3a3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x434058
push 0x434050
push str.FlsAlloc
push 0x1e
call fcn.0041d210
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d3d7
push dword [ebp + 8]
mov ecx, esi
call dword [0x43018c]
call esi
jmp 0x41d3dd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41d421
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x434068
push 0x434060
push str.FlsGetValue
push 0x20
call fcn.0041d210
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d458
push dword [ebp + 8]
mov ecx, esi
call dword [0x43018c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x421c7f
Capabilities:
Read file on windows

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

Function at 0x422079
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040cdf0
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041d9d6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4220bb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x422217
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042e360
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x43eb00]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00422dfe
mov ecx, dword [esi*4 + 0x43eb00]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422210
cmp eax, dword [edi + ecx + 0x24]
jne 0x422210
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422210
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422dfe
add esp, 0x14
test edx, edx
jl 0x422210
jg 0x422186
test eax, eax
jb 0x422210
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422210
jl 0x4221a0
cmp dword [ebp - 0x1008], eax
ja 0x422210
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4221be
test ebx, ebx
je 0x4221f7
cmp ecx, edi
jae 0x4221f7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4221d8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4221e4
cmp byte [ecx + 1], 0xa
jne 0x4221e4
inc ecx
jmp 0x4221e4
movzx eax, al
movsx eax, byte [eax + 0x43d308]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4221be
cmp edx, ebx
jne 0x4221be
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422215
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040bfd2
leave
ret
Function at 0x4222b6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x43eb00]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4222f6
cmp byte [ebx], 0xa
jne 0x4222f6
or byte [eax + edi + 0x28], 4
jmp 0x4222fb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4223f9
mov al, byte [edx]
cmp al, 0x1a
je 0x4223db
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42232a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42234f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x422359
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42230c
jmp 0x4223f9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4223d6
cmp dword [ebp - 0xc], 0
je 0x4223d6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43eb00]
test byte [eax + edi + 0x28], 0x48
je 0x4223b0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42239b
mov byte [esi], dl
jmp 0x4223ac
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43eb00]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4223f9
cmp byte [ebp - 1], 0xa
jne 0x4223bf
cmp esi, ebx
jne 0x4223bf
mov byte [esi], 0xa
jmp 0x4223f8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422e1c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4223f9
mov byte [esi], 0xd
jmp 0x4223f8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43eb00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4223f5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4223f9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422402
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43eb00]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x422445
cmp word [esi], dx
jne 0x422445
or byte [edi + eax + 0x28], 4
jmp 0x42244a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x422583
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x422563
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42248c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4224c2
cmp eax, edx
jae 0x4224ce
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x422464
jmp 0x422583
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42255f
cmp dword [ebp - 0x14], 0
je 0x42255f
mov eax, dword [ebx*4 + 0x43eb00]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x422537
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x42257d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43eb00]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x43eb00]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43eb00]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x422580
pop ebx
cmp word [ebp - 4], bx
jne 0x422548
cmp esi, dword [ebp + 0xc]
jne 0x422548
mov word [esi], bx
jmp 0x422580
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00422e1c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x422583
push 0xd
jmp 0x42257c
mov ecx, dword [ebx*4 + 0x43eb00]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42257a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422583
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425964
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x425a01
push ebx
push esi
call fcn.0042592d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00424674
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4259ae
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425a00
push edi
push eax
call fcn.0041dd97
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4259ce
call fcn.0041cf35
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4259ff
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00424674
add esp, 0x20
test eax, eax
jne 0x4259ed
push edi
call fcn.0041cf35
jmp 0x4259f5
push ebx
call fcn.0041cf35
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42cf9f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042cf1b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42d117
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42d117
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42d0c6
jg 0x42cff8
test eax, eax
je 0x42d0bc
push 1
push 0x1000
call fcn.0041c6b2
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42d01e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42d0b3
push 0x8000
push ebx
call fcn.0041a1e7
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42d04a
jg 0x42d045
cmp ecx, 0x1000
jb 0x42d04a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004210db
add esp, 0x10
cmp eax, 0xffffffff
je 0x42d08f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42d045
jl 0x42d076
test ecx, ecx
jne 0x42d037
push dword [ebp - 0xc]
push ebx
call fcn.0041a1e7
push esi
call fcn.0041cf35
add esp, 0xc
xor edi, edi
jmp 0x42d128
cmp byte [edi + 0x24], 0
je 0x42d0a6
cmp dword [edi + 0x20], 5
jne 0x42d0a6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42d0b1
mov edi, dword [edi + 0x18]
jmp 0x42d0b3
xor edi, edi
push esi
call fcn.0041cf35
pop ecx
jmp 0x42d128
test ecx, ecx
jg 0x42d088
jl 0x42d0c6
test eax, eax
jae 0x42d088
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422e1c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42d0e9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42d088
jmp 0x42d120
push ebx
call fcn.00426187
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42d088
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42d128
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42d125
mov edi, dword [edi + 0x18]
jmp 0x42d128
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00422e1c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e26d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e26d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x9ac8a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3e8000]
push edi
jmp 0x9ac8ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9ac8c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9ac8b0
mov eax, 1
add ebx, ebx
jne 0x9ac8d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9ac8e4
jne 0x9ac903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9ac903
dec eax
add ebx, ebx
jne 0x9ac8f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9ac8c8
add ebx, ebx
jne 0x9ac8ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9ac955
xor ecx, ecx
sub eax, 3
jb 0x9ac91b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9ac98a
sar eax, 1
mov ebp, eax
jmp 0x9ac926
add ebx, ebx
jne 0x9ac926
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9ac8f4
inc ecx
add ebx, ebx
jne 0x9ac934
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9ac8f4
add ebx, ebx
jne 0x9ac941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9ac936
jne 0x9ac952
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9ac936
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9ac974
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9ac966
jmp 0x9ac8b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9ac974
add edi, ecx
jmp 0x9ac8b6
pop esi
mov edi, esi
mov ecx, 0x821a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9ac992
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9ac997
lea edi, [esi + 0x5a9000]
mov eax, dword [edi]
or eax, eax
je 0x9aca08
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5b5994]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5b59d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9ac9bd
mov ecx, edi
jns 0x9ac9ec
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5b59d8]
or eax, eax
je 0x9aca02
mov dword [ebx], eax
add ebx, 4
jmp 0x9ac9da
call dword [esi + 0x5b59d4]
mov ebp, dword [esi + 0x5b59dc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9aca3c
sub esp, 0xffffff80
jmp 0x4113a4
Function at 0x40c0a4
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x7c
mov dword [esp + 0x30], 0x40
mov dword [esp], 0x436972
call sub.KERNEL32.DLL_GetModuleHandleW
sub esp, 4
mov dword [esp + 4], str.GlobalMemoryStatusEx
mov dword [esp], eax
call sub.KERNEL32.DLL_GetProcAddress
sub esp, 8
mov edx, eax
test eax, eax
je 0x40c0f1
lea eax, [esp + 0x30]
mov dword [esp], eax
call edx
sub esp, 4
test eax, eax
je 0x40c0f1
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
jmp 0x40c111
mov dword [esp + 0x10], 0x20
lea eax, [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
sub esp, 4
mov eax, dword [esp + 0x18]
mov edx, 0
add esp, 0x7c
ret

Function at 0x40c116
Capabilities:
Get memory capacity

Disassembly:
push ebx
sub esp, 0x48
mov dword [esp + 0x20], 0x20
lea eax, [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
sub esp, 4
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.0040bd14
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
cmp ebx, eax
jbe 0x40c14b
mov ebx, eax
sub ebx, 0x500000
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.0040bee2
mov eax, ebx
add esp, 0x48
pop ebx
ret

Function at 0x40c164
Capabilities:
Get memory capacity

Disassembly:
push ebx
sub esp, 0x48
mov dword [esp + 0x20], 0x20
lea eax, [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
sub esp, 4
lea ebx, [esp + 0x10]
mov dword [esp], ebx
call fcn.0040bd14
mov dword [esp], ebx
call fcn.0040bd68
cmp eax, dword [esp + 0x34]
jae 0x40c1ab
mov dword [esp], ebx
call fcn.0040bd68
mov ebx, eax
sub ebx, 0x500000
jmp 0x40c1b5
mov ebx, dword [esp + 0x34]
sub ebx, 0x500000
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.0040bee2
mov eax, ebx
add esp, 0x48
pop ebx
ret

Function at 0x40c1e2
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x4c
lea eax, [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetSystemInfo
sub esp, 4
mov eax, dword [esp + 0x24]
add esp, 0x4c
ret