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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.100b5b50
mov eax, dword [0x10290680]
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.10201013
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x102057f5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1020596c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100db5d0
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 + 0x1029a210]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1020fddc
mov ecx, dword [esi*4 + 0x1029a210]
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 0x10205965
cmp eax, dword [edi + ecx + 0x24]
jne 0x10205965
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 0x10205965
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1020fddc
add esp, 0x14
cmp edx, esi
jl 0x10205965
jg 0x102058c0
cmp eax, esi
jb 0x10205965
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x10205965
jl 0x102058e2
cmp dword [ebp - 0x1008], eax
ja 0x10205965
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 0x10205907
cmp ebx, esi
je 0x1020594c
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x1020594c
mov al, byte [ecx]
cmp al, 0xd
jne 0x1020592d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10205939
cmp byte [ecx + 1], 0xa
jne 0x10205939
inc ecx
jmp 0x10205939
movzx eax, al
movsx eax, byte [eax + 0x10292050]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10205913
cmp edx, ebx
jne 0x10205913
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x1020596a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100b5a82
leave
ret

Function at 0x102090c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x102090ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x102090ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10210036
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 0x102100d3
push ebx
push esi
call fcn.10210124
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.102094e3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10210080
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x102100d2
push edi
push eax
call fcn.102093d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x102100a0
call fcn.10209380
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x102100d1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.102094e3
add esp, 0x20
test eax, eax
jne 0x102100bf
push edi
call fcn.10209380
jmp 0x102100c7
push ebx
call fcn.10209380
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 0x102100d6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x102100e7
pop esi
ret
push ebx
push edi
push esi
call fcn.10210124
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.102093d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1021010f
push ebx
push esi
push edi
call fcn.101f4710
add esp, 0xc
push 0
call fcn.10209380
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1021015b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10210166
Function at 0x102127a3
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 0x102127bd
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 0x102127d4
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1021282c
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.10201461
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1021282c
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 0x1021282c
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1021282c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x10212826
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x10212828
xor bl, bl
mov al, bl
jmp 0x1021282e
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x10213073
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 + 0x1029a210]
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 0x102130b5
cmp byte [ebx], 0xa
jne 0x102130b5
or byte [edi + eax + 0x28], 4
jmp 0x102130ba
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x102131bd
mov cl, byte [eax]
cmp cl, 0x1a
je 0x10213198
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x102130e9
mov eax, dword [ebp - 8]
jmp 0x10213109
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x10213125
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x10213103
add eax, 2
mov cl, 0xa
jmp 0x10213106
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 0x102130cb
jmp 0x102131bd
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 0x10213193
cmp dword [ebp - 0x10], 0
je 0x10213193
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x1029a210]
test byte [eax + edi + 0x28], 0x48
je 0x10213172
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x10213162
mov byte [esi], 0xa
jmp 0x102131bc
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x1029a210]
mov byte [eax + edi + 0x2a], cl
jmp 0x102131bc
cmp byte [ebp - 1], 0xa
jne 0x1021317c
cmp esi, ebx
je 0x1021315d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1020fd7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x102131bd
mov byte [esi], 0xd
jmp 0x102131bc
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x1029a210]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x102131ba
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x102131bd
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x102131c6
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 + 0x1029a210]
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 0x1021320a
push 0xa
pop esi
cmp word [ebx], si
jne 0x1021320a
or byte [eax + edi + 0x28], 4
jmp 0x1021320f
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 0x1021337a
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 0x10213352
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x1021325c
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x10213286
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x102132a5
push 0xa
pop ebx
cmp word [edx], bx
jne 0x10213273
push ebx
add eax, 4
pop edx
jmp 0x1021327b
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 0x10213221
jmp 0x1021337a
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 0x1021334d
cmp dword [ebp - 0x14], 0
je 0x1021334d
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x1029a210]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x10213329
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x102132f1
mov word [esi], ax
jmp 0x10213377
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 + 0x1029a210]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1029a210]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1029a210]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x10213377
cmp word [ebp - 4], ax
jne 0x10213333
cmp esi, ebx
je 0x102132e9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1020fd7e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1021337a
push 0xd
pop eax
jmp 0x102132e9
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x1029a210]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x10213374
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x1021337a
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 0x10216511
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10290680]
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.1020962d
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.1020962d
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 0x10216588
cmp word [ecx], dx
je 0x10216588
mov eax, dword [0x10253524]
push edi
dec eax
push eax
push 0x10253410
call fcn.10216701
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x102165fb
cmp word [eax], dx
je 0x102165fb
mov eax, dword [edi]
test eax, eax
je 0x102165ac
cmp word [eax], dx
je 0x102165ac
lea eax, [ebp - 0x10]
push eax
call fcn.10216768
jmp 0x102165b5
lea eax, [ebp - 0x10]
push eax
call fcn.10216a57
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10216625
mov eax, dword [0x1025340c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10253100
call fcn.10216701
add esp, 0xc
test al, al
je 0x10216625
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x102165f0
cmp word [eax], di
je 0x102165f0
lea eax, [ebp - 0x10]
push eax
call fcn.10216768
pop ecx
jmp 0x10216627
lea eax, [ebp - 0x10]
push eax
call fcn.10216a57
jmp 0x102165ed
mov eax, dword [edi]
test eax, eax
je 0x10216612
cmp word [eax], dx
je 0x10216612
lea eax, [ebp - 0x10]
push eax
call fcn.10216b87
pop ecx
jmp 0x10216625
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 0x102166f0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10216c75
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x102166f0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x102166f0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x102166f0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1021667d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1020b583
test ebx, ebx
je 0x102166eb
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1020b583
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x102166f0
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 0x102166f0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10201f98
add esp, 0x10
xor eax, eax
inc eax
jmp 0x102166f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b5a82
leave
ret
Function at 0x10216d7b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1020962d
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 0x10216dea
cmp esi, dword [ebp - 4]
je 0x10216de5
cmp dword [ebp + 0xc], 0
je 0x10216de5
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10216dc2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10216e44
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10216dec
xor eax, eax
inc eax
jmp 0x10216dec
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1021ac95
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.1021ae2c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1021ae04
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1021ae04
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1021adb9
jg 0x1021acf1
test eax, eax
je 0x1021adaf
push 1
push 0x1000
call fcn.1020c690
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1021ad14
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1021ada6
push 0x8000
push ebx
call fcn.1021ab8d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1021ad3d
jg 0x1021ad38
cmp ecx, 0x1000
jb 0x1021ad3d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10211a5a
add esp, 0x10
cmp eax, 0xffffffff
je 0x1021ad82
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 0x1021ad38
jl 0x1021ad69
test ecx, ecx
jne 0x1021ad2a
push dword [ebp - 0xc]
push ebx
call fcn.1021ab8d
push esi
call fcn.10209380
add esp, 0xc
xor ebx, ebx
jmp 0x1021ae12
cmp byte [edi + 0x24], 0
je 0x1021ad99
cmp dword [edi + 0x20], 5
jne 0x1021ad99
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1021ada4
mov ebx, dword [edi + 0x18]
jmp 0x1021ada6
xor ebx, ebx
push esi
call fcn.10209380
pop ecx
jmp 0x1021ae12
test ecx, ecx
jg 0x1021ad7b
jl 0x1021adb9
test eax, eax
jae 0x1021ad7b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1020fd7e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1021add9
cmp byte [edi + 0x1c], 0
je 0x1021ad7b
jmp 0x1021ae0a
push ebx
call fcn.10201461
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1021ad7b
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 0x1021ae12
cmp byte [edi + 0x1c], 0
je 0x1021ae0f
mov ebx, dword [edi + 0x18]
jmp 0x1021ae12
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1020fd7e
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x98b15c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98b183
call fcn.0092d6a8
mov dword [eax], esi
call fcn.0092d695
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092e2ea
mov eax, esi
jmp 0x98b1d8
test dword [ebp + 0xc], 0xfffffff9
jne 0x98b169
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98b1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092d6bb
pop ecx
call fcn.0092d695
mov eax, dword [eax]
jmp 0x98b1d8
test al, 0x10
jne 0x98b1d6
test al, 1
je 0x98b1d6
test byte [ebp + 0xc], 2
je 0x98b1d6
call fcn.0092d6a8
mov dword [eax], 5
call fcn.0092d695
mov dword [eax], 0xd
jmp 0x98b1a7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x668657ef
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x4fa21c7b
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x46b970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5b000]
push edi
jmp 0x46b98a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46b991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b980
mov eax, 1
add ebx, ebx
jne 0x46b9a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46b9b4
jne 0x46b9d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b9d3
dec eax
add ebx, ebx
jne 0x46b9c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46b998
add ebx, ebx
jne 0x46b9cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46ba25
xor ecx, ecx
sub eax, 3
jb 0x46b9eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46ba5a
sar eax, 1
mov ebp, eax
jmp 0x46b9f6
add ebx, ebx
jne 0x46b9f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b9c4
inc ecx
add ebx, ebx
jne 0x46ba04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b9c4
add ebx, ebx
jne 0x46ba11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46ba06
jne 0x46ba22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46ba06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46ba44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46ba36
jmp 0x46b986
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46ba44
add edi, ecx
jmp 0x46b986
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46ba62
cmp byte [edi], 0x12
jne 0x46ba62
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 0x46ba67
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46badf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1df4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb1ed4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46ba94
mov ecx, edi
jns 0x46bac3
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 + 0xb1edc]
or eax, eax
je 0x46bad9
mov dword [ebx], eax
add ebx, 4
jmp 0x46bab1
call dword [esi + 0xb1ed8]
mov ebp, dword [esi + 0xb1ee0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
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 0x46bb13
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x10015c8
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
push edi
call sub.SHLWAPI.dll_Ordinal_241
xor edi, edi
mov dword [0x1002050], eax
cmp eax, edi
je 0x10015f8
push edi
push 0x400a
push 1
push 0x10012dc
push 4
call sub.SHLWAPI.dll_Ordinal_244
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc4]
push eax
mov dword [ebp - 0xc4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xb4], 2
jne 0x100162a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jmp 0x100165e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
je 0x100165e
push esi
push eax
push 0xffffffffffffffff
push ebx
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x10012c0
call dword [sym.imp.SHLWAPI.dll_Ordinal_309]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x100172c
push 5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x1001723
push 0x14
call fcn.010017af
cmp eax, edi
pop ecx
je 0x10016a2
push dword [ebp - 0xc]
mov ecx, eax
call fcn.01001387
mov esi, eax
jmp 0x10016a4
xor esi, esi
cmp esi, edi
je 0x1001723
push edi
call dword [sym.imp.SHLWAPI.dll_Ordinal_83]
mov ebx, eax
lea eax, [ebp - 0x2cc]
push 0x104
push eax
push 0x64
push ebx
call dword [sym.imp.SHLWAPI.dll_Ordinal_107]
push 0xc9
push ebx
mov dword [ebp - 0x30], 0x1c
call dword [sym.imp.SHLWAPI.dll_Ordinal_103]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2cc]
mov ecx, esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0xa
mov dword [ebp - 0x24], edi
call fcn.010014e4
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.010014f1
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.010014f5
test eax, eax
je 0x1001712
or dword [ebp - 0x24], 1
lea eax, [ebp - 0x30]
push eax
push esi
call dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], edi
je 0x100173a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x1002050], edi
je 0x1001756
push edi
push 0x400a
push 3
push 0x10012a4
push 4
call sub.SHLWAPI.dll_Ordinal_244
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ExitProcess]