joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or eax, eax
jne 0x4101ce
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x41019d
cmp eax, 2
jne 0x4101b8
mov eax, dword [ebp - 4]
or esi, esi
je 0x4101c8
test eax, eax
je 0x4101c3
test al, 1
jne 0x4101b8
push eax
pop ecx
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4101c8
push 0xd
pop eax
push ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
sub edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
push ebp
pop esp
pop ebp
ret 8

Function at 0x4113b6
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x58
push 0x427f00
call fcn.004172f0
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
sub esi, esi
cmp dword [0x45ac08], esi
jne 0x411274
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x411287
mov dword [ebp - 0x1c], esi
jmp 0x4112bd
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x411282
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x411282
cmp dword [eax + 0x400074], 0xe
jbe 0x411282
sub ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.004172c6
or eax, eax
jne 0x4112ce
push 0x1c
call fcn.00411220
pop ecx
call 0x41714b
test eax, eax
jne 0x4112df
push 0x10
call fcn.00411220
pop ecx
call fcn.00416e06
mov dword [ebp - 4], esi
call fcn.00416bc1
test eax, eax
jns 0x4112f8
push 0x1b
call fcn.004164cd
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x45ac04], eax
call fcn.00416b69
mov dword [0x458c88], eax
call fcn.00416abb
or eax, eax
jns 0x41131e
push 8
call fcn.004164cd
pop ecx
call fcn.00416889
or eax, eax
jns 0x41132f
push 9
call fcn.004164cd
pop ecx
push 1
call fcn.004162ac
pop ecx
cmp eax, esi
je 0x411342
push eax
call fcn.004164cd
pop ecx
call fcn.00416843
test byte [ebp - 0x3c], 1
je 0x411353
movzx ecx, word [ebp - 0x38]
jmp 0x411356
push 0xa
pop ecx
push ecx
push eax
push esi
push 0x400000
call main
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x411371
push eax
call 0x416483
call fcn.004164af
jmp 0x4113a6
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00417335
ret
call fcn.004174df
jmp 0x411249

Function at 0x4113cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b520]
jne 0x4113d5
repz ret
jmp fcn.0041757a
Function at 0x416511
Capabilities:
Write file on windows

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x1fc
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004164eb
mov edi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x4166b1
push 3
call fcn.0041fe35
pop ecx
cmp eax, 1
je 0x41665d
push 3
call fcn.0041fe35
pop ecx
test eax, eax
jne 0x41656f
cmp dword [0x42b1f4], 1
je 0x41665d
cmp esi, 0xfc
je 0x4166b1
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x458ce0
push edi
call fcn.0041b369
add esp, 0xc
or eax, eax
jne 0x416653
push 0x104
mov esi, 0x458d12
push esi
push ebx
mov word [0x458f1a], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
or eax, eax
jne 0x4165db
push str._program_name_unknown_
push ebx
push esi
call fcn.0041b369
add esp, 0xc
test eax, eax
je 0x4165db
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417994
push esi
call fcn.0041fe1a
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x416612
push esi
call fcn.0041fe1a
lea eax, [eax*2 + 0x458c9c]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x42580c
sub ebx, ecx
push ebx
push eax
call fcn.0041fd4d
add esp, 0x14
test eax, eax
jne 0x4165cf
push 0x425804
mov esi, 0x314
push esi
push edi
call fcn.0041fcd8
add esp, 0xc
or eax, eax
jne 0x4165cf
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.0041fcd8
add esp, 0xc
or eax, eax
jne 0x4165cf
push 0x12010
push 0x4257b8
push edi
call 0x41fb6c
add esp, 0xc
jmp 0x4166b1
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x4165d6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x4166b1
cmp esi, 0xffffffff
je 0x4166b1
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x41668a
inc eax
cmp eax, 0x1f4
jb 0x416672
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.00415250
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x416b69
Capabilities:
Query environment variable

Disassembly:
push ebx
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
pop esi
sub ecx, ecx
cmp esi, ecx
jne 0x416b7e
xor eax, eax
pop esi
ret
cmp word [esi], cx
je 0x416b93
add eax, 2
cmp word [eax], cx
jne 0x416b83
add eax, 2
cmp word [eax], cx
jne 0x416b83
push ebx
sub eax, esi
lea ebx, [eax + 2]
push edi
push ebx
call fcn.00415138
mov edi, eax
pop ecx
test edi, edi
jne 0x416bb4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push edi
pop eax
pop edi
pop ebx
pop esi
ret
push ebx
push esi
push edi
call fcn.00414690
add esp, 0xc
jmp 0x416ba7

Function at 0x417994
Capabilities:
Terminate process

Disassembly:
push edi
pop edi
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.0041786b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret
Function at 0x4196b3
Capabilities:
Read file on windows

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4196d5
call fcn.00417a38
mov dword [eax], 0x16
call fcn.004179e6
jmp 0x4197cf
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x4197cf
test al, 0x40
jne 0x4197cf
test al, 2
je 0x4196f7
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x4197cf
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
jne 0x41970d
push esi
call fcn.004197fb
pop ecx
jmp 0x419712
mov eax, dword [esi + 8]
mov dword [esi], eax
push dword [esi + 0x18]
push dword [esi + 8]
push esi
call fcn.004197d5
pop ecx
push eax
call fcn.00420a7a
add esp, 0xc
mov dword [esi + 4], eax
or eax, eax
je 0x4197be
cmp eax, 0xffffffff
je 0x4197be
test byte [esi + 0xc], 0x82
jne 0x419793
push esi
call fcn.004197d5
pop ecx
cmp eax, 0xffffffff
je 0x41977e
push esi
call fcn.004197d5
pop ecx
cmp eax, 0xfffffffe
je 0x41977e
push edi
push esi
call fcn.004197d5
sar eax, 5
push esi
lea edi, [eax*4 + 0x459ae0]
call fcn.004197d5
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [edi]
pop ecx
pop edi
jmp 0x419783
mov eax, 0x42b4d8
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x419793
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x4197b1
mov eax, dword [esi + 0xc]
test al, 8
je 0x4197b1
test eax, 0x400
jne 0x4197b1
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x4197d2
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
and dword [esi + 4], 0
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x41d569
Capabilities:
Get geographical location

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
push ecx
push esi
mov esi, eax
push 2
lea eax, [ebp - 4]
push eax
mov eax, esi
and eax, 0x3ff
push 0x20000001
or eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
jne 0x41d598
xor eax, eax
jmp 0x41d5c1
cmp esi, dword [ebp - 4]
je 0x41d5be
cmp dword [ebp + 8], 0
je 0x41d5be
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
push edi
push esi
pop edx
call fcn.0041d4a7
push esi
push eax
pop edi
call fcn.00415250
pop ecx
cmp edi, eax
pop edi
je 0x41d594
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x41d8f8
Capabilities:
Get geographical location

Disassembly:
pushal
popal
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00417002
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x41d91e
or dword [edi + 8], 0x104
jmp 0x41d9e1
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x41d93f
cmp byte [eax], 0
je 0x41d93f
push ebx
push 0x16
push 0x426400
call fcn.0041d36b
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x41d9a4
cmp byte [eax], 0
je 0x41d9a4
mov eax, dword [ebx]
or eax, eax
je 0x41d962
cmp byte [eax], 0
je 0x41d962
mov esi, edi
call fcn.0041d855
jmp 0x41d969
mov esi, edi
call fcn.0041d8bc
cmp dword [edi + 8], 0
jne 0x41d9f7
push edi
push 0x40
push 0x4261f8
call fcn.0041d36b
add esp, 0xc
test eax, eax
je 0x41d9ed
mov ebx, dword [ebx]
or ebx, ebx
je 0x41d99b
cmp byte [ebx], 0
je 0x41d99b
mov esi, edi
call fcn.0041d855
jmp 0x41d9ed
mov esi, edi
call fcn.0041d8bc
jmp 0x41d9ed
mov ebx, dword [ebx]
or ebx, ebx
je 0x41d9da
cmp byte [ebx], 0
je 0x41d9da
push ebx
call fcn.00415250
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x41d4c2
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x41d9ed
and dword [edi + 8], 0
jmp 0x41d9ed
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x41dae2
mov esi, dword [ebp + 8]
push esi
pop eax
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call 0x41d3cd
push eax
pop esi
mov dword [ebp + 8], esi
test esi, esi
je 0x41dae2
cmp esi, 0xfde8
je 0x41dae2
cmp esi, 0xfde9
je 0x41dae2
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
or eax, eax
je 0x41dae2
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41dae2
mov eax, dword [ebp + 0xc]
or eax, eax
je 0x41da6e
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x41dadd
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x41daa5
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.00419541
add esp, 0xc
or eax, eax
je 0x41dab6
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417994
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x41dae2
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x41dae2
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.00421e0f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41dae4
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41f328
Capabilities:
Get geographical location

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x90
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x88], eax
jne 0x41f445
and dword [ebp - 0x8c], 0
push 0x80
lea ebx, [ebp - 0x84]
mov ecx, ebx
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00421f13
push eax
pop esi
add esp, 0x14
test esi, esi
jne 0x41f3e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41f403
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00421f13
add esp, 0x14
mov dword [ebp - 0x90], eax
or eax, eax
je 0x41f403
inc esi
push esi
push eax
call fcn.0041517d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x41f403
push dword [ebp - 0x90]
mov dword [ebp - 0x8c], esi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x88]
call fcn.00421f13
mov esi, eax
add esp, 0x14
or esi, esi
je 0x41f3fc
push 1
push esi
call fcn.0041517d
mov dword [edi], eax
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
jne 0x41f415
cmp dword [ebp - 0x8c], edi
je 0x41f403
push ebx
call fcn.00411870
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret
lea ecx, [esi - 1]
push ecx
push ebx
push esi
push eax
call fcn.0041d2b6
add esp, 0x10
or eax, eax
jne 0x41f43b
cmp dword [ebp - 0x8c], edi
je 0x41f437
push ebx
call fcn.00411870
pop ecx
xor eax, eax
jmp 0x41f406
push edi
push edi
push edi
push edi
push edi
call fcn.00417994
cmp dword [ebp + 0xc], 2
jne 0x41f493
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
sub eax, eax
push eax
push eax
push dword [ebp + 0x14]
mov dword [edi], eax
push dword [ebp + 0x10]
call esi
push eax
pop ebx
test ebx, ebx
je 0x41f483
push 2
push ebx
call fcn.0041517d
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
je 0x41f483
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
test eax, eax
jne 0x41f437
push dword [edi]
call fcn.00411870
and dword [edi], 0
pop ecx
jmp 0x41f403
cmp dword [ebp + 0xc], 0
jne 0x41f403
and dword [ebp - 0x88], 0
push 2
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp + 0x14]
or eax, 0x20000000
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or eax, eax
je 0x41f403
mov al, byte [ebp - 0x88]
mov byte [edi], al
jmp 0x41f437

Function at 0x41fa20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x41fa36
sub eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41fa32
sub edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret
Function at 0x41fa60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
sub edx, edx
push edi
lea eax, [eax + ecx + 0x18]
test esi, esi
je 0x41fa9d
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x41fa95
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x41fa9f
inc edx
add eax, 0x28
cmp edx, esi
jb 0x41fa85
sub eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x421e39
Capabilities:
Get geographical location

Disassembly:
push esi
pop esi
push ebp
push esp
pop ebp
sub esp, 0xc
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
sub esi, esi
push esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call edi
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, esi
jne 0x421e7b
xor eax, eax
jmp 0x421f01
jle 0x421ec2
push 0xffffffffffffffe0
xor edx, edx
pop eax
div ecx
cmp eax, 2
jb 0x421ec2
lea eax, [ecx + ecx + 8]
cmp eax, 0x400
ja 0x421eaa
call fcn.0041b120
push esp
pop ebx
cmp ebx, esi
je 0x421e74
mov dword [ebx], 0xcccc
add ebx, 8
jmp 0x421ec4
push eax
call fcn.004117dc
pop ecx
cmp eax, esi
je 0x421ebe
mov dword [eax], 0xdddd
add eax, 8
mov ebx, eax
jmp 0x421ec4
sub ebx, ebx
cmp ebx, esi
je 0x421e74
push dword [ebp - 0xc]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
or eax, eax
je 0x421ef8
push esi
push esi
cmp dword [ebp + 0x18], esi
jne 0x421ee3
push esi
push esi
jmp 0x421ee9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0xffffffffffffffff
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
pop esi
push ebx
call fcn.0041251d
pop ecx
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113cb
leave
ret
Function at 0x422492
Capabilities:
Clear file content

Disassembly:
push edi
pop edi
push ebp
push esp
pop ebp
sub esp, 0x18
push ebx
push esi
push edi
sub ebx, ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.0041b644
mov dword [ebp - 0x18], eax
and eax, edx
add esp, 0x10
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x42251a
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.0041b644
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x42251a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub esi, eax
sbb edi, edx
js 0x4225af
jg 0x4224f3
cmp esi, ebx
jbe 0x4225af
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x422526
call fcn.00417a38
mov dword [eax], 0xc
call fcn.00417a38
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.00422648
pop ecx
pop ecx
mov dword [ebp - 8], eax
or edi, edi
jl 0x422546
jg 0x422542
cmp esi, ebx
jb 0x422546
push ebx
pop eax
jmp 0x422548
push esi
pop eax
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.00419d82
add esp, 0xc
cmp eax, 0xffffffff
je 0x422592
cdq
sub esi, eax
sbb edi, edx
js 0x422569
jg 0x422538
test esi, esi
jne 0x422538
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00422648
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub ebx, ebx
jmp 0x422618
call fcn.00417a4b
cmp dword [eax], 5
jne 0x4225a7
call fcn.00417a38
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x42256c
cmp edi, ebx
jg 0x422624
jl 0x4225b9
cmp esi, ebx
jae 0x422624
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b644
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x42251a
push dword [ebp + 8]
call fcn.00421802
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
mov dword [ebp - 0xc], edx
cmp eax, 0xffffffff
jne 0x422624
call fcn.00417a38
mov dword [eax], 0xd
call fcn.00417a4b
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x42251a
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.0041b644
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x42251a
xor eax, eax
jmp 0x422521
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x4abeee
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004abf6d
jae 0x4abefa
xor ecx, ecx
call fcn.004abf6d
jae 0x4abf24
xor eax, eax
call fcn.004abf6d
jae 0x4abf35
mov al, 0x10
call fcn.004abf6d
adc al, al
jae 0x4abf16
jne 0x4abf62
stosb byte es:[edi], al
jmp 0x4abefb
call fcn.004abf79
dec ecx
loop 0x4abf41
mov eax, ebp
call fcn.004abf77
jmp 0x4abf63
lodsb al, byte [esi]
shr eax, 1
je 0x4abf89
adc ecx, 2
mov ebp, eax
jmp 0x4abf63
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004abf77
cmp eax, 0x7d00
jae 0x4abf61
cmp eax, 0x500
jae 0x4abf62
cmp eax, 0x7f
ja 0x4abf63
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4abefb
pop ebp
ret 8
Function at 0x4015d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4d277f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CWnd::CWnd
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [esp + 0x30], ebx
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x44]
mov byte [esp + 0x30], 1
mov ecx, edi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [edi + 4]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0xf]
mov cl, byte [esp + 0xf]
mov byte [edi + 0xc], al
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov byte [edi + 0x1c], cl
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x2c], ebx
mov dword [edi + 0x34], ebx
mov ecx, 0x11
mov eax, 0xa
mov dword [esi + 0x7c], 0x4e16cc
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], 0x4e16b8
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ecx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], eax
mov byte [esp + 0x30], 5
mov dword [esi], 0x4e15f8
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push ebx
push ebx
lea edx, [esp + 0x20]
push eax
push edx
push ebx
push 0x5e2540
push ebx
mov ecx, esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call sub.MFC42.DLL_CWnd::Create
push ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x20]
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret