joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009a50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10049398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0xb
mov esi, str.C:MSDEVProjectsInfiniDoomRelease_temp.wad
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
push 0x52
lea eax, [ebp - 0x5e]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.1000fed0
mov edi, dword [ebp + 8]
add esp, 0xc
add edi, 0xc
cmp dword [0x1004aa70], edi
push 0
cmovl edi, dword [0x1004aa70]
push 0x80000020
push 3
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0x1004aa58
mov ebx, eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov byte [ebp - 8], 0
mov ecx, str.IWAD
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10009b00
test dl, dl
je 0x10009afc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10009b00
add eax, 2
add ecx, 2
test dl, dl
jne 0x10009ae0
xor eax, eax
jmp 0x10009b05
sbb eax, eax
or eax, 1
test eax, eax
je 0x10009b3a
mov ecx, str.PWAD
lea eax, [ebp - 0xc]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10009b31
test dl, dl
je 0x10009b2d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10009b31
add eax, 2
add ecx, 2
test dl, dl
jne 0x10009b11
xor eax, eax
jmp 0x10009b36
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10009b9e
push 0
push 0x1004aa58
push 4
lea eax, [ebp - 0x94]
push eax
push ebx
call esi
push 0
push 0x1004aa58
push 4
lea eax, [ebp - 0x90]
push eax
push ebx
call esi
push 0
push 0
push dword [ebp - 0x90]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
cmp eax, edi
jge 0x10009b9e
lea esi, [eax + eax*2]
shl esi, 3
sub edi, eax
mov eax, dword [0x10442f6c]
push 0
push 0x1004aa54
push 0x10
add eax, esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 0x18
dec edi
jne 0x10009b80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f362
mov esp, ebp
pop ebp
ret
Function at 0x10016fe0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10049398]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100117c9
mov dword [ebp - 0x14], eax
cmp dword [0x1085b4cc], edi
jne 0x100170d1
push 0x800
push edi
push 0x10040758
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1001705e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100171b1
push 0x10040758
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100171b1
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100171b1
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1085b4cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1085b4d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1085b4d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1085b4dc], eax
test eax, eax
je 0x100170ce
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1085b4d8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100170f6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100170e9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1001710b
push 4
pop eax
jmp 0x100171b3
cmp dword [ebp - 0x14], edi
je 0x1001710b
push dword [0x1085b4cc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100170f0
mov eax, dword [0x1085b4d8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10017169
cmp dword [0x1085b4dc], esi
je 0x10017169
push eax
call ebx
push dword [0x1085b4dc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10017169
test eax, eax
je 0x10017169
call ecx
test eax, eax
je 0x1001715e
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 0x1001715e
test byte [ebp - 8], 1
jne 0x10017169
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10017199
mov eax, dword [0x1085b4d0]
cmp eax, esi
je 0x10017196
push eax
call ebx
test eax, eax
je 0x10017196
call eax
mov edi, eax
test edi, edi
je 0x10017196
mov eax, dword [0x1085b4d4]
cmp eax, esi
je 0x10017196
push eax
call ebx
test eax, eax
je 0x10017196
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1085b4cc]
call ebx
test eax, eax
je 0x100171b1
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x100171b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f362
leave
ret
Function at 0x1002a37b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10013f85
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1002a3b3
xor eax, eax
jmp 0x1002a3df
cmp esi, dword [ebp - 4]
je 0x1002a3dc
cmp dword [ebp + 0xc], 0
je 0x1002a3dc
push dword [edi + 0x9c]
call fcn.10029f89
push dword [edi + 0x9c]
mov esi, eax
call fcn.10016ebc
pop ecx
pop ecx
cmp esi, eax
je 0x1002a3af
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4078b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444b80]
jne 0x4078bd
repz ret
jmp fcn.0040b0ff

Function at 0x40ac8f
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.00405fb1
and dword [ebp - 4], 0
cmp dword [0x445d28], 0
mov ebx, eax
jne 0x40ad40
push 0x402508
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40adf1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024fc
push edi
call esi
test eax, eax
je 0x40adf1
push eax
call fcn.00405f3f
mov dword [esp], 0x4024ec
push edi
mov dword [0x445d28], eax
call esi
push eax
call fcn.00405f3f
mov dword [esp], 0x4024d8
push edi
mov dword [0x445d2c], eax
call esi
push eax
call fcn.00405f3f
mov dword [esp], 0x4024bc
push edi
mov dword [0x445d30], eax
call esi
push eax
call fcn.00405f3f
pop ecx
mov dword [0x445d38], eax
test eax, eax
je 0x40ad40
push 0x4024a4
push edi
call esi
push eax
call fcn.00405f3f
pop ecx
mov dword [0x445d34], eax
mov eax, dword [0x445d34]
cmp eax, ebx
je 0x40ad98
cmp dword [0x445d38], ebx
je 0x40ad98
push eax
call fcn.00405fba
push dword [0x445d38]
mov esi, eax
call fcn.00405fba
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ad98
test edi, edi
je 0x40ad98
call esi
test eax, eax
je 0x40ad8f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ad8f
test byte [ebp - 0xc], 1
jne 0x40ad98
or dword [ebp + 0x10], 0x200000
jmp 0x40add1
mov eax, dword [0x445d2c]
cmp eax, ebx
je 0x40add1
push eax
call fcn.00405fba
pop ecx
test eax, eax
je 0x40add1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40add1
mov eax, dword [0x445d30]
cmp eax, ebx
je 0x40add1
push eax
call fcn.00405fba
pop ecx
test eax, eax
je 0x40add1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445d28]
call fcn.00405fba
pop ecx
test eax, eax
je 0x40adf1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40adf3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4147e9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ce6d
xor ebx, ebx
cmp dword [0x4244a8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4148be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x414829
xor eax, eax
jmp 0x414982
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x414822
push eax
call fcn.0040ce0a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4244a8], eax
call esi
push eax
call fcn.0040ce0a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4244ac], eax
call esi
push eax
call fcn.0040ce0a
mov dword [0x4244b0], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f061
test eax, eax
pop ecx
pop ecx
je 0x41488c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cc6b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4148be
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040ce0a
cmp eax, ebx
pop ecx
mov dword [0x4244b8], eax
je 0x4148be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ce0a
pop ecx
mov dword [0x4244b4], eax
mov eax, dword [0x4244b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x414937
cmp dword [0x4244b8], esi
je 0x414937
push eax
call fcn.0040ce76
pop ecx
call eax
cmp eax, ebx
je 0x414904
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4244b8]
call fcn.0040ce76
pop ecx
call eax
test eax, eax
je 0x414904
test byte [ebp - 0x18], 1
jne 0x414937
lea eax, [ebp - 0xc]
push eax
call fcn.0040f098
test eax, eax
pop ecx
je 0x41491f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040cc6b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41492e
or dword [ebp + 0x10], 0x200000
jmp 0x414968
or dword [ebp + 0x10], 0x40000
jmp 0x414968
mov eax, dword [0x4244ac]
cmp eax, esi
je 0x414968
push eax
call fcn.0040ce76
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x414968
mov eax, dword [0x4244b0]
cmp eax, esi
je 0x414968
push dword [ebp - 4]
push eax
call fcn.0040ce76
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4244a8]
call fcn.0040ce76
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409940
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444b70]
jne 0x40994a
repz ret
jmp fcn.0040b96c

Function at 0x40a313
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.00405e63
and dword [ebp - 4], 0
cmp dword [0x447d2c], 0
mov ebx, eax
jne 0x40a3c4
push 0x402bfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a475
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402bf0
push edi
call esi
test eax, eax
je 0x40a475
push eax
call fcn.00405df1
mov dword [esp], 0x402be0
push edi
mov dword [0x447d2c], eax
call esi
push eax
call fcn.00405df1
mov dword [esp], 0x402bcc
push edi
mov dword [0x447d30], eax
call esi
push eax
call fcn.00405df1
mov dword [esp], 0x402bb0
push edi
mov dword [0x447d34], eax
call esi
push eax
call fcn.00405df1
pop ecx
mov dword [0x447d3c], eax
test eax, eax
je 0x40a3c4
push 0x402b98
push edi
call esi
push eax
call fcn.00405df1
pop ecx
mov dword [0x447d38], eax
mov eax, dword [0x447d38]
cmp eax, ebx
je 0x40a41c
cmp dword [0x447d3c], ebx
je 0x40a41c
push eax
call fcn.00405e6c
push dword [0x447d3c]
mov esi, eax
call fcn.00405e6c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a41c
test edi, edi
je 0x40a41c
call esi
test eax, eax
je 0x40a413
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a413
test byte [ebp - 0xc], 1
jne 0x40a41c
or dword [ebp + 0x10], 0x200000
jmp 0x40a455
mov eax, dword [0x447d30]
cmp eax, ebx
je 0x40a455
push eax
call fcn.00405e6c
pop ecx
test eax, eax
je 0x40a455
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a455
mov eax, dword [0x447d34]
cmp eax, ebx
je 0x40a455
push eax
call fcn.00405e6c
pop ecx
test eax, eax
je 0x40a455
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447d2c]
call fcn.00405e6c
pop ecx
test eax, eax
je 0x40a475
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a477
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x103eea24
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103eea2e
pushal
call 0x103eea34
pop ebp
sub ebp, 0x10
sub ebp, 0x3eea24
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103eea58
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103eea61
mov eax, 0x3eea24
add eax, ebp
add eax, 0x63
mov ecx, 0x5f0
mov edx, 0x25ab381c
xor byte [eax], dl
inc eax
dec ecx
jne 0x103eea78
jmp 0x103eea8b
xchg edi, eax
rcl dword [edi + 0x1c1c2095]
sbb al, 0x9d
fucom st(4)
sbb al, 0x1c
sbb al, 0x1f
shl dword [edx + ebx - 0x59e3e3e4], 1
xor al, 0x1c
sbb al, 0x1c
jmp 0x103eeaa5
Function at 0x4035ab
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x403600
push dword [esp + 0x10]
push 0x40352a
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x5291f0]
test esi, esi
je 0x403659
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4035f8
cmp byte [esi + 0x10], 0
je 0x4035f8
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4035d4
jmp 0x403659
mov esi, dword [0x5291f0]
test esi, esi
je 0x403659
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x403652
cmp byte [esi + 0x11], 0
je 0x40362e
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x403645
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x5291f0
call fcn.0040ef7f
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40360d
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x403cf0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5291fc], 0
jne 0x403cfe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x529200]
call esi
test eax, eax
jne 0x403d21
call fcn.00403c90
push dword [0x529200]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x403d30
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x403d90
mov ebx, 0x10
test edi, edi
jns 0x403d99
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x403d62
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x403db0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x5291fc], 0
jne 0x403dbe
call fcn.00403c90
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x529200]
call esi
mov edx, eax
test edx, edx
jne 0x403de5
call fcn.00403c90
push dword [0x529200]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x403e18
mov ebx, 0x10
test esi, esi
jns 0x403e21
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x403e30
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x404468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4044f2
cmp dword [ebp + 0xc], edi
je 0x4044f2
push esi
push 0x28
push 8
push dword [0x529148]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 8]
mov esi, eax
or dword [esi + 4], 0xffffffff
mov dword [esi], edi
call sub.MSVCRT.dll__wcsdup
push dword [ebp + 0xc]
mov dword [esi + 8], eax
call sub.MSVCRT.dll__wcsdup
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
pop ecx
pop ecx
test al, 1
je 0x4044e1
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x4045f6
push 0x2000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4044d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x4044f1
push esi
call fcn.00404647
jmp 0x4044f0
push esi
call fcn.0040450b
push esi
mov edi, eax
call fcn.00404647
pop ecx
pop ecx
pop esi
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x40450b
Capabilities:
Delete file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ebp
call fcn.004273d0
mov edi, eax
test edi, edi
je 0x4045db
push dword [esp + 0x18]
call fcn.0044c5b0
push ebx
push pe_nt_image_headers32
push 2
push ebx
push 1
push 0xc0000000
push ebp
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4045cb
test byte [esi + 0x1c], 2
mov dword [esi + 0x10], ebp
jne 0x404574
push 1
push 0x34
push edi
call fcn.00427460
add esp, 0xc
push dword [esp + 0x18]
push 0x2712
push edi
call fcn.00427460
push 0x404605
push 0x4e2b
push edi
call fcn.00427460
push esi
push 0x2711
push edi
call fcn.00427460
push edi
call fcn.00427450
add esp, 0x28
test eax, eax
jne 0x4045b6
xor ebx, ebx
mov dword [esi + 4], 0xfffffffe
inc ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4045cb
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [esp + 0x18]
call fcn.0044c5a0
push edi
call fcn.004273b0
pop ecx
cmp dword [esi + 4], 0xfffffffe
je 0x4045ee
cmp dword [esi + 4], 0xfffffffc
je 0x4045ee
mov dword [esi + 4], 0xfffffffd
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x40472c
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push edi
xor edi, edi
inc edi
cmp dword [0x529228], 0
jne 0x404758
push 0x40467b
push 0x10
push 0x2c
mov dword [0x529228], edi
call fcn.0040e94a
mov dword [0x529224], eax
cmp word [0x52921c], 0
jne 0x4047f4
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x404783
mov word [0x52921c], di
jmp 0x40478b
xor eax, eax
mov word [0x52921c], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x529238], eax
test eax, eax
je 0x4047f4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x454038
push eax
call esi
push 0x454044
push dword [0x529238]
mov dword [0x52922c], eax
call esi
push str.getnameinfo
push dword [0x529238]
mov dword [0x529230], eax
call esi
cmp dword [0x52922c], 0
mov dword [0x529234], eax
pop esi
je 0x4047f4
cmp dword [0x529230], 0
je 0x4047f4
test eax, eax
je 0x4047f4
mov dword [0x529220], edi
movsx eax, word [0x52921c]
pop edi
add esp, 0x190
ret
Function at 0x407a90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x407acc
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x407e50
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x407eb5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x407ead
push dword [esp + 0x10]
push dword [0x529adc]
call fcn.0040e877
test eax, eax
je 0x407ea3
cmp dword [eax + 4], 0
je 0x407e92
push edi
push esi
push eax
call fcn.00408420
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x407f70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x529148]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4080f4
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x407fbe
test ebp, ebp
je 0x408060
dec ebp
cmp dword [ebx + 4], 0
je 0x407fd7
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00408530
mov dword [esp + 0x14], eax
jmp 0x407ff1
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x408060
test cl, cl
je 0x408005
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x408040
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x529148]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x408060
cmp dword [esp + 0x2c], 0
jne 0x407fb0
cmp cl, 0xd
je 0x408067
cmp cl, 0xa
jne 0x407fb0
dec esi
jmp 0x4080d7
cmp dword [esp + 0x2c], 0
jne 0x4080d7
cmp cl, 0xa
jne 0x40806f
dec esi
jmp 0x4080d7
cmp cl, 0xd
jne 0x4080d7
dec esi
cmp dword [ebx + 4], 0
je 0x40808e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00408530
mov dword [esp + 0x14], eax
jmp 0x4080a4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4080d7
cmp dword [ebx + 4], 0
je 0x4080b6
inc dword [ebx + 0xc]
jmp 0x4080d7
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10