joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001129
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], esp
push 0
xor eax, eax
call dword [0x116fde6b]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001175
push 0
push 0x40100dc
push 6
call fcn.100033ab
add esp, 0xc
push 0
mov ebx, 0x104
call fcn.10003740
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x100011b6
push 0x2e
push 0x40100dc
push 6
call fcn.100033ab
add esp, 0xc
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100011c6
push ebx
call fcn.100033a5
add esp, 4
call fcn.100013a1
push 1
push 0
call fcn.100013b4
mov eax, 0x100152a0
test eax, eax
je 0x100011f3
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.100033b7
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x116fde67]
test ebx, ebx
je 0x10001207
push ebx
call fcn.100033a5
add esp, 4
pop eax
mov dword [0x116fde67], eax
call fcn.1000145b
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001229
push ebx
call fcn.100033a5
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.1000218d
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000132c
mov eax, 0x116b5fa8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call fcn.10002f5d
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000126a
push ebx
call fcn.100033a5
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 0
push 0
push dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push dword [ebp - 0xc]
call fcn.10003299
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [0x116fde6f]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001355
push 0x210
push 0x40100dc
push 6
call fcn.100033ab
add esp, 0xc
call fcn.100032d2
call fcn.1000330d
mov dword [ebp - 0x10], esp
xor eax, eax
call dword [0x116fde6f]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10001388
push 0x260
push 0x40100dc
push 6
call fcn.100033ab
add esp, 0xc
jmp 0x1000138d
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000139d
push ebx
call fcn.100033a5
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x10002829
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x10002857
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x1000284e
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x10002846
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10002878
mov esp, ebp
pop ebp
ret

Function at 0x1000287c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x100028e8
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x10002915
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x10002904
xor ecx, eax
xor edx, ebx
dec edi
jne 0x100028f5
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x1000293b
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x100028dc
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10002967
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002f5d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x10002f6d
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x10002fc2
push dword [ebp + 8]
call fcn.1000316e
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x10002fc2
xor eax, eax
jmp 0x10002fc7
mov eax, 1
test eax, eax
je 0x10002fd9
mov eax, 0
jmp 0x10003168
push 0x3c
push dword [ebp + 8]
call fcn.100031b0
push eax
call fcn.1000318a
push eax
push dword [ebp + 8]
call fcn.100031b0
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.1000318a
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x10003034
push 0x7c
push dword [ebp - 4]
call fcn.100031b0
push eax
call fcn.1000318a
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10003034
xor eax, eax
jmp 0x10003039
mov eax, 1
test eax, eax
je 0x1000304b
mov eax, 0
jmp 0x10003168
push 0x78
push dword [ebp - 4]
call fcn.100031b0
push eax
call fcn.1000318a
push eax
push dword [ebp + 8]
call fcn.100031b0
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.100031b0
push eax
call fcn.1000318a
push eax
push dword [ebp + 8]
call fcn.100031b0
push eax
call fcn.1000318a
push eax
push dword [ebp + 8]
call fcn.100031b0
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.100031b0
push eax
call fcn.1000318a
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.100031d7
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x1000315b
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.100031b0
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.100031fe
test eax, eax
je 0x1000313e
push 0x1c
push dword [ebp - 8]
call fcn.100031b0
push eax
call fcn.1000318a
push eax
push dword [ebp + 8]
call fcn.100031b0
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.10003232
push eax
push dword [ebp - 0x24]
call fcn.100031b0
push eax
call fcn.1000318a
push eax
push dword [ebp + 8]
call fcn.100031b0
jmp 0x10003168
push dword [ebp - 0x14]
call fcn.1000325a
push eax
push dword [ebp - 0x18]
call fcn.100031b0
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x100030c7
add esp, 0xc
mov eax, 0
jmp 0x10003168
mov esp, ebp
pop ebp
ret 8

Function at 0x1000331c
Capabilities:
Check for trap flag exception

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
pushfd
or dword [esp], 0x100
popfd
clc
call fcn.10003341

Function at 0x10003b30
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10003b4e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10003b43
pop esi
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x474008]
jne 0x40100a
repz ret
jmp fcn.00401910

Function at 0x4050fa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004038b7
and dword [ebp - 4], 0
cmp dword [0x475d70], 0
mov ebx, eax
jne 0x4051ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40525c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40525c
push eax
call fcn.00403845
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x475d70], eax
call esi
push eax
call fcn.00403845
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x475d74], eax
call esi
push eax
call fcn.00403845
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x475d78], eax
call esi
push eax
call fcn.00403845
pop ecx
mov dword [0x475d80], eax
test eax, eax
je 0x4051ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403845
pop ecx
mov dword [0x475d7c], eax
mov eax, dword [0x475d7c]
cmp eax, ebx
je 0x405203
cmp dword [0x475d80], ebx
je 0x405203
push eax
call fcn.004038c0
push dword [0x475d80]
mov esi, eax
call fcn.004038c0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405203
test edi, edi
je 0x405203
call esi
test eax, eax
je 0x4051fa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4051fa
test byte [ebp - 0xc], 1
jne 0x405203
or dword [ebp + 0x10], 0x200000
jmp 0x40523c
mov eax, dword [0x475d74]
cmp eax, ebx
je 0x40523c
push eax
call fcn.004038c0
pop ecx
test eax, eax
je 0x40523c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40523c
mov eax, dword [0x475d78]
cmp eax, ebx
je 0x40523c
push eax
call fcn.004038c0
pop ecx
test eax, eax
je 0x40523c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x475d70]
call fcn.004038c0
pop ecx
test eax, eax
je 0x40525c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40525e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x470250
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x404
mov eax, dword [0x474008]
xor eax, esp
mov dword [esp + 0x400], eax
cmp dword [0x85b89c], 0x114e
mov eax, dword [esp + 0x408]
mov dword [0x85b6e0], eax
jne 0x470291
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00401000
add esp, 0x404
ret
Function at 0x4702c0
Capabilities:
Get hostname

Disassembly:
sub esp, 0xc18
mov eax, dword [0x474008]
xor eax, esp
mov dword [esp + 0xc14], eax
mov eax, dword [esp + 0xc1c]
push edi
xor edi, edi
cmp dword [esp + 0xc24], edi
mov dword [esp + 0xc], eax
jle 0x4703b0
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push esi
lea esp, [esp]
lea esi, [esp + 0x1c]
mov dword [esp + 0x14], 5
mov dword [esp + 0x1c], 0
call fcn.004702b0
mov eax, dword [esp + 0x1c]
add eax, 0x46
mov dword [esp + 0x14], eax
nop
sub dword [esp + 0x14], 0x46
mov ecx, dword [esp + 0x18]
movsx edx, byte [ecx + edi]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
xor dword [esp + 0x10], eax
mov esi, dword [esp + 0xc30]
mov al, byte [esp + 0x10]
mov byte [ecx + edi], al
cmp esi, 0xf
jne 0x4703a4
push 0
push 0
call ebp
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push str.poxifuyubucicoyiruholefabofukup
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
lea eax, [esp + 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
push str.veratupamolowubifizetoxeduzi
push 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
inc edi
cmp edi, esi
jl 0x470300
pop esi
pop ebp
pop ebx
cmp dword [esp + 0xc24], 0x2d
pop edi
jne 0x4703cf
mov dword [0x85b9d0], 0xa62e7790
mov dword [0x85b9d4], 0xffffffff
mov ecx, dword [esp + 0xc14]
xor ecx, esp
call fcn.00401000
add esp, 0xc18
ret

Function at 0x4703f0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x804
mov eax, dword [0x474008]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x474fe0]
push esi
mov esi, dword [0x85b89c]
push edi
mov edi, dword [0x85b6e4]
push eax
call fcn.00470250
add esp, 4
cmp dword [0x85b89c], 0x2f
jne 0x47042f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
call fcn.004702c0
add esp, 8
cmp dword [0x85b89c], 0x568
pop edi
pop esi
jne 0x470468
push 0
push 0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push 0
lea edx, [esp + 0x404]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret
Function at 0x40caa7
Capabilities:
Compute adler32 checksum

Disassembly:
inc ecx
movzx eax, byte [ebx]
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 1]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 2]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 3]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 4]
inc ebp
add edx, ecx
inc esp
add ecx, eax
enter 0xf41, 0xffffffffffffffb6
inc ebx
add eax, 0x44d10345
enter 0xf41, 0xffffffffffffffb6
inc ebx
add eax, 0x44d10345
add ecx, eax
inc ecx
movzx eax, byte [ebx + 6]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 7]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 8]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 9]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 0xa]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 0xb]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 0xc]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 0xd]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 0xe]
inc ebp
add edx, ecx
inc esp
add ecx, eax
inc ecx
movzx eax, byte [ebx + 0xf]
inc ebp
add edx, ecx
dec ecx
add ebx, 0x10
inc esp
add ecx, eax
inc ebp
add edx, ecx
dec eax
sub ecx, 1
jne 0x40ca75
dec ebp
test eax, eax
je 0x40cb4a
inc ecx
movzx eax, byte [ebx]
dec ecx
inc ebx
inc esp
add ecx, eax
inc ebp
add edx, ecx
dec ecx
sub eax, 1
jne 0x40cb37
mov eax, 0x80078071
inc ecx
mul ecx
mov eax, 0x80078071
shr edx, 0xf
imul ecx, edx, 0xffff000f
inc ecx
mul edx
inc esp
add ecx, ecx
shr edx, 0xf
imul ecx, edx, 0xffff000f
inc esp
add edx, ecx
inc ecx
shl edx, 0x10
inc ebp
or edx, ecx
inc ecx
mov eax, edx
ret

Function at 0x4120a3
Capabilities:
Parse pe header

Disassembly:
dec eax
mov dword [esp + 8], ebx
inc esp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
push ebp
dec eax
mov ebp, esp
dec eax
sub esp, 0x50
mov ebx, ecx
inc ebp
test eax, eax
jne 0x411f36
xor ecx, ecx
call dword [0x19357]
dec eax
test eax, eax
je 0x411f36
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x411f36
dec eax
arpl word [eax + 0x3c], cx
dec eax
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411f36
mov eax, 0x20b
cmp word [ecx + 0x18], ax
jne 0x411f36
cmp dword [ecx + 0x84], 0xe
jbe 0x411f36
cmp dword [ecx + 0xf8], 0
je 0x411f36
mov ecx, ebx
call fcn.00411fd7
dec eax
lea eax, [ebp + 0x18]
mov byte [ebp + 0x28], 0
dec eax
mov dword [ebp - 0x20], eax
dec esp
lea ecx, [ebp - 0x2c]
dec eax
lea eax, [ebp + 0x20]
dec eax
mov dword [ebp - 0x18], eax
dec esp
lea eax, [ebp - 0x20]
dec eax
lea eax, [ebp + 0x28]
dec eax
mov dword [ebp - 0x10], eax
dec eax
lea edx, [ebp - 0x28]
mov eax, 2
dec eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00411dc7
cmp dword [ebp + 0x20], 0
je 0x411f83
dec eax
mov ebx, dword [esp + 0x60]
dec eax
add esp, 0x50
pop ebp
ret
mov ecx, ebx
call fcn.00411f8b
int3
inc ebp
xor eax, eax
xor edx, edx
jmp 0x411ecf
Function at 0x401710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4017cc
cmp byte [esi + 0x3d], 0
je 0x4017cc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4017ba
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x401781
sub eax, 1
je 0x401785
sub eax, 2
jne 0x4017ba
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403717
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4017a3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4017ba
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403717
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403717
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00403717
mov esp, ebp
pop ebp
ret
Function at 0x4017e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx]
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40183d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x401800
mov eax, dword [esi]
jmp 0x40191b
cmp eax, 0x4e0
jb 0x40191b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x401856
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x4018a1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401bf0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401c26
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [0x4083e8], eax
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push 0
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401c67
pop ebx
pop edi
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4087f4], 0
test ebx, ebx
je 0x401ccc
xor ecx, ecx
xor esi, esi
xor edi, edi
xor edx, edx
mov eax, dword [0x4083e8]
cmp byte [edx + eax], 0x2a
jne 0x401ca1
cmp byte [edx + eax + 1], 0x42
mov ecx, esi
jne 0x401ca1
cmp byte [edx + eax + 2], 0x2a
mov ecx, edi
je 0x401cb4
inc ecx
mov edx, ecx
mov dword [0x4087f4], ecx
mov esi, ecx
mov edi, ecx
cmp edx, ebx
jb 0x401c84
jmp 0x401cc9
push 0x405310
push 4
push 0x4083ec
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov edi, dword [ebp + 8]
mov ecx, 0x405310
mov eax, 0x4083ec
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401cf6
test dl, dl
je 0x401cf2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401cf6
add eax, 2
add ecx, 2
test dl, dl
jne 0x401cd6
xor eax, eax
jmp 0x401cfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x401d84
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401d2f
pop ebx
pop edi
mov eax, 3
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 0x717c2
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push esi
call edi
mov ecx, 0x4083d4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401d55
push 0
lea eax, [ebp - 4]
sub ecx, edx
push eax
push ecx
push 0x4083d4
push esi
call edi
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [0x4083e8]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x4083e8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret