joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106b1e9
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x88
movzx eax, byte [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1074c98
xor ebx, ebx
mov dword [ebp - 4], eax
call fcn.01069d83
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0106a081
push dword [ebp + 8]
lea edi, [esi + 0x2c]
push edi
mov ecx, esi
call fcn.0106ac69
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x106b25a
push eax
mov ecx, edi
call fcn.0106a118
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi]
cmp eax, dword [ebp - 0x14]
jae 0x106b28b
push dword [ebp + 0xc]
lea ecx, [esi + 0x2c]
call fcn.0106a118
mov ebx, dword [eax + 0x20c]
jmp 0x106b292
push dword [ebp + 8]
lea edi, [esi + 0x1c]
push edi
mov ecx, esi
call fcn.0106ac69
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x106b292
push eax
mov ecx, edi
call fcn.0106a118
lea edi, [eax + 0x208]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi]
cmp eax, dword [ebp - 0x14]
jb 0x106b292
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.0106a09e
cmp dword [ebp - 4], 0
je 0x106b3de
test ebx, ebx
jl 0x106b3de
lea ecx, [ebp - 0x10]
call fcn.0106d6aa
lea ecx, [ebp - 0x88]
call fcn.01068443
lea ecx, [ebp - 0x20]
call fcn.0106d6aa
push dword [ebp + 8]
lea ecx, [ebp - 0x88]
call fcn.01069d2c
push 0x1001e44
lea ecx, [ebp - 0x88]
call fcn.01069283
mov ebx, eax
test ebx, ebx
jl 0x106b3c3
lea eax, [ebp - 0x10]
push eax
push 0xa
lea ecx, [ebp - 0x88]
call fcn.010691d0
mov ebx, eax
test ebx, ebx
jl 0x106b3c3
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x88]
call fcn.01067623
mov ebx, eax
test ebx, ebx
jl 0x106b3c3
mov ecx, dword [ebp - 0x10]
xor eax, eax
test ecx, ecx
je 0x106b331
cmp word [ecx], ax
setne al
test al, al
je 0x106b363
lea ecx, [ebp - 0x10]
call fcn.0106d775
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x20]
dec eax
lea edi, [ecx + eax*2]
call fcn.0106e615
cmp word [edi], ax
jne 0x106b363
lea ecx, [ebp - 0x10]
call fcn.0106d775
mov edx, dword [ebp - 0x10]
dec eax
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x10]
call fcn.0106b098
mov ebx, eax
test ebx, ebx
jge 0x106b3c3
cmp dword [ebp + 0xc], 0xffffffff
je 0x106b3c3
mov ecx, esi
call fcn.0106a081
push dword [ebp + 8]
lea edi, [esi + 0x2c]
push edi
mov ecx, esi
call fcn.0106ac69
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x106b3bc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp + 0xc]
mov ecx, edi
mov ebx, eax
call fcn.0106a118
push dword [ebp + 0xc]
mov ecx, edi
mov dword [eax + 0x208], ebx
call fcn.0106a118
mov ebx, dword [eax + 0x20c]
mov ecx, esi
call fcn.0106a09e
lea ecx, [ebp - 0x20]
call fcn.0106de2a
lea ecx, [ebp - 0x88]
call fcn.0106aeb0
lea ecx, [ebp - 0x10]
call fcn.0106de2a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x106bb68
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x106bc67
mov edi, dword [ebp + 8]
test edi, edi
je 0x106bc67
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1075340]
mov ebx, 0x1075334
cmp eax, 0xea60
jae 0x106bbbc
push edi
push ebx
call fcn.0106d666
test al, al
je 0x106bbbc
mov eax, dword [0x1075330]
mov dword [esi], eax
jmp 0x106bc6e
push esi
push edi
push 0x10121d0
push 0x80000002
call fcn.0106b8a8
cmp eax, 3
je 0x106bbd7
cmp eax, 2
jne 0x106bc10
push esi
push edi
push 0x1012160
push 0x80000001
call fcn.0106b8a8
cmp eax, 3
je 0x106bbf2
cmp eax, 2
jne 0x106bc10
push edi
call fcn.0106720d
cmp eax, 0xffffffff
je 0x106bc07
push eax
call fcn.0106bb00
mov dword [esi], eax
jmp 0x106bc0e
mov dword [ebp - 4], 0xc00d0fda
xor eax, eax
test eax, eax
je 0x106bc23
jle 0x106bc20
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x106bc6e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x106bc6e
push 5
push ebx
lea ecx, [ebp - 0x10]
call fcn.0106d753
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x10]
call fcn.0106de7c
mov eax, dword [esi]
mov dword [0x1075330], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x1075340], eax
call fcn.0106de2a
jmp 0x106bc6e
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x106bcf7
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x106bde4
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x106bde4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, 0xea60
cmp eax, dword [0x1075354]
jae 0x106bd4a
push ebx
push 0x1075348
call fcn.0106d666
test al, al
je 0x106bd4a
mov eax, dword [0x1075344]
mov dword [edi], eax
jmp 0x106bdeb
push edi
push ebx
push 0x10121d0
push 0x80000002
call fcn.0106b9d5
test eax, eax
je 0x106bda2
push edi
push ebx
push 0x1012160
push 0x80000001
call fcn.0106b9d5
mov esi, eax
test esi, esi
je 0x106bda2
push ebx
call fcn.0106720d
cmp eax, 0xffffffff
je 0x106bd8b
push eax
call fcn.0106bb34
mov dword [edi], eax
jmp 0x106bda2
test esi, esi
jle 0x106bd9b
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
test esi, esi
jl 0x106bdeb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 5
jae 0x106bdeb
push 5
push 0x1075348
lea ecx, [ebp - 0x10]
call fcn.0106d753
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x10]
call fcn.0106de7c
mov eax, dword [edi]
mov dword [0x1075344], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x10]
mov dword [0x1075354], eax
call fcn.0106de2a
jmp 0x106bdeb
mov dword [ebp - 4], 0x80004003
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x106c04b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [0x1075298], bl
jne 0x106c091
push esi
push ebx
push ebx
push ebx
push 0x106befe
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
je 0x106c088
push 0xbb8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
cmp byte [0x1075298], bl
je 0x106c0d7
lea ecx, [ebp - 0xc]
call fcn.0106d6aa
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0106de7c
test eax, eax
jl 0x106c0cf
lea ecx, [ebp - 0xc]
call fcn.0106d7a5
push dword [ebp - 0xc]
mov ecx, 0x10752d8
call fcn.0106cced
test al, al
je 0x106c0cf
lea ecx, [ebp - 0xc]
call fcn.0106de2a
mov al, 1
jmp 0x106c0d9
lea ecx, [ebp - 0xc]
call fcn.0106de2a
xor al, al
pop ebx
leave
ret 4

Function at 0x106d340
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
mov dword [ebp - 8], ecx
cmp byte [ecx + 0x10], bl
jne 0x106d45c
push ebx
push 0x20019
push 0x1013d50
mov byte [ecx + 0x10], 1
push 0x80000002
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.0106b6fe
test eax, eax
je 0x106d38d
lea ecx, [ebp - 0x34]
call fcn.0106b6e0
jmp 0x106d45c
push esi
push edi
xor edi, edi
mov esi, 0x104
jmp 0x106d42e
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
mov eax, edi
push eax
push dword [ebp - 0x34]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x106d44a
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x106d3cb
cmp word [ecx], bx
setne al
cmp al, bl
je 0x106d426
cmp dword [ebp - 4], ebx
je 0x106d426
lea ecx, [ebp - 0x28]
call fcn.0106d6aa
mov eax, dword [ebp - 0x1c]
push 0x2e
pop ecx
cmp cx, word [eax]
push 0xffffffffffffffff
lea ecx, [ebp - 0x28]
jne 0x106d3ef
add eax, 2
push eax
call fcn.0106de7c
mov ecx, dword [ebp - 0x28]
xor eax, eax
cmp ecx, ebx
je 0x106d404
cmp word [ecx], bx
setne al
cmp al, bl
je 0x106d41e
push ecx
call fcn.01067182
cmp eax, 0xffffffff
jne 0x106d41e
push dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
call fcn.0106d013
lea ecx, [ebp - 0x28]
call fcn.0106de2a
lea ecx, [ebp - 0x1c]
call fcn.0106de2a
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
call fcn.0106d6aa
push esi
lea ecx, [ebp - 0x1c]
call fcn.0106de34
test eax, eax
jge 0x106d39b
lea ecx, [ebp - 0x1c]
call fcn.0106de2a
lea ecx, [ebp - 0x34]
call fcn.0106b6e0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x106d6aa
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1072c48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
xor ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], eax
mov word [esi + 8], cx
cmp dword [0x1075538], eax
jne 0x106d73f
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [0x1075538], 1
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x106d73f
cmp dword [ebp - 0x114], 5
jb 0x106d723
cmp dword [ebp - 0x110], 1
jae 0x106d72c
cmp dword [ebp - 0x114], 6
jb 0x106d73f
cmp dword [ebp - 0x108], 2
jne 0x106d73f
mov dword [0x1073934], 0x7f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047480
leave
ret

Function at 0x106e219
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
call fcn.0106dc98
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x106e241
mov eax, dword [0x1073a1c]
mov esi, dword [eax + 8]
test esi, esi
jne 0x106e241
mov eax, 0x80070057
jmp 0x106e2b3
push edi
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x106e268
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x106e282
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106e27e
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x106e2b2
jmp 0x106e28d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x106e294
mov eax, 0x8000ffff
jmp 0x106e2b2
and edi, 0xf
je 0x106e2a3
dec edi
movzx ecx, word [eax]
lea eax, [eax + ecx*2 + 2]
jne 0x106e299
movzx ecx, word [eax]
push ecx
add eax, 2
push eax
mov ecx, ebx
call fcn.0106de7c
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x106e49f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
call fcn.0106dc98
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x106e4c1
mov eax, 0x80070057
jmp 0x106e5a1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 0x80070057
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
jne 0x106e59d
cmp dword [ebp - 8], 1
je 0x106e505
cmp dword [ebp - 8], 2
je 0x106e505
cmp dword [ebp - 8], 7
jne 0x106e59d
shr dword [ebp - 4], 1
test byte [esi + 8], 0x20
je 0x106e547
mov eax, dword [esi + 4]
cmp dword [ebp - 4], eax
jb 0x106e519
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, dword [esi + 4]
cmp ecx, ebx
jle 0x106e541
mov edx, dword [esi]
xor edi, edi
mov word [edx + ecx*2 - 2], di
cmp eax, ebx
jne 0x106e59d
jmp 0x106e588
push dword [ebp - 4]
mov ecx, esi
call fcn.0106da77
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x106e59d
mov ecx, dword [ebp - 4]
add ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov ecx, esi
test eax, eax
je 0x106e580
lea eax, [ebp - 0x10]
push eax
call fcn.0106daa3
jmp 0x106e59d
push dword [ebp - 0x10]
call fcn.0106ddf2
cmp dword [ebp - 8], 2
je 0x106e593
mov dword [ebp - 0xc], ebx
jmp 0x106e59d
mov ecx, esi
call fcn.0106e2be
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4012f1
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
je 0x401403
cmp word [ebp], 0x5a4d
jne 0x401403
mov esi, ebp
add esi, dword [ebp + 0x3c]
cmp dword [esi], 0x4550
jne 0x401403
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push dword [esi + 0x50]
push dword [esi + 0x34]
call edi
mov ebx, eax
test ebx, ebx
jne 0x401350
push 4
push 0x2000
push dword [esi + 0x50]
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x401403
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor eax, eax
push 4
push 0x1000
mov dword [edi + 4], ebx
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
push dword [esi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push dword [esi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x14], eax
add ecx, dword [ebp + 0x3c]
push ecx
push ebp
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
add eax, ecx
push edi
push esi
mov dword [edi], eax
push ebp
mov dword [eax + 0x34], ebx
call fcn.00401411
mov eax, ebx
add esp, 0x18
sub eax, dword [esi + 0x34]
je 0x4013ce
push eax
push edi
call fcn.0040157b
pop ecx
pop ecx
push edi
call fcn.004015f5
test eax, eax
pop ecx
je 0x4013fc
push edi
call fcn.004014be
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x40140a
add eax, ebx
test eax, eax
je 0x4013fc
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x401407
push edi
call fcn.00401717
pop ecx
xor eax, eax
jmp 0x40140c
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401411
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x4014bb
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x40147c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x4014a5
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
jmp 0x4014a5
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x40144a
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4018ba
Capabilities:
Delete file

Disassembly:
mov eax, 0x402810
call fcn.00402740
sub esp, 0x23c
push ebx
mov dword [ebp - 0x14], ecx
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.00402422
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00402422
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00402422
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x40478c
mov byte [ebp - 4], 2
xor esi, esi
call edi
push 0x40458c
call edi
lea eax, [ebp - 0x248]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x248]
push 0x40
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x401965
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CFile::GetLength
mov edi, eax
cmp edi, 0x4200
jbe 0x401a0f
push edi
call sub.MFC42u.DLL_operatornew
pop ecx
mov esi, eax
push edi
push esi
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CFile::Read
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CFile::Close
lea eax, [esi + 0x40]
push 0x34
push eax
push 0x404358
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x404358]
push dword [0x40435c]
add eax, esi
push eax
call fcn.004010f5
mov eax, dword [ebp - 0x10]
add esp, 0x1c
cmp eax, ebx
je 0x4019b2
mov ecx, dword [ebp - 0x14]
push eax
mov dword [ecx + 0xc4], eax
call fcn.004012f1
pop ecx
mov dword [0x404f9c], eax
push dword [0x4040bc]
push dword [0x404f9c]
call fcn.004016f2
pop ecx
cmp eax, ebx
pop ecx
je 0x401a01
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [0x404360]
push dword [0x404364]
add ecx, esi
push ecx
call eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp eax, ebx
je 0x401a01
mov ecx, dword [ebp - 0x14]
push eax
mov dword [ecx + 0xc8], eax
call fcn.004012f1
pop ecx
mov dword [0x404fa0], eax
cmp esi, ebx
jne 0x401a0c
push ebx
call sub.MFC42u.DLL_operatordelete
pop ecx
push 1
pop esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CFile::CFile
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CFile::CFile
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x45d5a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3c000]
push edi
or ebp, 0xffffffff
jmp 0x45d5c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45d5c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45d5b8
mov eax, 1
add ebx, ebx
jne 0x45d5db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45d5ec
jne 0x45d60b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45d60b
dec eax
add ebx, ebx
jne 0x45d5f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x45d5d0
add ebx, ebx
jne 0x45d607
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x45d65d
xor ecx, ecx
sub eax, 3
jb 0x45d623
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45d692
sar eax, 1
mov ebp, eax
jmp 0x45d62e
add ebx, ebx
jne 0x45d62e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45d5fc
inc ecx
add ebx, ebx
jne 0x45d63c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45d5fc
add ebx, ebx
jne 0x45d649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45d63e
jne 0x45d65a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d63e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45d67c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45d66e
jmp 0x45d5be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45d67c
add edi, ecx
jmp 0x45d5be
pop esi
mov edi, esi
mov ecx, 0x10af
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45d69a
cmp byte [edi], 7
jne 0x45d69a
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 0x45d69f
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45d717
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d6c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d77c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45d6cc
mov ecx, edi
jns 0x45d6fb
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 + 0x5d780]
or eax, eax
je 0x45d711
mov dword [ebx], eax
add ebx, 4
jmp 0x45d6e9
call dword [esi + 0x5d790]
mov ebp, dword [esi + 0x5d784]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x45d74b
sub esp, 0xffffff80
jmp 0x4262a0
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x6ac82f7e
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x54d45dca
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4097bc
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409870
jmp 0x409865
cmp dword [esi + 0x10], 0x1000
jne 0x409851
test byte [esi + 0x15], 1
jne 0x409851
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409810
cmp eax, 2
je 0x409810
cmp eax, 0x10
je 0x409810
cmp eax, 0x20
jne 0x409825
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409825
mov bl, 1
xor ebp, ebp
jmp 0x409836
mov eax, dword [esi]
add eax, ebp
call fcn.004097b4
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409829
test bl, bl
je 0x409851
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409870
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4097e8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret