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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1015bf18]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10112ae1
cmp word [ebx], dx
jne 0x10112ae1
or byte [eax + edi + 0x28], 4
jmp 0x10112ae6
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10112c49
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10112c29
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10112b27
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10112b5d
cmp eax, edx
jae 0x10112b6b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10112b02
jmp 0x10112c49
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10112c24
cmp dword [ebp - 0x18], 0
je 0x10112c24
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1015bf18]
test byte [eax + edi + 0x28], 0x48
je 0x10112bfa
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10112bbe
mov word [esi], cx
jmp 0x10112bf5
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1015bf18]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1015bf18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1015bf18]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10112c49
pop eax
cmp word [ebp - 4], ax
jne 0x10112c0a
cmp esi, ebx
jne 0x10112c0a
mov word [esi], ax
jmp 0x10112c46
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1011b377
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10112c49
push 0xd
pop eax
jmp 0x10112c05
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1015bf18]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10112c43
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10112c49
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10116a1c
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 0x10116ab9
push ebx
push esi
call fcn.101169e5
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.10116979
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10116a66
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10116ab8
push edi
push eax
call fcn.10113642
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10116a86
call fcn.1011042d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10116ab7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10116979
add esp, 0x20
test eax, eax
jne 0x10116aa5
push edi
call fcn.1011042d
jmp 0x10116aad
push ebx
call fcn.1011042d
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 0x10116abc
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10116acd
pop esi
ret
push ebx
push edi
push esi
call fcn.101169e5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10113642
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10116af5
push ebx
push esi
push edi
call fcn.100e5700
add esp, 0xc
push 0
call fcn.1011042d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1011724f
Capabilities:
Set environment variable

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

Function at 0x10117701
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10136168
push 0x10136160
push str.FlsAlloc
push 0x1f
call fcn.1011756c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10117735
push dword [ebp + 8]
mov ecx, esi
call dword [0x1012c2ec]
call esi
jmp 0x1011773b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1011777f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10136178
push 0x10136170
push str.FlsGetValue
push 0x21
call fcn.1011756c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101177b6
push dword [ebp + 8]
mov ecx, esi
call dword [0x1012c2ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101177be
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10136180
push 0x10136178
push str.FlsSetValue
push 0x22
call fcn.1011756c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101177f8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1012c2ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10117896
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x10136054
push str.GetTempPath2W
push 5
call fcn.1011756c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101178d0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1012c2ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x1011fb43
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10110bd2
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 0x1011fbb2
cmp esi, dword [ebp - 4]
je 0x1011fbad
cmp dword [ebp + 0xc], 0
je 0x1011fbad
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1011fb8a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1011f695
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1011fbb4
xor eax, eax
inc eax
jmp 0x1011fbb4
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1011fc19
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10149040]
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.10110bd2
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.10110bd2
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 0x1011fc90
cmp word [ecx], dx
je 0x1011fc90
mov eax, dword [0x10136b74]
push edi
dec eax
push eax
push 0x10136a60
call fcn.1011fbb8
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1011fd03
cmp word [eax], dx
je 0x1011fd03
mov eax, dword [edi]
test eax, eax
je 0x1011fcb4
cmp word [eax], dx
je 0x1011fcb4
lea eax, [ebp - 0x10]
push eax
call fcn.1011f59b
jmp 0x1011fcbd
lea eax, [ebp - 0x10]
push eax
call fcn.1011f636
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1011fd2d
mov eax, dword [0x10136a5c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10136750
call fcn.1011fbb8
add esp, 0xc
test al, al
je 0x1011fd2d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1011fcf8
cmp word [eax], di
je 0x1011fcf8
lea eax, [ebp - 0x10]
push eax
call fcn.1011f59b
pop ecx
jmp 0x1011fd2f
lea eax, [ebp - 0x10]
push eax
call fcn.1011f636
jmp 0x1011fcf5
mov eax, dword [edi]
test eax, eax
je 0x1011fd1a
cmp word [eax], dx
je 0x1011fd1a
lea eax, [ebp - 0x10]
push eax
call fcn.1011f550
pop ecx
jmp 0x1011fd2d
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 0x1011fdf8
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1011fa3d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1011fdf8
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1011fdf8
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1011fdf8
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1011fd85
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.101179dc
test ebx, ebx
je 0x1011fdf3
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.101179dc
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1011fdf8
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 0x1011fdf8
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100fcac0
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1011fdfa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10080ce9
leave
ret
Function at 0x10122b9d
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.10122b19
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10122d0c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10122d0c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10122cc1
jg 0x10122bf9
test eax, eax
je 0x10122cb7
push 1
push 0x1000
call fcn.10114b88
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10122c1c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10122cae
push 0x8000
push ebx
call fcn.10122a4a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10122c45
jg 0x10122c40
cmp ecx, 0x1000
jb 0x10122c45
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1011a6cd
add esp, 0x10
cmp eax, 0xffffffff
je 0x10122c8a
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 0x10122c40
jl 0x10122c71
test ecx, ecx
jne 0x10122c32
push dword [ebp - 0xc]
push ebx
call fcn.10122a4a
push esi
call fcn.1011042d
add esp, 0xc
xor ebx, ebx
jmp 0x10122d1a
cmp byte [edi + 0x24], 0
je 0x10122ca1
cmp dword [edi + 0x20], 5
jne 0x10122ca1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10122cac
mov ebx, dword [edi + 0x18]
jmp 0x10122cae
xor ebx, ebx
push esi
call fcn.1011042d
pop ecx
jmp 0x10122d1a
test ecx, ecx
jg 0x10122c83
jl 0x10122cc1
test eax, eax
jae 0x10122c83
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1011b377
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10122ce1
cmp byte [edi + 0x1c], 0
je 0x10122c83
jmp 0x10122d12
push ebx
call fcn.1011da51
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10122c83
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 0x10122d1a
cmp byte [edi + 0x1c], 0
je 0x10122d17
mov ebx, dword [edi + 0x18]
jmp 0x10122d1a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1011b377
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101255a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101255cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101255cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
sub esp, 0x18
push esi
push edi
test eax, eax
jne 0x4019a9
call fcn.00403610
inc ebp
or byte [ebx - 0x76a7ff00], al
jne 0x401563
inc edx
add dword [edx + 0x5d], ebp
mov ecx, esp
inc dword [eax]
push eax
push 0xffffffffffffff89
inc ebp
push eax
or byte [edx + 0x2e], ch
push eax
or byte [ebx + 0x6a08425d], cl
push 0x752e75
inc edx
inc ebp
or byte [ebp + 0x5d], bl
or byte [ecx - 0x7400feff], cl
int3
push eax
push 0x5d455d30
xor byte [ebx + 0x8402e45], cl
or byte cs:[ebp], al
inc edx
call 0x40407de1
lds ecx, [eax]
or byte [ebx + 0x5040cc42], al
add byte [eax + 0x50], bl
lds esi, [ebp]
lds ebp, [eax + 0x68]
pop ebp
push 0x58
add dword [eax + 0x30], ebx
add byte [ebx - 0x743a3ad2], al
push 0x45006850
pop eax
int3
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0xc], esi
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, eax
mov esi, dword [ebp + 0xc]
lodsb al, byte [esi]
inc ecx
test eax, eax
jne 0x4018e1
dec ecx
mov dword [ebp - 0x10], ecx
test ecx, ecx
jne 0x401ddb
daa
push 4
push 1
push eax
call 0x44637d
mov eax, dword [esi + 0x14]
push 3
push 1
push eax
call 0x44637d
mov ecx, dword [esi + 0x14]
push 2
push 1
push ecx
call 0x44637d
add esp, 0x24
mov eax, esi
pop esi
pop ebx
ret
mov edi, dword [0x4051ca]
push 0x10000
mov edx, dword [ebp + 8]
pop esi
mov eax, dword [0x40514c]
and edx, eax
mov eax, dword [edx]
cmp ax, di
je 0x4019ca
sub edx, esi
jmp 0x4019bf
mov dword [ebp - 8], edx
mov eax, edx
mov ecx, dword [eax + 0x3c]
add eax, 0x78
and ecx, 0xffff
add eax, ecx
mov eax, dword [eax]
mov esi, dword [ebp - 8]
push esi
add esi, eax
mov eax, dword [esi + 0x20]
pop edi
add edi, eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
jmp 0x4018d4
push dword [ebp - 0x14]
pop ecx
mov eax, dword [edi]
mov esi, dword [ebp - 8]
add esi, eax
xor eax, eax
push ecx
mov ecx, eax
push esi
add edi, 4
lodsb al, byte [esi]
add ecx, 1
test eax, eax
jne 0x401def
dec ecx
pop esi
cmp ecx, dword [ebp - 0x10]
je 0x401e04
inc dword [ebp - 4]
pop ecx
loop 0x401ddf
push esi
push dword [ebp + 0xc]
call fcn.00403610
test eax, eax
jne 0x401dfe
je 0x403360
add dword [ebx + ecx - 0x73], esi
lea eax, [edi + edi*8 - 1]
invalid
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x24]
add eax, eax
add ecx, dword [ebp - 8]
add ecx, eax
movzx eax, word [ecx]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax]
add eax, ecx
test eax, eax
jne 0x40185f
pop esi
and byte [eax + 0x68b105e], cl
cmp eax, ebx
je 0x40339d
push eax
call 0x469e09
add esp, 4
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
pop esi
pop ebx
ret
Function at 0x4033ea
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404670
push 0x403d74
push eax
mov eax, dword [0x4053fc]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x4053f8]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.00401920
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x4053f4]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d8
push 0x4040d4
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x403485
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x40347d
cmp al, 0x22
jne 0x403472
cmp byte [esi], 0x22
jne 0x40348f
inc esi
jmp 0x40348f
cmp al, 0x20
jbe 0x40348f
inc esi
cmp byte [esi], 0x20
ja 0x403489
cmp byte [esi], 0
je 0x40349f
cmp byte [esi], 0x20
ja 0x40349f
inc esi
cmp byte [esi], 0
jne 0x403494
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4034bf
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x4034fb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x8fa0b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x65500d
lea edi, [esi - 0x25400d]
push edi
or ebp, 0xffffffff
jmp 0x8fa0d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8fa0d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8fa0c8
mov eax, 1
add ebx, ebx
jne 0x8fa0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8fa0e0
jne 0x8fa0fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8fa0e0
xor ecx, ecx
sub eax, 3
jb 0x8fa110
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8fa182
mov ebp, eax
add ebx, ebx
jne 0x8fa11b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x8fa128
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x8fa14c
inc ecx
add ebx, ebx
jne 0x8fa138
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8fa12d
jne 0x8fa149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8fa12d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8fa16c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8fa15d
jmp 0x8fa0ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8fa16c
add edi, ecx
jmp 0x8fa0ce
pop esi
mov edi, esi
mov ecx, 0x16f9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8fa18a
cmp byte [edi], 0x11
jne 0x8fa18a
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 0x8fa18f
lea edi, [esi + 0x4f6000]
mov eax, dword [edi]
or eax, eax
je 0x8fa1fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x502164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5021bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8fa1bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5021c4]
or eax, eax
je 0x8fa1f8
mov dword [ebx], eax
add ebx, 4
jmp 0x8fa1d9
call dword [esi + 0x5021c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8fa22f
cmp al, 0xef
ja 0x8fa222
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8fa204
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x8fa211
mov ebp, dword [esi + 0x5021c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x8fa263
sub esp, 0xffffff80
jmp 0x416fbc
Function at 0x4c1050
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c107d
test al, 0x10
jne 0x4c1074
and eax, 0xffffffdf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4c107d
mov eax, 1
pop esi
ret 4
push esi
push 0x4bf
call fcn.00475570
push eax
mov eax, dword [0x51ef64]
push eax
call fcn.004ad680
add esp, 0xc
xor eax, eax
pop esi
ret 4

Function at 0x4c1302
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eb0b4]
jne 0x4c130c
repz ret
jmp fcn.004c6613

Function at 0x4cfa4f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004c7546
and dword [ebp - 4], 0
cmp dword [0x589a04], 0
mov ebx, eax
jne 0x4cfb00
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4cfbb1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4cfbb1
push eax
call fcn.004c74d4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x589a04], eax
call esi
push eax
call fcn.004c74d4
mov dword [esp], 0x4e14d4
push edi
mov dword [0x589a08], eax
call esi
push eax
call fcn.004c74d4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x589a0c], eax
call esi
push eax
call fcn.004c74d4
pop ecx
mov dword [0x589a14], eax
test eax, eax
je 0x4cfb00
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c74d4
pop ecx
mov dword [0x589a10], eax
mov eax, dword [0x589a10]
cmp eax, ebx
je 0x4cfb58
cmp dword [0x589a14], ebx
je 0x4cfb58
push eax
call fcn.004c754f
push dword [0x589a14]
mov esi, eax
call fcn.004c754f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4cfb58
test edi, edi
je 0x4cfb58
call esi
test eax, eax
je 0x4cfb4f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cfb4f
test byte [ebp - 0xc], 1
jne 0x4cfb58
or dword [ebp + 0x10], 0x200000
jmp 0x4cfb91
mov eax, dword [0x589a08]
cmp eax, ebx
je 0x4cfb91
push eax
call fcn.004c754f
pop ecx
test eax, eax
je 0x4cfb91
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4cfb91
mov eax, dword [0x589a0c]
cmp eax, ebx
je 0x4cfb91
push eax
call fcn.004c754f
pop ecx
test eax, eax
je 0x4cfb91
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x589a04]
call fcn.004c754f
pop ecx
test eax, eax
je 0x4cfbb1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cfbb3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret