joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402678
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004030d8
test esi, esi
jne 0x4026ae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004031c8
jmp 0x4026cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040258c
mov edi, eax
test esi, esi
je 0x4026cc
cmp dword [ebx], 0
je 0x4026cc
dec esi
jmp 0x4026b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40287c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40800c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402914
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4028f4
xor eax, eax
push ebp
push 0x4028ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402930
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4028f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40800c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40800c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402f5c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x402fbd
cmp word [0x409208], 0xd7b2
jne 0x402f85
cmp dword [0x409210], 0
jbe 0x402f85
mov eax, 0x409204
call dword [0x409220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402fe4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408018], 0
jne 0x402fd9
push 0
push 0x40804c
push 0x408054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4036b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40371e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403228
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040275c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403708
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403725
lea eax, [ebp - 0x10]
call fcn.004030d8
ret
Function at 0x403dcc
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
movzx eax, word [0x40969c]
cmp eax, dword [0x4096a0]
jb 0x403e52
push 0
push 0x4096a0
mov eax, dword [0x408864]
mov eax, dword [eax]
mov edx, 0x8000
call fcn.004059c8
push eax
mov eax, dword [0x409694]
push eax
mov eax, dword [0x408874]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [0x408860]
mov ax, word [eax + 6]
and ax, 1
cmp ax, 1
jne 0x403e49
mov esi, dword [0x4096a0]
dec esi
test esi, esi
jl 0x403e49
inc esi
xor ebx, ebx
call fcn.00406b24
mov edx, dword [0x409694]
xor byte [edx + ebx], al
mov eax, dword [0x409694]
mov al, byte [eax + ebx]
call fcn.00406a34
inc ebx
dec esi
jne 0x403e2a
mov word [0x40969c], 0
cmp dword [0x4096a0], 0
jne 0x403e73
mov eax, dword [0x408864]
xor edx, edx
mov dword [eax], edx
mov word [0x40969c], 0
or eax, 0xffffffff
pop esi
pop ebx
ret
movzx eax, word [0x40969c]
mov edx, dword [0x409694]
movzx eax, byte [edx + eax]
inc word [0x40969c]
pop esi
pop ebx
ret

Function at 0x405168
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403440
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x405181
test al, 0x10
jne 0x405185
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4055a0
Capabilities:
Get geographical location

Disassembly:
push esi
push edi
add esp, 0xfffffff8
push 7
lea edx, [esp + 4]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
xor esi, esi
mov edi, 7
mov eax, esp
mov dl, byte [eax]
mov ecx, edx
add cl, 0xd0
sub cl, 0xa
jae 0x4055e0
mov edx, esi
add edx, edx
lea edx, [edx + edx*4]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
sub edx, 0x30
mov esi, edx
jmp 0x4055ed
test dl, dl
je 0x4055f1
call sub.kernel32.dll_GetACP
mov esi, eax
jmp 0x4055f1
inc eax
dec edi
jne 0x4055c0
mov eax, esi
pop ecx
pop edx
pop edi
pop esi
ret

Function at 0x40592c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push ebx
push esi
push ecx
push edx
push eax
call sub.kernel32.dll_WriteFile_1
mov ebx, eax
mov eax, dword [esi]
add dword [0x409814], eax
push 0
mov eax, dword [0x409814]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
fild qword [ebp - 8]
mov eax, dword [0x409810]
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
fild qword [ebp - 0x10]
fdivp st(1)
fmul dword [0x4059a0]
call fcn.004026d8
push eax
push 0x402
mov eax, dword [0x40980c]
push eax
call sub.user32.dll_SendMessageA
call fcn.00405918
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405a08
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x409820
mov edx, 0x8000
mov eax, dword [edi]
call fcn.004059c8
add eax, 2
call fcn.00402448
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x405af0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jle 0x405ad5
push 0
lea eax, [ebp - 4]
push eax
mov edx, 0x8000
mov eax, dword [edi]
call fcn.004059c8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4096c8]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 4]
sub dword [edi], eax
mov ax, word [0x40982e]
and ax, 1
cmp ax, 1
jne 0x405aa6
mov esi, dword [ebp - 4]
dec esi
test esi, esi
jl 0x405aa6
inc esi
xor ebx, ebx
call fcn.00406b24
mov edx, dword [ebp - 8]
xor al, byte [edx + ebx]
mov edx, dword [ebp - 8]
mov byte [edx + ebx], al
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx]
call fcn.00406a34
inc ebx
dec esi
jne 0x405a86
lea eax, [ebp - 4]
push eax
push 0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [0x409824]
call fcn.0040592c
mov ecx, 0x40981c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.004059a4
cmp dword [edi], 0
jg 0x405a44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405af7
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00402468
ret

Function at 0x405c2c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403430
xor eax, eax
push ebp
push 0x405d0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403240
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x405c89
mov eax, dword [ebp - 4]
call fcn.00403240
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.00405314
cmp al, 2
je 0x405c89
mov eax, dword [ebp - 4]
call fcn.00403240
mov edx, eax
dec edx
lea eax, [ebp - 4]
call fcn.00403570
mov eax, dword [ebp - 4]
call fcn.00403240
cmp eax, 3
jl 0x405cef
mov eax, dword [ebp - 4]
call fcn.00403440
mov edx, eax
lea eax, [ebp - 8]
call fcn.004031f8
mov eax, dword [ebp - 8]
call fcn.00405168
test al, al
jne 0x405cef
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004051dc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040338c
je 0x405cef
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004051dc
mov eax, dword [ebp - 0x10]
call fcn.00405c2c
push 0
mov eax, dword [ebp - 4]
call fcn.00403440
push eax
call sub.kernel32.dll_CreateDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d11
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004030fc
ret
Function at 0x406a34
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
mov edx, 0x40984c
and eax, 0xff
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov ebx, dword [eax*4 + 0x408244]
shr ecx, 8
and ecx, 0xffffff
xor ebx, ecx
mov dword [edx], ebx
and ebx, 0xff
add dword [edx + 4], ebx
imul eax, dword [edx + 4], 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
mov ecx, dword [edx + 8]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x408244]
shr ecx, 8
and ecx, 0xffffff
xor eax, ecx
mov dword [edx + 8], eax
pop ebx
ret

Function at 0x406b44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00403430
xor eax, eax
push ebp
push 0x406bef
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp + 8], 0
je 0x406bd9
mov eax, dword [ebp + 8]
call fcn.00406a94
xor ebx, ebx
call fcn.00406b24
xor edx, edx
mov dl, bl
xor al, byte [esi + edx + 0xc]
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
call fcn.00406a34
xor eax, eax
mov al, bl
mov dl, byte [ebp - 5]
mov byte [esi + eax], dl
inc ebx
cmp bl, 0xc
jne 0x406b7c
mov bl, byte [esi + 0xb]
and di, 8
cmp di, 8
je 0x406bc7
mov eax, dword [ebp - 4]
call fcn.00403b50
call fcn.00403b54
cmp bl, al
sete al
mov ebx, eax
jmp 0x406bd9
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
sete al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bf6
lea eax, [ebp + 8]
call fcn.004030d8
ret

Function at 0x407500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10000
call fcn.00402448
mov dword [ebp - 8], eax
xor ebx, ebx
push ebp
push 0x4075b5
push dword fs:[ebx]
mov dword fs:[ebx], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0x10000
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x408874]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov cl, 1
mov dx, word [ebp - 0xc]
sub dx, 4
test dx, dx
jb 0x40759f
inc edx
xor eax, eax
movzx esi, ax
mov ebx, dword [ebp - 8]
cmp byte [ebx + esi], 0x50
jne 0x407599
movzx ebx, ax
mov edi, dword [ebp - 8]
cmp byte [edi + ebx + 1], 0x4b
jne 0x407599
movzx ebx, ax
mov edi, dword [ebp - 8]
cmp byte [edi + ebx + 2], 3
jne 0x407599
movzx ebx, ax
mov edi, dword [ebp - 8]
cmp byte [edi + ebx + 3], 4
jne 0x407599
test cl, cl
je 0x407594
xor ecx, ecx
jmp 0x407599
mov dword [ebp - 4], esi
jmp 0x40759f
inc eax
dec dx
jne 0x407559
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4075bc
mov eax, dword [ebp - 8]
call fcn.00402468
ret
Function at 0x405080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00405a20
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x40f2b6
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f353
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f353
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f353
push 4
push 0xffffffffffffffff
push esi
push 0x40fa6d
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f353
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f31e
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f353
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f359
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f355

Function at 0x4146de
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x4146ee
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x4146f4
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x41471c
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x43a5e0]
test ax, ax
jne 0x414703
mov esi, ecx
jmp 0x41471f
movzx esi, si
pop edi
cmp cx, si
je 0x41473c
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x43a5e0]
test cx, cx
jne 0x414720
mov eax, 0x4390d8
jmp 0x414744
imul eax, edx, 0x1a
add eax, 0x43a5e2
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4238c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x4238cf
pop dword [ebp - 0x14]
mov eax, 0xbacaa662
add eax, 0x4577926d
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x43af8
push 0
mov eax, 0x416f39ac
add eax, 0xbed3b954
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x4773
xor ebx, ebx
add ebx, eax
mov edx, 0xd720f129
sub edx, 0xd6dc3729
add edx, dword [ebp - 0x14]
mov edi, 0xcdac6ef0
xor dword [ebp - 8], 0xc8a5ccb1
mov esi, dword [edx]
xor esi, edi
xor dword [ebp - 0xc], 0xd23396c3
mov dword [ebx], esi
sub dword [ebp - 8], ebx
add ebx, 4
add edx, 0xb125b819
sub edx, 0xb125b815
loop 0x423924
add eax, 0x2d3288aa
add eax, 0xd2ce87f5
xor ebx, ebx
add ebx, eax
add eax, 0xb97ce4f7
add eax, 0x46831b0e
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40288e
pop dword [ebp - 0x18]
mov eax, 0x40288e
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x92928cc9
add dword [ebp - 0x28], 0xbbbfb882
mov dword [ebp - 0x24], 0x9bd85233
add dword [ebp - 0x24], 0x965afa12
mov dword [ebp - 0x20], 0x18d32f99
sub dword [ebp - 0x20], 0xcc86eb6b
mov dword [ebp - 0x1c], 0xfaced226
sub dword [ebp - 0x1c], 0xfaced226
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xd6235e82
sub dword [ebp - 0x28], 0x61b0f52c
mov dword [ebp - 0x24], 0x5c1aa3a9
add dword [ebp - 0x24], 0xe551bdcc
mov dword [ebp - 0x20], 0xf79e5bc3
add dword [ebp - 0x20], 0x6bd110a9
mov dword [ebp - 0x1c], 0xc7d6a079
sub dword [ebp - 0x1c], 0xc7d6a079
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xf7dc91a3
sub eax, 0xf79c20fb
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39f76
push 0
call eax
mov ecx, 0xf00ebb26
add ecx, 0xff19a55
xor edx, edx
add edx, eax
mov edi, 0x410000
add edi, dword [ebp - 0x18]
mov esi, 0x2139c086
sub esi, 0x7db7223e
add dword [ebp - 0xc], ecx
mov ebx, dword [edi]
xor ebx, esi
xor dword [ebp - 0xc], 0x5ed7b6cb
mov dword [edx], ebx
sub dword [ebp - 0x14], 0x627840dc
add edx, 0xdc87615b
add edx, 0x23789ea9
add edi, 0x8f8a05b5
add edi, 0x7075fa4f
loop 0x4029a2
add eax, 0x148bf
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x847bfeba
add ecx, 0x7bc40146
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

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

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00402767
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00402767
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00402767
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00402767
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00402767
mov dword [0x41203c], eax
call fcn.00402767
test eax, eax
jge 0x402550
push 8
call fcn.00402767
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00402767
pop ecx
push 1
call fcn.00402767
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00402767
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00402767
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00402767
jmp 0x402495

Function at 0x402767
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402776
pop dword [ebp - 0x44]
mov eax, 0x975da507
sub eax, 0x971d7d91
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x36ee2
push 0
mov eax, 0x8f50a73b
add eax, 0x70f0399d
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0xabba8f17
add ecx, 0x5445ad5b
xor esi, esi
add esi, eax
mov edi, 0x331cc8
add edi, 0xe1efc
add edi, dword [ebp - 0x44]
mov ebx, 0xeb85fed6
sub ebx, 0x2c15c773
xor dword [ebp - 4], edi
mov edx, dword [edi]
sub dword [ebp - 0x24], ebx
sub edx, ebx
mov dword [ebp - 4], 0xa1c54016
mov dword [esi], edx
xor dword [ebp - 0x10], edi
add esi, 4
add edi, 0x8fc58d28
add edi, 0x703a72dc
loop 0x4027d7
add eax, 0x946b13e3
add eax, 0x6b95d0b8
mov ebx, eax
add eax, 5
mov ecx, 0xc7b2b60d
add ecx, 0x388d49f3
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40e410
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x1c
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
test esi, esi
jne 0x40e43a
jmp 0x40e463
je 0x40e470
add ebx, eax
add ebp, eax
cmp esi, ebx
jbe 0x40e463
mov eax, esi
mov dword [esp + 4], ebp
mov dword [esp], edi
sub eax, ebx
mov dword [esp + 8], eax
call sub.msvcrt.dll__read
test eax, eax
jns 0x40e430
call sub.msvcrt.dll__errno
mov eax, dword [eax]
add esp, 0x1c
pop ebx
pop esi
neg eax
pop edi
pop ebp
ret
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
mov eax, 0xffffffea
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f0d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
test ebx, ebx
not eax
je 0x40f0fe
add ebx, edx
add edx, 1
mov ecx, eax
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42a9c0]
cmp edx, ebx
jne 0x40f0e5
not eax
pop ebx
ret
Function at 0x412710
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov esi, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], edx
mov dword [esp], esi
mov dword [esp + 0x28], eax
call sub.msvcrt.dll_strlen
movzx ebp, al
mov dword [esp + 0x2c], eax
mov ebx, dword [ebx]
lea eax, [ebp + 3]
mov ecx, dword [0x436de8]
xor edx, edx
sar eax, 2
lea eax, [eax*4 + 8]
mov word [esp + 0x1e], ax
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [eax + ebx - 1]
div ecx
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, ebx
div ecx
cmp eax, dword [esp + 0x14]
je 0x41279d
test edi, edi
je 0x41281c
movzx edx, word [edi + 4]
sub edx, ebx
mov ebx, dword [esp + 0x14]
mov eax, ebx
imul eax, ecx
imul ebx, ecx
add eax, edx
mov word [edi + 4], ax
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
mov eax, dword [esp + 0x24]
movzx edi, word [esp + 0x1e]
mov edx, dword [esp + 0x50]
add eax, ebx
movzx ebx, byte [esp + 0x2c]
cmp ebp, 4
mov dword [eax], edx
mov word [eax + 4], di
lea ecx, [eax + 8]
mov byte [eax + 6], bl
movzx ebx, byte [esp + 0x28]
mov byte [eax + 7], bl
jae 0x4127f0
test ebp, ebp
je 0x4127dc
movzx edx, byte [esi]
test ebp, 2
mov byte [eax + 8], dl
jne 0x412810
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add dword [esi], edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi]
lea edi, [eax + 0xc]
and edi, 0xfffffffc
mov dword [eax + 8], edx
mov edx, dword [esi + ebp - 4]
mov dword [ecx + ebp - 4], edx
sub ecx, edi
sub esi, ecx
add ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x4127dc
movzx edx, word [esi + ebp - 2]
mov word [ecx + ebp - 2], dx
jmp 0x4127dc
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], str.add_dentry
mov dword [esp + 4], str.critical_error:__s:_no_prev_n
add eax, 0x40
mov dword [esp], eax
call fcn.004126e0
mov dword [esp + 4], 1
mov dword [esp], 0x436e40
call sub.msvcrt.dll_longjmp

Function at 0x415af0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
ret

Function at 0x415de0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
movzx eax, word [esp + 8]
test ebx, ebx
je 0x415e0f
add ebx, edx
add edx, 1
mov ecx, eax
shr ax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor ax, word [ecx + ecx + 0x42be80]
cmp edx, ebx
jne 0x415df4
pop ebx
ret