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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d948
cmp edx, dword [eax]
je 0x40845b
add eax, 8
inc ecx
cmp eax, 0x40d9d8
jl 0x40844c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d948]
jne 0x408589
mov eax, dword [0xf0c640]
cmp eax, 1
je 0x408563
test eax, eax
jne 0x40848c
cmp dword [0x40d274], 1
je 0x408563
cmp edx, 0xfc
je 0x408589
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4084c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405360
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408506
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405360
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c484
push edi
call fcn.00405e30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405280
lea eax, [ebp - 0xa0]
push 0x40c464
push eax
call fcn.00405280
push dword [esi + 0x40d94c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a603
add esp, 0x2c
pop edi
jmp 0x408589
lea eax, [ebp + 8]
lea esi, [esi + 0x40d94c]
push 0
push eax
push dword [esi]
call fcn.00405360
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]
pop esi
leave
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 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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0xd0c1a39
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x3cfe1d02
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401040
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x401060
xor al, al
jmp 0x40118b
mov byte [ebp - 1], 1
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x401188
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.004b28e0
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4010c1
xor al, al
jmp 0x40118b
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x40116f
mov edx, dword [ebp - 0x238]
push edx
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
je 0x40116f
push 0
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne cl
mov byte [ebp - 1], cl
mov dword [ebp - 0x248], 0
push 0x64
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401162
mov eax, dword [ebp - 0x248]
add eax, 1
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0xa
jg 0x401162
push 0
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne dl
mov byte [ebp - 1], dl
jmp 0x40111e
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4010c1
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret

Function at 0x401320
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004041a0
push eax
mov ecx, dword [ebp + 8]
call fcn.004041a0
push eax
push 0x4fd6e8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x401372
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.004041a0
push eax
push str.IEXPLORE.EXE
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], eax
mov eax, 0x20
cmp eax, dword [ebp - 4]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x402df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x30
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x32
mov byte [ebp - 0x11], 0x33
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x35
mov byte [ebp - 0xe], 0x36
mov byte [ebp - 0xd], 0x37
mov byte [ebp - 0xc], 0x38
mov byte [ebp - 0xb], 0x39
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x62
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0x64
mov byte [ebp - 6], 0x65
mov byte [ebp - 5], 0x66
movzx eax, byte [ebp + 8]
movzx cx, byte [ebp + eax - 0x14]
mov word [ebp - 0x18], cx
mov ax, word [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret

Function at 0x404c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d879b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], 0
lea ecx, [ebp - 0x238]
call fcn.004025b0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.004b28e0
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404cae
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004026c0
lea ecx, [ebp - 0x238]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov edx, dword [ebp - 0x23c]
or edx, 1
mov dword [ebp - 0x23c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00404250
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret

Function at 0x404ee0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9558
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x2c]
call fcn.004025b0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x234], ax
push 0x206
push 0
lea ecx, [ebp - 0x232]
push ecx
call fcn.004b28e0
add esp, 0xc
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x234]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404f6b
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004026c0
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov eax, dword [ebp - 0x238]
or eax, 1
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00404250
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret
Function at 0x404fc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40500a
mov ecx, dword [ebp - 4]
and ecx, 0x10
jne 0x40500a
mov dword [ebp - 8], 1
jmp 0x405011
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4052f0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9df1
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004041a0
push eax
call fcn.00404fc0
add esp, 4
movzx eax, al
test eax, eax
jne 0x40533a
mov al, 1
jmp 0x40553f
mov dword [ebp - 0x284], 0
push 0x24c
push 0
lea ecx, [ebp - 0x280]
push ecx
call fcn.004b28e0
add esp, 0xc
push 0x4fcb28
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00402e60
add esp, 0xc
mov dword [ebp - 0x2dc], eax
lea ecx, [ebp - 0x284]
push ecx
mov ecx, dword [ebp - 0x2dc]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x2c]
call fcn.00404250
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4053b5
mov ecx, dword [ebp + 8]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor al, al
jmp 0x40553f
lea edx, [ebp - 0x258]
push edx
lea ecx, [ebp - 0x2bc]
call fcn.00404aa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2bc]
push eax
push 0x4fcb30
call fcn.00407500
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x405404
lea edx, [ebp - 0x2bc]
push edx
push 0x4fcb34
call fcn.00407500
add esp, 8
movzx eax, al
test eax, eax
je 0x40541b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2bc]
call fcn.00404250
jmp 0x4054f2
push 0x4fcb3c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2a0]
push edx
call fcn.00402e60
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004026e0
mov ecx, dword [ebp - 0x284]
and ecx, 1
je 0x40546b
push 0x80
lea ecx, [ebp - 0x2a0]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x284]
and edx, 0x10
je 0x405487
lea eax, [ebp - 0x2a0]
push eax
call fcn.004052f0
add esp, 4
jmp 0x4054d1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2d8]
call fcn.004041c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2d8]
call fcn.004041a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x2a0]
push eax
call fcn.00406b70
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2d8]
call fcn.00404250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a0]
call fcn.00404250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2bc]
call fcn.00404250
lea ecx, [ebp - 0x284]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4053b5
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 8]
call fcn.004041a0
push eax
call fcn.00404fc0
add esp, 4
movzx eax, al
neg eax
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret
Function at 0x4066c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d93cb
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x480], 0
xor eax, eax
mov word [ebp - 0x254], ax
push 0x206
push 0
lea ecx, [ebp - 0x252]
push ecx
call fcn.004b28e0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404aa0
mov dword [ebp - 4], 0
push 1
push 0
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00402800
mov byte [ebp - 4], 1
xor edx, edx
mov word [ebp - 0x47c], dx
push 0x206
push 0
lea eax, [ebp - 0x47a]
push eax
call fcn.004b28e0
add esp, 0xfffffff0
mov ecx, 7
lea esi, [ebp - 0x270]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push 0x4fd3fc
lea ecx, [ebp - 0x47c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea edx, [ebp - 0x47c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00404aa0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov ecx, dword [ebp - 0x480]
or ecx, 1
mov dword [ebp - 0x480], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00404250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x270]
call fcn.00404250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00404250
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret
Function at 0x406b70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.004041a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406ba1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406810
add esp, 8
movzx edx, al
test edx, edx
jne 0x406ba1
xor al, al
jmp 0x406ba3
mov al, 1
pop ebp
ret

Function at 0x407e20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dce2b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x64]
call fcn.0040af80
mov dword [ebp - 4], 0
lea edi, [ebp - 0x48]
call fcn.004549e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004041a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407eda
lea ecx, [ebp - 0x48]
call fcn.004041a0
push eax
lea ecx, [ebp - 0x68]
call fcn.00404040
mov byte [ebp - 4], 2
call fcn.00407c50
lea esi, [ebp - 0x68]
lea edi, [ebp - 0x2c]
call fcn.004612d0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00408610
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040b0a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00404140
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 0x18], 0
je 0x407f28
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x407f14
push 1
mov ecx, dword [ebp - 0x6c]
call fcn.00407d90
mov dword [ebp - 0x88], eax
jmp 0x407f1e
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x7c]
mov dword [ecx + 0x18], 0
push 0x50
call fcn.004ae3b4
add esp, 4
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x78], 0
je 0x407f53
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x78]
call fcn.004108d0
mov dword [ebp - 0x8c], eax
jmp 0x407f5d
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00404250
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.0040b0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret
Function at 0x408430
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd0e6
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], 0
lea edi, [ebp - 0x70]
call fcn.004549e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004041a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40855c
lea ecx, [ebp - 0x8c]
call fcn.00407d00
mov byte [ebp - 4], 1
push 0x4fc6ec
lea ecx, [ebp - 0x2c]
call fcn.00404aa0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xa8]
push edx
lea ecx, [ebp - 0x8c]
call fcn.00407fc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.00404250
lea ecx, [ebp - 0xa8]
call fcn.0040d680
movzx eax, al
test eax, eax
jne 0x40853e
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov edx, dword [ebp - 0xac]
or edx, 1
mov dword [ebp - 0xac], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00404250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407d30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404250
mov eax, dword [ebp + 8]
jmp 0x4085f3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
call fcn.00404250
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00407d30
lea eax, [ebp - 0x54]
call fcn.0045fa30
mov byte [ebp - 4], 5
push 0x4fc764
lea ecx, [ebp - 0x48]
call fcn.00404aa0
mov byte [ebp - 4], 6
push 0x4fc7d4
mov eax, 0x20119
mov ecx, reloc.WS2_32.dll_accept
lea esi, [ebp - 0x54]
call fcn.00454a90
mov ecx, dword [ebp + 0xc]
call fcn.004041a0
lea ecx, [ebp - 0x54]
push ecx
lea edi, [ebp - 0x48]
mov ecx, eax
call fcn.00454b90
lea esi, [ebp - 0x54]
call fcn.00454a60
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
call fcn.004025e0
mov eax, dword [ebp - 0xac]
or eax, 1
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
call fcn.00404250
mov byte [ebp - 4], 0
lea esi, [ebp - 0x54]
call fcn.00454a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404250
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 8
Function at 0x40bd80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9300
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5176f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
call fcn.00404aa0
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x4fc014
lea ecx, [ebp - 0x64]
call fcn.0040bff0
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x64]
call fcn.004042b0
sub eax, 1
cmp dword [ebp - 0x68], eax
jne 0x40be17
mov ecx, dword [ebp - 0x68]
push ecx
push 0
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x64]
call fcn.00402800
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00402670
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00404250
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40be45
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00404aa0
lea ecx, [ebp - 0x48]
push ecx
call fcn.00404bd0
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.00404250
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.004026a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00404250
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae123
mov esp, ebp
pop ebp
ret 4

Function at 0x40c460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x40c4c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x90], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x90], 0
mov esp, ebp
pop ebp
ret