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

Disassembly:
sub esp, 0x114
mov eax, dword [esp + 0x11c]
push ebp
push esi
push edi
push eax
call fcn.00527850
mov esi, dword [esp + 0x138]
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x525b5e
test ecx, ecx
je 0x525b5e
inc ecx
push ebx
push ecx
call fcn.00528b57
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00528b30
mov esi, eax
add esp, 0xc
test esi, esi
je 0x525af2
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push ebx
push ebp
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
test eax, eax
jne 0x525b46
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push 0
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x525b33
cmp eax, 0xea
jne 0x525b3b
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
call fcn.00528b1f
mov eax, dword [esp + 0x18]
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x114
ret
pop edi
pop esi
mov eax, edx
pop ebp
add esp, 0x114
ret
Function at 0x525c60
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x525cdf
push edi
call fcn.00526b30
add esp, 4
test eax, eax
jbe 0x525cdf
test esi, esi
je 0x525c9d
cmp esi, 0xffffffff
je 0x525c9d
push esi
call dword [sym.imp.kernel32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x525d21
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x525ccb
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x525cdf
jmp 0x525cda
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x525cdf
mov ebp, 1
test esi, esi
je 0x525d21
cmp esi, 0xffffffff
je 0x525d21
test ebp, ebp
jne 0x525d58
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x525d2e
call edi
test eax, eax
je 0x525d21
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x525d58
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x525d09
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x525d21
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x525d58
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x525d3b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call fcn.00526b30
inc eax
push eax
call fcn.005209a0
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret

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

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount_1]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x532a86
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep_1]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x532a86
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x532a67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x532e10
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x532e48
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x533b70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x533bb9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x534030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56ddc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00533be0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00533c60
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00533c60
lea ecx, [esi + 0xc]
call fcn.0055ebeb
lea ecx, [esi + 0x10]
call fcn.0055ebeb
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.005351f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.005351f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.005351f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0055ec60
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0055ec60
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x538510
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xd3516c]
xor edx, edx
cmp eax, edx
jne 0x538536
xor eax, eax
mov byte [eax + 0xd3506c], al
inc eax
cmp eax, 0x100
jl 0x53851e
mov dword [0xd3516c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xd3506c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5385c7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x53859a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x538568
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x538640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x538693
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x53867a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53f020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x56e1be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0053f940
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x9ff53c
call fcn.0055e9a1
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x53f0b3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0055e9a1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x53f0ac
push 0
mov ecx, eax
call fcn.00536150
mov dword [esi + 0xc], eax
jmp 0x53f0b5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x53f0b5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x561004
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x56103c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0055f0bb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0055f093
jmp 0x561048
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5626f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x562738
call fcn.005684ad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x562738
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x56272f
xor eax, eax
jmp 0x562740
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00562746
pop edi
pop esi
pop ebx
ret 4

Function at 0x5689dd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x568a0b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x568a29
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00568943
jmp 0x568a29
mov eax, dword [esi + 0x14]
test eax, eax
je 0x568a29
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00568943
test edi, edi
mov eax, edi
jne 0x568a13
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x4efadf
Capabilities:
Inspect section memory permissions

Disassembly:
or edx, 0x10
jmp 0x519c35
je 0x5769df
test eax, 0x80000000
je 0x42a8a7
or edx, 4
jmp 0x468842
or edx, 2
jmp 0x555e76
pop ebp
ret 4
jmp 0x519c35
jmp 0x519c35
je 0x423357
or edx, 0x80
jmp 0x4a27bd
jmp 0x519c35
or edx, 0x20
jmp 0x4e5530
test eax, 0x40000000
jmp 0x4279da
jmp 0x519c35
jmp 0x519c35
push ebp
dec ebp
shl ah, cl
bsf ebp, ebp
mov ebp, esp
shl ah, cl
mov eax, dword [ebp + 8]
xor edx, edx
cmp di, 0x53e2
test eax, 0x4000000
je 0x4efb05
or edx, 0x200
test eax, 0x20000000
je 0x4d65f6
test eax, 0x40000000
jmp 0x543c92
je 0x519c32
or edx, 8
jmp 0x4e7670
or edx, 1
mov eax, edx
xchg ebp, ebp
jmp 0x433d01
je 0x59378d
test eax, 0x80000000
je 0x4d0b2c
or edx, 0x40
jmp 0x4b90b9
jmp 0x519c35
test eax, 0x80000000
jmp 0x505d8f
test eax, 0x80000000
jmp 0x4ad12d

Function at 0x51e25d
Capabilities:
Parse pe header

Disassembly:
call fcn.00413a8c
mov edx, eax
bswap cx
xchg cx, cx
lea eax, [ebp - 0x14c]
bswap cx
mov ecx, 0xf8
jmp loc.00414ada
lea eax, [ebp - 0x54]
mov ecx, 0x40
movsx dx, ch
jmp 0x444617
mov dword fs:[eax], edx
jmp 0x4947b9
mov edx, edi
call fcn.0040676c
cmp word [ebp - 0x54], 0x5a4d
jmp 0x52ce06
push edx
jmp 0x555648
jmp fcn.004143ea
push ebp
xor ebp, 0x5ea81f69
stc
rol bp, 0xe0
mov ebp, esp
lea esp, [esp - 0x14c]
push ebx
mov bx, 0x6984
push esi
sub bx, bp
ror bh, cl
push edi
mov ebx, ecx
cmovb cx, dx
movzx cx, ah
mov esi, edx
mov edi, eax
cmovp ecx, edi
cmc
sub eax, eax
inc cx
mov dword [ebp - 8], eax
shrd ecx, edi, 0x15
sub eax, eax
mov ch, 0x86
mov dword [esi], eax
rol cl, 0x6a
sub eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov al, 0x9e
push ebp
cbw
movzx eax, di
push 0x47c2eb
not ah
xchg al, cl
lahf
push dword fs:[edx]
mov ax, cx
cmova eax, edx
setg al
mov dword fs:[edx], esp
xchg cl, dh
lahf
jmp 0x42d265
je 0x5891b9
mov eax, 0x418884
jmp 0x571f52
push eax
bswap eax
mov eax, edi
jmp 0x41da32
call fcn.004043cc
xor eax, eax
bswap dx
movzx cx, ch
pop edx
pop ecx
xchg cl, cl
pop ecx
jmp 0x436852
mov eax, dword [ebp - 0x18]
sete dh
cdq
jmp 0x48b543

Function at 0x401a22
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.0040161c
Function at 0x40140e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
push ebx
push esi
push edi
cmp word [eax], cx
jne 0x40152a
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x40152a
mov edi, dword [0x44c00c]
push 4
push 0x2000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x40146f
push 4
push 0x2000
push dword [ebx + 0x50]
push eax
call edi
mov esi, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x40152a
push 0x14
push 0
call dword [0x44c008]
push eax
call dword [section..rdata]
mov edi, eax
xor eax, eax
push 4
push 0x1000
mov dword [edi + 4], esi
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
push dword [ebx + 0x50]
push esi
call dword [0x44c00c]
push 4
push 0x1000
push dword [ebx + 0x54]
push esi
call dword [0x44c00c]
mov ecx, dword [ebx + 0x54]
mov esi, eax
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push esi
call fcn.00402b20
mov edx, dword [ebp + 8]
push edi
push ebx
push edx
mov eax, dword [edx + 0x3c]
add eax, esi
mov esi, dword [ebp - 4]
mov dword [edi], eax
mov dword [eax + 0x34], esi
call fcn.0040110f
mov eax, esi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x4014f0
push eax
push edi
call fcn.00401274
pop ecx
pop ecx
push edi
call section..text
pop ecx
test eax, eax
je 0x401523
push edi
call fcn.004011af
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x40151f
add eax, esi
je 0x401523
push 0
xor ebx, ebx
inc ebx
push ebx
push esi
call eax
test eax, eax
je 0x401523
mov dword [edi + 0x10], ebx
mov eax, edi
jmp 0x40152c
push edi
call fcn.004012fa
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401531
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x48e680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0xa
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10], 0x2d6c6c44
push eax
mov dword [ebp - 0xc], 0x39356573
mov word [ebp - 8], 0x39
call fcn.004015f9
push dword [ebp + 0xc]
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.0040158e
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop esi
call fcn.004017a5
leave
ret

Function at 0x40158e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
mov edi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
jbe 0x4015f5
push ebx
mov ebx, dword [ebp + 8]
inc esi
and esi, 0x800000ff
jns 0x4015b5
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esi + ebx]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x4015cd
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + ebx]
mov byte [esi + ebx], al
mov byte [edi + ebx], cl
movzx eax, byte [esi + ebx]
mov ecx, dword [ebp - 4]
add eax, edx
mov edx, dword [ebp + 0xc]
movzx eax, al
mov al, byte [eax + ebx]
xor byte [ecx + edx], al
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp + 0x10]
jb 0x4015a4
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4015f9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x48e680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x404]
push esi
push edi
push 0x400
xor esi, esi
push esi
push eax
call fcn.004030a0
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
xor edx, edx
mov byte [ebx + ecx], cl
mov eax, ecx
div dword [ebp + 0x10]
movzx eax, byte [edx + edi]
mov dword [ebp + ecx*4 - 0x404], eax
inc ecx
cmp ecx, 0x100
jl 0x40162e
mov edi, esi
mov dl, byte [ebx + edi]
mov ecx, dword [ebp + edi*4 - 0x404]
movzx eax, dl
add ecx, eax
add esi, ecx
and esi, 0x800000ff
jns 0x40166f
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebx + esi]
mov byte [ebx + edi], al
inc edi
mov byte [ebx + esi], dl
cmp edi, 0x100
jl 0x40164e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004017a5
leave
ret
Function at 0x40be97
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004062bb
mov dword [ebp - 0x14], eax
cmp dword [0x4ac6d0], esi
jne 0x40bf8a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40bf17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c06a
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c06a
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c06a
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ac6d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ac6d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ac6d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ac6e0], eax
test eax, eax
je 0x40bf87
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ac6dc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40bfaf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40bfa2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40bfc4
push 4
pop eax
jmp 0x40c06c
cmp dword [ebp - 0x14], esi
je 0x40bfc4
push dword [0x4ac6d0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40bfa9
mov eax, dword [0x4ac6dc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c022
cmp dword [0x4ac6e0], edi
je 0x40c022
push eax
call ebx
push dword [0x4ac6e0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c022
test eax, eax
je 0x40c022
call ecx
test eax, eax
je 0x40c017
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c017
test byte [ebp - 8], 1
jne 0x40c022
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c052
mov eax, dword [0x4ac6d4]
cmp eax, edi
je 0x40c04f
push eax
call ebx
test eax, eax
je 0x40c04f
call eax
mov esi, eax
test esi, esi
je 0x40c04f
mov eax, dword [0x4ac6d8]
cmp eax, edi
je 0x40c04f
push eax
call ebx
test eax, eax
je 0x40c04f
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ac6d0]
call ebx
test eax, eax
je 0x40c06a
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c06c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403a58
mov esp, ebp
pop ebp
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401e52
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp], 0x4062b1
call sym._system
mov dword [0x408024], 0
mov dword [esp], 0
call sym._listeyioku
mov dword [ebp - 0x1c], 0
jmp 0x401ecc
mov eax, dword [ebp - 0x1c]
shl eax, 2
lea ecx, [eax + 0x408180]
mov eax, dword [ebp - 0x1c]
shl eax, 2
lea edx, [eax + 0x408120]
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x1e
add eax, 0x4081e0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.KOD:__d__YEMEK:_s_YEMEK_FIYATI:_s_HAZIRLANMA_SURESI:_s_n
call sym._printf
add dword [ebp - 0x1c], 1
mov eax, dword [0x408024]
cmp dword [ebp - 0x1c], eax
jl 0x401e86
mov dword [esp], str._nGeri_donmek_icin__50___Siparis_edilcek_yemek_kodu:
call sym._printf
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0x4062ae
call sym._scanf
lea eax, [ebp - 0x25]
mov dword [esp + 4], eax
mov dword [esp], 0x406325
call sym._scanf
movzx eax, byte [ebp - 0x25]
cmp al, 0x67
jne 0x401f1a
mov eax, 0
jmp 0x402033
mov dword [esp + 4], 0x406328
mov dword [esp], str.C:UsersBerkDesktopprojeMusteri_binDebug_siparisler.txt
call sym._fopen
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
shl eax, 2
lea esi, [eax + 0x408120]
mov dword [esp], 4
call sym._guncelzaman
mov dword [ebp - 0x2c], eax
mov dword [esp], 3
call sym._guncelzaman
mov dword [ebp - 0x30], eax
mov dword [esp], 2
call sym._guncelzaman
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
shl eax, 2
add eax, 0x408180
mov dword [esp], eax
call sym._atoi
mov ebx, eax
mov dword [esp], 1
call sym._guncelzaman
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._dakikatopla
mov dword [ebp - 0x38], eax
mov dword [esp], 1
call sym._guncelzaman
mov edi, eax
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x1e
lea ebx, [eax + 0x4081e0]
call sym._siparisidolustur
mov dword [esp + 0x2c], esi
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x28], edx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x24], ecx
mov esi, dword [ebp - 0x34]
mov dword [esp + 0x20], esi
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], str.122312
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.122312
mov dword [esp + 4], str.SIP_s__d_2__s__s__04d__04d__02d_02d_d__s
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x1e
add eax, 0x4081e0
mov dword [esp + 4], eax
mov dword [esp], str._s_siparisi_basariyla_alindi._n
call sym._printf
jmp 0x401ed6
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret