joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406802
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 8]
push 0xe
mov dword [ebp - 0x90], ebx
stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x8c]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0xc
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x53]
mov byte [ebp - 0x54], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
push 0x31
push dword [ebp + 8]
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x90]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x90]
mov byte [ebp - 0x75], 0x20
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 4]
call edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x54]
push 0x32
push eax
push 0x3ee
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004076f0
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetTextExtentPointA]
push dword [ebp - 0x20]
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x1c]
push eax
push 0x3ed
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
push 0xfffffffffffffffe
mov eax, ecx
add ecx, 2
cdq
sub eax, edx
pop edx
sar eax, 1
sub edx, eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x18], edx
push ebx
add eax, 5
push ecx
push eax
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x18]
push ebx
push 0x3ee
push edi
call esi
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40bbd2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0040acba
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
Function at 0x40fd06
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x40fd41
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x40fd1e
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40fd5d
dec esi
je 0x40fd56
dec esi
jne 0x40fd62
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x40110c
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov edi, dword [ebx + 0x60]
mov dl, 0x80
movsb byte es:[edi], byte [esi]
mov dh, 0x80
call dword [ebx]
jae 0x401112
xor ecx, ecx
call dword [ebx]
jae 0x401135
xor eax, eax
call dword [ebx]
jae 0x401148
mov dh, 0x80
inc ecx
mov al, 0x10
call dword [ebx]
adc al, al
jae 0x40112a
jne 0x401174
stosb byte es:[edi], al
jmp 0x401115
call fcn.0040118a
add dh, dh
sbb ecx, 1
jne 0x401151
call fcn.00401188
jmp 0x401170
lodsb al, byte [esi]
shr eax, 1
je 0x401194
adc ecx, ecx
jmp 0x40116d
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00401188
cmp eax, 0x7d00
jae 0x40116d
cmp ah, 5
jae 0x40116e
cmp eax, 0x7f
ja 0x40116f
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov dh, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x401115
sub edi, dword [ebx + 0x60]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x4013c1
Capabilities:
Encode data using xor

Disassembly:
mov edi, section..text
lea ebx, [edi + 0x21]
push 0xa
pop eax
push 4
pop ecx
pushal
push edi
call fcn.00401464
xchg ebp, eax
mov edx, dword [ebp + 0x3c]
mov esi, dword [edx + ebp + 0x78]
lea esi, [esi + ebp + 0x18]
lodsd eax, dword [esi]
xchg ecx, eax
lodsd eax, dword [esi]
push eax
lodsd eax, dword [esi]
add eax, ebp
xchg edx, eax
lodsd eax, dword [esi]
add eax, ebp
push eax
mov esi, edx
lodsd eax, dword [esi]
add eax, ebp
xor edx, edx
rol edx, 3
xor dl, byte [eax]
inc eax
cmp byte [eax], 0
jne 0x4013f5
mov eax, dword [esp]
add dword [esp], 2
mov edi, ebx
cmp dword [edi], edx
jne 0x401420
movzx eax, word [eax]
shl eax, 2
add eax, dword [esp + 4]
add eax, ebp
mov eax, dword [eax]
add eax, ebp
stosd dword es:[edi], eax
jmp 0x401421
scasd eax, dword es:[edi]
cmp dword [edi], 0
jne 0x401409
loop 0x4013f0
pop eax
pop eax
popal
dec eax
add edi, eax
loop 0x4013cf
mov ebp, 0x40146c
mov byte [ebp + 0x400], 0
mov esi, 0x4a2d9c
push 0x93600
push ecx
call dword [ebx + 0x24]
mov dword [ebx + 0x60], eax
sub esi, 4
mov ecx, dword [esi]
jecxz 0x401460
mov dword [ebx + 0x6c], ecx
sub esi, ecx
call fcn.0040119d
jmp 0x40144d
push ecx
call dword [ebx + 0xc]
Function at 0x10001070
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10040028]
push eax
call fcn.1001cc90
add esp, 4
mov ecx, 0x10040cec
call fcn.1001c600
cmp eax, 1
jne 0x10001098
mov eax, 1
jmp 0x100010ce
push 0x10036160
mov ecx, 0x10040cec
call fcn.1001c0b0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100010b7
push 1
call fcn.10027084
mov ecx, dword [ebp + 0x14]
push ecx
push 0x10036174
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x10001830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034d05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
push str.ababc1ab
lea ecx, [ebp - 0x48]
call fcn.10001660
mov dword [ebp - 4], 0
push 0x1003619c
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.100011c0
add esp, 0xc
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x100018c1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10001b10
jmp 0x1000195d
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0x4550
je 0x100018f5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10001b10
jmp 0x1000195d
mov edx, dword [ebp - 0x18]
movzx eax, word [edx + 0x18]
cmp eax, 0x10b
je 0x10001920
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10001b10
jmp 0x1000195d
lea ecx, [ebp - 0x30]
call fcn.100024f0
lea ecx, [ebp - 0x30]
call fcn.100024d0
push eax
call fcn.100013b0
add esp, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 4], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10001b10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10001b10
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001cb30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034fad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x40]
call fcn.1001a040
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.1001cf40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001cf80
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x28]
call fcn.1001cfa0
mov eax, dword [ebp - 0x10]
push eax
call fcn.10028944
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x40]
call fcn.10002660
push eax
lea ecx, [ebp - 0x40]
call fcn.100024d0
push eax
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1001d690
add esp, 0x10
test eax, eax
je 0x1001cbd8
push str.uncompress_failed
call fcn.100026f0
add esp, 4
push 1
call fcn.10027084
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
je 0x1001cbf4
push str.if__origSize___out_len_
call fcn.100026f0
add esp, 4
push 1
call fcn.10027084
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1001d4b0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.10028929
add esp, 4
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp + 8]
call fcn.1001a190
mov eax, dword [ebp - 0x1c]
or eax, 1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call fcn.1001a480
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10001b30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10001b10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1001cc90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034fd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push 0x100362f4
lea ecx, [ebp - 0x24]
call fcn.10001660
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0x20
je 0x1001ccfd
push 0x100362f8
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.100011c0
add esp, 0xc
mov byte [ebp - 4], 1
push 1
call fcn.10027084
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x24]
call fcn.1001cc70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.10001b10
lea ecx, [ebp - 0x24]
call fcn.100024f0
lea ecx, [ebp - 0x24]
call fcn.100024d0
push eax
call fcn.100013b0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10001b10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x75c008], 0x8088405
inc edx
mov dword [ebx + 0x75c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d254
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d285
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d26d
add dl, dl
jne 0x41d290
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2e1
xor eax, eax
add dl, dl
jne 0x41d29d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d37e
add dl, dl
jne 0x41d2ac
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2b7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2c2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d2d7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d27c
mov eax, 1
add dl, dl
jne 0x41d2ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d2fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2e6
sub eax, ebx
mov ebx, 1
jne 0x41d32d
mov ecx, 1
add dl, dl
jne 0x41d313
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d31e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d30a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d33b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d27c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d39f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d27c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f3b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x73f89e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f3ff
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
jmp 0x41f41e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f41e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f490
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f479
test esi, esi
jbe 0x41f490
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f46b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f490
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f448
jmp 0x41f490
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f490
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x73f8a5
ret
Function at 0x4205fc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x740c17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420637
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x420650
lea eax, [ebp - 0x10]
mov edx, dword [0x75e5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x420663
lea eax, [ebp - 0x10]
mov edx, dword [0x75e5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42066f
adc edx, 0
mov edx, dword [edx*4 + 0x75d3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4207e9
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4207dc
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4207dc
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x42077a
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x42077a
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x42077a
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x42077a
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4207dc
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4207dc
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4207dc
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4207dc
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420801
inc ebx
cmp ebx, 0x19
jne 0x420629
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x740c1e
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x109041f0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0x69
retf 0x3aee
loope 0x10904172
adc byte [eax + 0xd], 0xa9
in eax, dx
invalid

Function at 0x111ed000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x111ed00a
jmp 0x111ef00f
jmp fcn.10f73058

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
mov ecx, 0x5ea97b92
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x76e45a23
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0xc5acb8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c5ae08
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc5acde
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc5acca
add dl, dl
jne 0xc5ace9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc5ad3c
xor eax, eax
add dl, dl
jne 0xc5acf6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc5addd
add dl, dl
jne 0xc5ad05
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc5ad10
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc5ad1b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc5ad26
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc5ad32
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc5acd5
mov eax, 1
add dl, dl
jne 0xc5ad4a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc5ad55
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc5ad41
sub eax, ebx
mov ebx, 1
jne 0xc5ad88
mov ecx, 1
add dl, dl
jne 0xc5ad6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc5ad79
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc5ad65
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc5acd5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc5ad9f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc5adaa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc5ad96
cmp eax, 0x7d00
jae 0xc5adcd
cmp eax, 0x500
jb 0xc5adc8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc5acd5
cmp eax, 0x7f
ja 0xc5add0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc5acd5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc5adfe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc5acd5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404d32
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004054e0
pop ecx
mov esi, eax
test esi, esi
jne 0x404d65
push 1
call fcn.00404530
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404b70
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404dbb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404dde
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404dc6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404dd9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404dc1
lea eax, [ecx + 1]
push eax
call fcn.004054e0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404e05
push 1
call fcn.00404530
pop ecx
mov esi, ebx
jmp 0x404e3a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e0e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e35
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404e25
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e09
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404e51
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b63b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
inc esi
or esi, ecx
or esi, ecx
call fcn.0043b683
add ecx, 0x455b2d7c
sub ecx, 0x31ee4d22
mov esi, ecx
xor dword [eax], edx
add ecx, ecx
add ecx, ecx
and ecx, ecx
inc eax
or ecx, ecx
mov ecx, 0xf10e14ea
add ecx, 0x7546924d
cmp eax, ebx
jne fcn.0043b63b
push 0xa174cbcf
pop esi
add esi, 1
ret