joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5d0
Capabilities:
Encode data using xor

Disassembly:
les ecx, [eax]
test edi, esp
je 0x40a5c0
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
pop ebp
ret 0x53
pushfd
invalid
push ebp
mov ebp, esp
sub esp, 0x5d7a5318
adc byte [ebp + 0x4544b883], al
cld
or eax, dword [eax]
add byte [eax], al
jge 0x40a5f9
mov eax, dword [ebp + 0xc]
xor ebx, ebx
and dword [ebx], 0x74
or dword [ecx + 0x438c984c], edx
loopne 0x40a5b0
xchg ecx, eax
dec esp
cwde
mov word [ebx - 0x20], es
mov ecx, 0x4a5f775
cmp byte [0x56004600], cl
jne 0x40a5f0
movsd dword es:[edi], dword [esi]
add al, 0x38
or eax, 0x56004600
push eax
bound edx, qword [0x1e40c15c]
add esp, 4
pop eax
clc
test ebx, ebx
mov dword [ebp + 0x29], edi
jle 0x40a64a
mov eax, dword [ebp + 0xc]
mov esi, edi
sahf
mov dword [ebx], 0x4589f85d
adc bl, ch
add ecx, dword [ebx + 0x138b1045]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebx]
xor byte [ecx - 1], dl
adc eax, sym.imp.MSVCRT.dll_wcslen
add esp, 4
inc eax
mov dword [esi], eax
mov edx, dword [ebp - 4]
add edx, ecx
mov eax, dword [ebp - 8]
add esi, 0xffffff95
dec eax
mov dword [ebp - 4], edx
mov dword [ebp + 0xd], eax
jne 0x40a623
mov eax, dword [ebp - 4]
lea eax, [eax + ecx*2 + 1]
push eax
xchg esp, eax
inc ebp
in eax, dx
call dword [0xb8c15c]
add esp, 4
xor ecx, ecx
test ebx, ebx
dec eax
inc ebp
clc
mov esi, eax
jle 0x40a6bd
mov eax, dword [ebp + 0xc]
shr byte [esi - 0xc], 1
pop es
ror dword [ebx + 0x4589fc4d], 0x3e
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x18], ebx
jmp 0x40a682
mov esi, 0x524d8917
cmp byte [ebp - 0x5d], cl
mov dword [ebp - 0x10], edx
mov dword [edx], ebp
mov esp, 0xa9510704
push ebp
invalid
push ds
add al, 0x8f
add byte [eax], al
add byte [eax], al
mov byte [esi], 0
sub esi, edi
inc esi
push esi
push eax
sbb dword [edi + sym.imp.MSVCRT.dll_realloc], 0xc9f8ce8b
les ecx, [eax]
lodsd eax, dword [esi]
mov dl, 0x5e
je 0x40a70e
sub ecx, dword [esi + 0x32]
enter 0xffffffffffffc033, 2
fstp xword [esi + 0x1a]
mov edx, dword [edi + eax*4]
add edx, ecx
loop 0x40a702
pushfd
inc eax
cmp byte [ebx + 0x4d8bf37c], bh
or byte [ebx + 0x5f39892e], cl
lds ecx, [ebx - 0x743c5c1b]
push ebp
add ecx, dword [ebx + 0x5dd98914]
pop ebx
mov ecx, ebx
cmp bl, al
mov ebx, ecx
mov dword gs:[eax], edi
cli
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401a40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x40d4c0
push 0x4027a0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe0
push ebx
push esi
push edi
mov eax, dword [0x40fcc0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4114a8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x401af5
push 0
lea ecx, [ebp - 0x24]
push ecx
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [0x4114ac]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401af3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Reading_from_pipe_failed._GetLastError_____4dL_n
call fcn.0040202a
add esp, 8
mov dword [ebp - 0x2c], 3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x2c]
jmp 0x401b53
jmp 0x401b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Writing_to_pipe_failed._GetLastError_____4dL_n
call fcn.0040202a
add esp, 8
mov dword [ebp - 0x30], 3
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x30]
jmp 0x401b53
mov dword [ebp - 4], 0xfffffffe
jmp 0x401b50
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40275b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40fcc0]
jne 0x402765
repz ret
jmp fcn.004067dc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1000a550
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x80
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.10010df0
mov ecx, edi
call fcn.10010e30
test al, al
je 0x1000a61f
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ebx, 0x10
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
lea edi, [ecx + eax*8]
cmp dword [edi], 0
jne 0x1000a604
lea edx, [esp + 0x10]
push str.init.ini
push edx
call fcn.1000a470
mov ecx, dword [eax + 0x18]
add esp, 8
cmp ecx, ebx
jb 0x1000a5ac
mov eax, dword [eax + 4]
jmp 0x1000a5af
add eax, 4
mov ecx, dword [esi + 0x1c]
push eax
push 0x1f4
lea eax, [esp + 0x34]
push eax
push str.NULL
push ecx
push str.CVAR
call ebp
cmp dword [esp + 0x28], ebx
jb 0x1000a5dd
mov edx, dword [esp + 0x14]
push edx
call fcn.10015b1d
add esp, 4
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10016e26
mov ecx, dword [edi + 4]
fstp dword [ecx]
add esp, 4
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.10010e50
mov ecx, edi
call fcn.10010e30
test al, al
jne 0x1000a580
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x80
ret

Function at 0x1000a920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10025ad6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], ebx
call fcn.10011aa0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x4c], 0xf
mov dword [esi + 0x48], ebx
mov ecx, esi
mov byte [esi + 0x38], bl
call fcn.10007cb0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x1000b460
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x1000b508
push esi
call fcn.1000b440
mov esi, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x100029c0
push 0
push 0
mov dword [0x1004b118], esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xff
push 0x1004b018
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x1004b018
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000b4b5
sub eax, edx
lea eax, [eax + 0x1004b018]
cmp eax, 0x1004b018
jb 0x1000b4dd
jmp 0x1000b4d0
cmp byte [eax], 0x5c
je 0x1000b4dd
dec eax
cmp eax, 0x1004b018
jae 0x1000b4d0
push 0x1000b3d0
push 0x1002688c
push str.Kernel32.dll
mov byte [eax + 1], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.100242a0
mov dword [0x1004b010], eax
mov al, 1
ret 0xc
Function at 0x1000e670
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
je 0x1000e70d
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x224
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x1000e706
mov edi, dword [esp + 0x23c]
mov ebp, dword [esp + 0x238]
mov esi, ebp
lea eax, [esp + 0x30]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000e6dc
test cl, cl
je 0x1000e6d8
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000e6dc
add eax, 2
add esi, 2
test cl, cl
jne 0x1000e6b8
xor eax, eax
jmp 0x1000e6e1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000e6f7
mov eax, dword [esp + 0x24]
cmp edi, eax
jb 0x1000e6f7
mov ecx, dword [esp + 0x28]
add ecx, eax
cmp edi, ecx
jbe 0x1000e71a
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x1000e6b2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x224
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x224
ret

Function at 0x10010a60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
mov eax, dword [esp]
mov edx, dword [eax + 0xc]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x10010a8e
mov ecx, dword [esp + 8]
cmp eax, ecx
je 0x10010a8e
mov edx, dword [edx]
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x10010a81
mov eax, dword [edx + 0x18]
test eax, eax
jne 0x10010a99
xor eax, eax
pop ecx
ret
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0x10]
mov dword [ecx], eax
mov ecx, dword [edx + 0x10]
mov eax, dword [edx + 0x14]
mov dword [ecx + 4], eax
mov ecx, dword [edx + 0x40]
mov eax, dword [edx + 0x3c]
mov dword [ecx], eax
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x40]
mov dword [ecx + 4], eax
movzx ecx, word [edx + 0x24]
push esi
mov esi, ecx
push edi
mov edi, dword [edx + 0x28]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov ecx, 0x12
mov edi, edx
rep stosd dword es:[edi], eax
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x10010b10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push edi
mov edi, dword [esp + 0xc]
push 0x40
push edi
call ebx
test eax, eax
jne 0x10010b6d
cmp word [edi], 0x5a4d
jne 0x10010b6d
mov eax, dword [edi + 0x3c]
push esi
lea esi, [edi + eax*4]
push 0xf8
push esi
call ebx
test eax, eax
jne 0x10010b6c
cmp dword [esi], 0x4550
jne 0x10010b6c
mov edx, dword [esi + 0x54]
lea ecx, [esp + 0x10]
push ecx
push 0x40
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 0x54]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop esi
pop edi
pop ebx
ret
Function at 0x10011b90
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x100
lea eax, [esp + 0x10c]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.10016ff3
add esp, 0xc
xor eax, eax
xor edx, edx
mov cl, byte [esp + edx]
test cl, cl
je 0x10011e25
cmp cl, 0x61
je 0x10011e15
cmp cl, 0x41
je 0x10011e15
cmp cl, 0x62
je 0x10011e15
cmp cl, 0x42
je 0x10011e15
cmp cl, 0x38
je 0x10011e15
cmp cl, 0x63
je 0x10011e15
cmp cl, 0x43
je 0x10011e15
cmp cl, 0x64
je 0x10011e15
cmp cl, 0x44
je 0x10011e15
cmp cl, 0x65
je 0x10011e15
cmp cl, 0x45
je 0x10011e15
cmp cl, 0x66
je 0x10011e15
cmp cl, 0x46
je 0x10011e15
cmp cl, 0x67
je 0x10011e15
cmp cl, 0x47
je 0x10011e15
cmp cl, 0x68
je 0x10011e15
cmp cl, 0x48
je 0x10011e15
cmp cl, 0x6a
je 0x10011e15
cmp cl, 0x4a
je 0x10011e15
cmp cl, 0x6b
je 0x10011e15
cmp cl, 0x4b
je 0x10011e15
cmp cl, 0x6c
je 0x10011e15
cmp cl, 0x4c
je 0x10011e15
cmp cl, 0x6e
je 0x10011e15
cmp cl, 0x4e
je 0x10011e15
cmp cl, 0x6f
je 0x10011e15
cmp cl, 0x4f
je 0x10011e15
cmp cl, 0x30
je 0x10011e15
cmp cl, 0x70
je 0x10011e15
cmp cl, 0x50
je 0x10011e15
cmp cl, 0x72
je 0x10011e15
cmp cl, 0x52
je 0x10011e15
cmp cl, 0x73
je 0x10011e15
cmp cl, 0x53
je 0x10011e15
cmp cl, 0x35
je 0x10011e15
cmp cl, 0x75
je 0x10011e15
cmp cl, 0x55
je 0x10011e15
cmp cl, 0x76
je 0x10011e15
cmp cl, 0x56
je 0x10011e15
cmp cl, 0x78
je 0x10011e15
cmp cl, 0x58
je 0x10011e15
cmp cl, 0x79
je 0x10011e15
cmp cl, 0x59
je 0x10011e15
cmp cl, 0x7a
je 0x10011e15
cmp cl, 0x5a
je 0x10011e15
cmp cl, 0x32
je 0x10011e15
cmp cl, 0x33
je 0x10011e15
cmp cl, 0x34
je 0x10011e15
cmp cl, 0x36
je 0x10011e15
cmp cl, 0x37
je 0x10011e15
cmp cl, 0x39
je 0x10011e15
cmp cl, 0x2d
je 0x10011e15
cmp cl, 0x5f
je 0x10011e15
cmp cl, 0x6d
je 0x10011e10
cmp cl, 0x4d
je 0x10011e10
cmp cl, 0x71
je 0x10011e10
cmp cl, 0x51
je 0x10011e10
cmp cl, 0x77
je 0x10011e10
cmp cl, 0x57
je 0x10011e10
cmp cl, 0x2b
je 0x10011e10
cmp cl, 0x69
je 0x10011e0b
cmp cl, 0x49
je 0x10011e0b
cmp cl, 0x31
je 0x10011e0b
cmp cl, 0x74
je 0x10011e0b
cmp cl, 0x54
je 0x10011e0b
cmp cl, 0x2e
je 0x10011e0b
cmp cl, 0x2c
je 0x10011e0b
cmp cl, 0x3a
je 0x10011e0b
cmp cl, 0x21
je 0x10011e0b
cmp cl, 0x2f
je 0x10011e0b
cmp cl, 0x28
je 0x10011e0b
cmp cl, 0x29
je 0x10011e0b
cmp cl, 0x5b
je 0x10011e0b
cmp cl, 0x5d
je 0x10011e0b
cmp cl, 0x20
jne 0x10011e18
add eax, 4
jmp 0x10011e18
add eax, 5
jmp 0x10011e18
add eax, 7
jmp 0x10011e18
add eax, 6
inc edx
cmp edx, 0x100
jb 0x10011bb4
add esp, 0x100
ret
Function at 0x1001704a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1001713a
mov eax, 0x94
call fcn.1001dec0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100171af
mov ecx, dword [esi + 0x10]
mov dword [0x10056784], ecx
mov eax, dword [esi + 4]
mov dword [0x10056790], eax
mov edx, dword [esi + 8]
mov dword [0x10056794], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10056788], esi
je 0x100170b5
or esi, 0x8000
mov dword [0x10056788], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1005678c], eax
call fcn.1001aa3d
test eax, eax
pop ecx
je 0x100171af
call fcn.10019612
test eax, eax
jne 0x100170e2
call fcn.1001aa8e
jmp 0x100171af
call fcn.1001de30
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10057fb8], eax
call fcn.1001dd0e
mov dword [0x10056608], eax
call fcn.1001d7ef
test eax, eax
jl 0x10017133
call fcn.1001dc6c
test eax, eax
jl 0x1001712e
call fcn.1001da39
test eax, eax
jl 0x1001712e
push 0
call fcn.10019ebf
test eax, eax
pop ecx
jne 0x1001712e
inc dword [0x10056604]
jmp 0x100171c0
call fcn.1001d9ed
call fcn.100193fb
jmp 0x100170d8
test eax, eax
jne 0x1001716a
cmp dword [0x10056604], eax
jle 0x100171af
dec dword [0x10056604]
cmp dword [0x100567c0], eax
jne 0x10017159
call fcn.10019ffd
call fcn.1001d9ed
call fcn.100193fb
call fcn.1001aa8e
jmp 0x100171c0
cmp eax, 2
jne 0x100171b3
push 0x8c
push 1
call fcn.1001d734
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100171af
push esi
push dword [0x1002e238]
call dword [0x10056624]
test eax, eax
push esi
je 0x100171a9
call fcn.10019418
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100171c0
call fcn.100165b9
pop ecx
xor eax, eax
jmp 0x100171c3
cmp eax, 3
jne 0x100171c0
push 0
call fcn.100195e3
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10019f29
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10027220
call fcn.10019ad0
push 8
call fcn.10019a9e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100567c4], esi
jne 0x10019f5d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100567c0], esi
mov al, byte [ebp + 0x10]
mov byte [0x100567bc], al
cmp dword [ebp + 0xc], edi
jne 0x10019fa7
cmp dword [0x10057fb0], edi
je 0x10019f97
mov eax, dword [0x10057fac]
sub eax, 4
mov dword [0x10057fac], eax
cmp eax, dword [0x10057fb0]
jb 0x10019f97
mov eax, dword [eax]
cmp eax, edi
je 0x10019f78
call eax
jmp 0x10019f78
push 0x1002d058
mov eax, 0x1002d050
call fcn.10019ea7
pop ecx
push 0x1002d064
mov eax, 0x1002d05c
call fcn.10019ea7
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10019fd8
cmp dword [ebp + 0x10], edi
jne 0x10019fe6
mov dword [0x100567c4], esi
push dword [ebp + 8]
call fcn.10019e65
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10019fe5
push 8
call fcn.100199e9
pop ecx
ret
call fcn.10019b0b
ret
Function at 0x1001b7bc
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1002e234]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1001b7ed
xor eax, eax
jmp 0x1001b976
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10056e60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001b829
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1001f490
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1001b904
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1001b942
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1001b88d
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1001b87e
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1001b85e
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001b8cd
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1001b8d6
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1001b84f
jmp 0x1001b8d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1001b971
cmp dword [ebp - 0x6c], edi
je 0x1001b942
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1001b937
call fcn.1001c139
mov dword [eax], 9
call fcn.1001c142
mov dword [eax], esi
jmp 0x1001b96c
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001b92c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001b8d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001b8d8
push dword [ebp - 0x6c]
call fcn.1001c14b
pop ecx
jmp 0x1001b96c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001b95a
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1001b95a
xor eax, eax
jmp 0x1001b974
call fcn.1001c139
mov dword [eax], 0x1c
call fcn.1001c142
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1001b974
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1001e798
add ebp, 0x3a0
leave
ret
Function at 0x1001e07c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1002e234]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1002e9f8]
je 0x1001e0b1
inc eax
cmp eax, 0x13
jb 0x1001e0a2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1002e9f8]
jne 0x1001e1d7
mov eax, dword [0x10056610]
cmp eax, 1
je 0x1001e1af
cmp eax, edx
jne 0x1001e0e1
cmp dword [0x10056614], 1
je 0x1001e1af
cmp ecx, 0xfc
je 0x1001e1d7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001e117
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100197c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100198c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001e14b
mov eax, edi
push eax
call fcn.100198c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10027950
push edi
call fcn.10016490
add esp, 0x10
push edi
call fcn.100198c0
push dword [esi + 0x1002e9fc]
mov ebx, eax
call fcn.100198c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.1001dec0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100197c0
push edi
push ebx
call fcn.100197d0
push 0x10027930
push ebx
call fcn.100197d0
push dword [esi + 0x1002e9fc]
push ebx
call fcn.100197d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10021ba4
add esp, 0x2c
jmp 0x1001e1d7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1002e9fc]
push dword [esi]
call fcn.100198c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1001e798
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret