joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016e32c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.101447d0
mov eax, dword [0x101b31c0]
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.10172076
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1016e36e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1016e4e5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10144330
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1032c038]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1017a21e
mov ecx, dword [esi*4 + 0x1032c038]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x1016e4de
cmp eax, dword [edi + ecx + 0x24]
jne 0x1016e4de
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
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 0x1016e4de
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1017a21e
add esp, 0x14
cmp edx, esi
jl 0x1016e4de
jg 0x1016e439
cmp eax, esi
jb 0x1016e4de
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x1016e4de
jl 0x1016e45b
cmp dword [ebp - 0x1008], eax
ja 0x1016e4de
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x1016e480
cmp ebx, esi
je 0x1016e4c5
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x1016e4c5
mov al, byte [ecx]
cmp al, 0xd
jne 0x1016e4a6
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1016e4b2
cmp byte [ecx + 1], 0xa
jne 0x1016e4b2
inc ecx
jmp 0x1016e4b2
movzx eax, al
movsx eax, byte [eax + 0x101b3440]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1016e48c
cmp edx, ebx
jne 0x1016e48c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x1016e4e3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10142fe4
leave
ret
Function at 0x10173f79
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1032c038]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10173fbb
cmp byte [ebx], 0xa
jne 0x10173fbb
or byte [edi + eax + 0x28], 4
jmp 0x10173fc0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x101740c3
mov cl, byte [eax]
cmp cl, 0x1a
je 0x1017409e
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x10173fef
mov eax, dword [ebp - 8]
jmp 0x1017400f
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x1017402b
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x10174009
add eax, 2
mov cl, 0xa
jmp 0x1017400c
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x10173fd1
jmp 0x101740c3
push 0
lea eax, [ebp - 0x10]
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 0x10174099
cmp dword [ebp - 0x10], 0
je 0x10174099
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x1032c038]
test byte [eax + edi + 0x28], 0x48
je 0x10174078
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x10174068
mov byte [esi], 0xa
jmp 0x101740c2
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x1032c038]
mov byte [eax + edi + 0x2a], cl
jmp 0x101740c2
cmp byte [ebp - 1], 0xa
jne 0x10174082
cmp esi, ebx
je 0x10174063
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1017a23c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101740c3
mov byte [esi], 0xd
jmp 0x101740c2
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x1032c038]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x101740c0
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x101740c3
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101740cc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x1032c038]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10174110
push 0xa
pop esi
cmp word [ebx], si
jne 0x10174110
or byte [eax + edi + 0x28], 4
jmp 0x10174115
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x10174280
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x10174258
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x10174162
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x1017418c
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x101741ab
push 0xa
pop ebx
cmp word [edx], bx
jne 0x10174179
push ebx
add eax, 4
pop edx
jmp 0x10174181
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x10174127
jmp 0x10174280
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 0x10174253
cmp dword [ebp - 0x14], 0
je 0x10174253
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x1032c038]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x1017422f
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x101741f7
mov word [esi], ax
jmp 0x1017427d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x1032c038]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1032c038]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1032c038]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x1017427d
cmp word [ebp - 4], ax
jne 0x10174239
cmp esi, ebx
je 0x101741ef
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1017a23c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10174280
push 0xd
pop eax
jmp 0x101741ef
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x1032c038]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x1017427a
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x10174280
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10176c67
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [0x105b8018]
cmp esi, 0xffffffff
je 0x10176cb0
test esi, esi
jne 0x10176c9b
push 0x101985e0
push 0x101985d8
push str.GetTempPath2W
push 6
call fcn.101768f6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10176cb0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1018d3cc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10179f91
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x10179fab
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x10179fc2
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1017a01a
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1017f489
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1017a01a
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1017a01a
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1017a01a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x1017a014
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1017a016
xor bl, bl
mov al, bl
jmp 0x1017a01c
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x1017dea7
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 0x1017df44
push ebx
push esi
call fcn.1017de70
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.1017a52c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1017def1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1017df43
push edi
push eax
call fcn.10171fd0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1017df11
call fcn.10172030
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1017df42
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1017a52c
add esp, 0x20
test eax, eax
jne 0x1017df30
push edi
call fcn.10172030
jmp 0x1017df38
push ebx
call fcn.10172030
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 0x1017df47
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1017df58
pop esi
ret
push ebx
push edi
push esi
call fcn.1017de70
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10171fd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1017df80
push ebx
push esi
push edi
call fcn.10145160
add esp, 0xc
push 0
call fcn.10172030
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1017e6d7
Capabilities:
Set environment variable

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

Function at 0x10181556
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1017273b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101815c5
cmp esi, dword [ebp - 4]
je 0x101815c0
cmp dword [ebp + 0xc], 0
je 0x101815c0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1018159d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.101810ab
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x101815c7
xor eax, eax
inc eax
jmp 0x101815c7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10181632
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101b31c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1017273b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1017273b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x101816a9
cmp word [ecx], dx
je 0x101816a9
mov eax, dword [0x10199154]
push edi
dec eax
push eax
push 0x10199040
call fcn.101815cb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1018171c
cmp word [eax], dx
je 0x1018171c
mov eax, dword [edi]
test eax, eax
je 0x101816cd
cmp word [eax], dx
je 0x101816cd
lea eax, [ebp - 0x10]
push eax
call fcn.10180fb1
jmp 0x101816d6
lea eax, [ebp - 0x10]
push eax
call fcn.1018104c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10181746
mov eax, dword [0x1019903c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10198d30
call fcn.101815cb
add esp, 0xc
test al, al
je 0x10181746
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10181711
cmp word [eax], di
je 0x10181711
lea eax, [ebp - 0x10]
push eax
call fcn.10180fb1
pop ecx
jmp 0x10181748
lea eax, [ebp - 0x10]
push eax
call fcn.1018104c
jmp 0x1018170e
mov eax, dword [edi]
test eax, eax
je 0x10181733
cmp word [eax], dx
je 0x10181733
lea eax, [ebp - 0x10]
push eax
call fcn.10180f66
pop ecx
jmp 0x10181746
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10181811
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10181450
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10181811
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10181811
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10181811
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1018179e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10176d7d
test ebx, ebx
je 0x1018180c
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10176d7d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10181811
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10181811
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1015bcb3
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10181813
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10142fe4
leave
ret
Function at 0x101834d1
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1018344d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10183640
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10183640
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x101835f5
jg 0x1018352d
test eax, eax
je 0x101835eb
push 1
push 0x1000
call fcn.10176580
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10183550
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x101835e2
push 0x8000
push ebx
call fcn.1018337c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10183579
jg 0x10183574
cmp ecx, 0x1000
jb 0x10183579
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.101799df
add esp, 0x10
cmp eax, 0xffffffff
je 0x101835be
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 0x10183574
jl 0x101835a5
test ecx, ecx
jne 0x10183566
push dword [ebp - 0xc]
push ebx
call fcn.1018337c
push esi
call fcn.10172030
add esp, 0xc
xor ebx, ebx
jmp 0x1018364e
cmp byte [edi + 0x24], 0
je 0x101835d5
cmp dword [edi + 0x20], 5
jne 0x101835d5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x101835e0
mov ebx, dword [edi + 0x18]
jmp 0x101835e2
xor ebx, ebx
push esi
call fcn.10172030
pop ecx
jmp 0x1018364e
test ecx, ecx
jg 0x101835b7
jl 0x101835f5
test eax, eax
jae 0x101835b7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1017a23c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10183615
cmp byte [edi + 0x1c], 0
je 0x101835b7
jmp 0x10183646
push ebx
call fcn.1017f489
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x101835b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1018364e
cmp byte [edi + 0x1c], 0
je 0x1018364b
mov ebx, dword [edi + 0x18]
jmp 0x1018364e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1017a23c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10185f00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10185f2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10185f2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1001db77
Capabilities:
Set environment variable

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

Function at 0x6842a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22d000]
push edi
jmp 0x6842ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6842c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6842b0
mov eax, 1
add ebx, ebx
jne 0x6842d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6842e4
jne 0x684303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x684303
dec eax
add ebx, ebx
jne 0x6842f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6842c8
add ebx, ebx
jne 0x6842ff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x684355
xor ecx, ecx
sub eax, 3
jb 0x68431b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x68438a
sar eax, 1
mov ebp, eax
jmp 0x684326
add ebx, ebx
jne 0x684326
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6842f4
inc ecx
add ebx, ebx
jne 0x684334
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6842f4
add ebx, ebx
jne 0x684341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x684336
jne 0x684352
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x684336
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x684374
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x684366
jmp 0x6842b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x684374
add edi, ecx
jmp 0x6842b6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x684392
cmp byte [edi], 0x11
jne 0x684392
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 al, bl
loop 0x684397
lea edi, [esi + 0x27d000]
mov eax, dword [edi]
or eax, eax
je 0x68440f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x42f85c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x42f9d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6843c4
mov ecx, edi
jns 0x6843f3
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 + 0x42f9dc]
or eax, eax
je 0x684409
mov dword [ebx], eax
add ebx, 4
jmp 0x6843e1
call dword [esi + 0x42f9ec]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x684440
cmp al, 0xef
ja 0x684433
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x684415
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x684422
mov ebp, dword [esi + 0x42f9e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x684474
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x7a6e9c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7a6ea6
pushal
call 0x7a6eac
pop ebp
sub ebp, 0x10
sub ebp, 0x3a6e9c
mov al, byte [esp + 0x28]
add byte [eax], al
add byte [ecx + 0x3a6e9ced], al
add byte [edx + 0x282484], cl
add byte [eax], al
cmp al, 1
je 0x7a6ed0
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x7a6ed9
mov eax, 0x3a6e9c
add eax, ebp
add eax, 0x63
mov ecx, 0x5d9
lds eax, [ecx + 0x63c0]
add byte [ecx + 0x5d9], bh
mov edx, 0x34490c93
xor byte [eax], dl
inc eax
dec ecx
jne 0x7a6ef0
jmp 0x7a6f03
sbb byte [esi + 0x18], bl
sbb ch, byte [edi + 0x12939393]
push edx
imul edx, dword [ebx + 0x5e909393], 0x2b
xchg edi, eax
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
sub dword [ebx + 0x64939393], edi
jno 0x7a6eb0
pop ebx
sbb byte [edx], dl
lahf
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
nop
push esi
push ds
div dword [edi - 0x4868e591]
push ds
xchg edi, eax
mov bh, 0x1e
div dword [edi - 0x4868e591]
sti
cmpsd dword [esi], dword es:[edi]
out dx, eax
popfd
xchg ebx, eax
sti
cmc
popal
mov eax, 0xb7bf9293
sti
mov bh, 0xfb
inc edi
jge 0x7a6edf
imul edi, dword [ebx - 0x6a], 0x7a939393
mov ebx, 0xc6939393
sbb byte [edi + 0x18], bh
push ss
wait
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
sbb byte [esi], al
lahf
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
sbb byte [esi], bl
adc dword [ebx + 0x7a529393], 0xffffff91
mov byte [0x97511091], al
ficomp dword [esi + edx + 0x6c6c6c67]
into
push ecx
lahf
xchg ebx, eax
sbb byte [edi], bl
mov bh, 0x97
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
sti
cmpsd dword [esi], dword es:[edi]
out dx, eax
popfd
xchg ebx, eax
sti
cmc
popal
mov eax, 0xb7bf9293
push ds
div dword [edi - 0x4860e591]
jnp 0x7a6f2e
xchg ebx, eax
xchg ebx, eax
xchg ebx, eax
jp 0x7a6f43
xchg ecx, eax
xchg ebx, eax
xchg ebx, eax
invalid