joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x78]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x24]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x40c62a
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x18]
jae 0x40c669
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c460
cmp eax, dword [ebp + 0x10]
jne 0x40c667
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x40c66b
jmp 0x40c621
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c7b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432a68
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x444770]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], 0
push 0x105
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.0041aaf0
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040cae0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push eax
push str.TEMPPATH
lea ecx, [ebp - 0x10]
call fcn.0040cb60
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040cac0
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401ec0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041af50
mov esp, ebp
pop ebp
ret
Function at 0x4174e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x78], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x7c], eax
push str.msvcrt.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x80], eax
push str.wininet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
push str.ReadProcessMemory
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x88], eax
push str.ResumeThread
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
push str.GetThreadContext
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x90], eax
push str.SetThreadContext
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
push str.WaitForSingleObject
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
push str.memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], eax
push str.WriteProcessMemory
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xa0], eax
push 0x43d864
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xa4], eax
push 0x43d870
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xa8], eax
push str.NtUnmapViewOfSection
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xac], eax
push str.VirtualAllocEx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41af50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444770]
jne 0x41af5a
repz ret
jmp fcn.0042224c

Function at 0x42cc09
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.00421c3a
and dword [ebp - 4], 0
cmp dword [0x446b1c], 0
mov ebx, eax
jne 0x42ccba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42cd6b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42cd6b
push eax
call fcn.00421bc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x446b1c], eax
call esi
push eax
call fcn.00421bc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x446b20], eax
call esi
push eax
call fcn.00421bc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x446b24], eax
call esi
push eax
call fcn.00421bc8
pop ecx
mov dword [0x446b2c], eax
test eax, eax
je 0x42ccba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421bc8
pop ecx
mov dword [0x446b28], eax
mov eax, dword [0x446b28]
cmp eax, ebx
je 0x42cd12
cmp dword [0x446b2c], ebx
je 0x42cd12
push eax
call fcn.00421c43
push dword [0x446b2c]
mov esi, eax
call fcn.00421c43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42cd12
test edi, edi
je 0x42cd12
call esi
test eax, eax
je 0x42cd09
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42cd09
test byte [ebp - 0xc], 1
jne 0x42cd12
or dword [ebp + 0x10], 0x200000
jmp 0x42cd4b
mov eax, dword [0x446b20]
cmp eax, ebx
je 0x42cd4b
push eax
call fcn.00421c43
pop ecx
test eax, eax
je 0x42cd4b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42cd4b
mov eax, dword [0x446b24]
cmp eax, ebx
je 0x42cd4b
push eax
call fcn.00421c43
pop ecx
test eax, eax
je 0x42cd4b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x446b1c]
call fcn.00421c43
pop ecx
test eax, eax
je 0x42cd6b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42cd6d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4076d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea edx, [ecx + 2]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4076e0
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 4]
push eax
call fcn.0046dd84
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x4077a0
mov ecx, ebx
sub ecx, esi
mov edi, edi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x407710
push 0x5c
push ebx
call fcn.0046f622
add esp, 8
test eax, eax
je 0x407734
xor ecx, ecx
mov word [eax + 2], cx
cmp word [ebx], 0x5c
jne 0x40775d
cmp word [ebx + 2], 0x5c
jne 0x40775d
lea eax, [ebx + 4]
push 0x5c
push eax
call fcn.0046f6c8
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x407780
push 0x5c
lea eax, [ebx + 2]
push eax
jmp 0x407776
cmp word [ebx + 2], 0x3a
jne 0x407773
cmp word [ebx + 4], 0x5c
jne 0x407773
push 0x5c
lea eax, [ebx + 6]
push eax
jmp 0x407776
push 0x5c
push ebx
call fcn.0046f6c8
add esp, 8
mov ebx, eax
push 2
push 0x104
call fcn.0046dd84
mov esi, eax
add esp, 8
test esi, esi
jne 0x4077aa
push dword [ebp - 4]
call fcn.0046d5c7
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
test ebx, ebx
je 0x407817
mov eax, ebx
sub eax, ecx
sar eax, 1
push eax
push ecx
push esi
call fcn.0046f776
push esi
call fcn.0046f7b9
add esp, 0x10
test eax, eax
je 0x4077f3
push esi
call fcn.0046f8d6
add esp, 4
test eax, eax
je 0x4077e0
mov edi, 1
jmp 0x4077f3
push esi
call fcn.0046f7b9
add esp, 4
test eax, eax
mov eax, 1
cmovne edi, eax
lea eax, [ebx + 2]
push 0x5c
push eax
mov dword [ebp - 8], ebx
call fcn.0046f6c8
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40788b
mov ecx, dword [ebp - 8]
test edi, edi
je 0x4077b1
jmp 0x40788b
mov edx, esi
sub edx, dword [ebp - 4]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x407820
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407834
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x407857
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x407857
xor eax, eax
mov word [esi + ecx*2 - 2], ax
push esi
call fcn.0046f7b9
add esp, 4
test eax, eax
je 0x40788b
push esi
call fcn.0046f8d6
add esp, 4
test eax, eax
je 0x407878
mov edi, 1
jmp 0x40788b
push esi
call fcn.0046f7b9
add esp, 4
mov ecx, 1
test eax, eax
cmovne edi, ecx
push esi
call fcn.0046d5c7
push dword [ebp - 4]
call fcn.0046d5c7
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4078b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4078df
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x26
neg eax
sbb eax, eax
add eax, 0x40000002
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
cmp ecx, 0xffffffff
jne 0x4078f0
mov eax, 0x40000001
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp ecx, dword [ebp + 8]
mov edx, 0x40000002
cmovne eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x407910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x407942
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
neg eax
sbb eax, eax
add eax, 0x40000004
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp - 4], esi
mov ecx, 0x40000004
cmovne eax, ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4079a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
push 1
push 0x8000
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ecx
xor esi, esi
call fcn.0046dd84
add esp, 8
mov dword [ebp - 4], eax
test edi, edi
je 0x407a63
lea ecx, [ecx]
push 0
mov ebx, 0x8000
cmp edi, ebx
cmovb ebx, edi
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x407a5b
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x407a65
cmp eax, ebx
jne 0x407a65
mov ecx, ebx
shr ecx, 2
mov edx, edi
test ecx, ecx
je 0x407a21
lea esp, [esp]
mov eax, esi
shr eax, 0x1f
add edx, 4
lea esi, [eax + esi*2]
add esi, dword [edx - 4]
dec ecx
jne 0x407a10
mov eax, ebx
and eax, 3
mov dword [ebp - 0x14], eax
mov edi, 0
jbe 0x407a48
mov ebx, eax
movzx ecx, byte [edi + edx]
mov eax, esi
shr eax, 0x1f
add ecx, eax
inc edi
lea esi, [ecx + esi*2]
cmp edi, ebx
jb 0x407a32
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], edi
jne 0x4079d0
mov edi, dword [ebp - 4]
jmp 0x407a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x407a65
mov edi, eax
push 0x8000
push 0
push edi
call fcn.00472320
push edi
call fcn.0046d5c7
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408080
Capabilities:
Create directory
Get common file path

Disassembly:
push esi
mov esi, dword [0x4b387c]
push edi
push 2
push 0x104
call fcn.0046dd84
mov edi, eax
add esp, 8
test edi, edi
je 0x4080c7
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x491db4
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push edi
call fcn.0046d5c7
mov esi, dword [0x4b387c]
add esp, 4
cmp word [esi], 0
je 0x4080f8
push esi
call fcn.0046f046
add esp, 4
push 0
push dword [0x4b387c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4080f8
mov ecx, dword [0x4b387c]
call fcn.004250d0
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 0x67
pop esi
ret
Function at 0x4081c0
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x4b3b60]
test eax, eax
je 0x4081f3
cmp dword [0x4b3b5c], 0
je 0x4081e2
push eax
mov ecx, 0x4b3c94
call fcn.004621f0
mov eax, dword [0x4b3b60]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4b3b60], 0
mov eax, dword [0x4b3888]
test eax, eax
je 0x408230
push 0x5c
push eax
call fcn.0046f622
add esp, 8
test eax, eax
je 0x408230
mov edx, dword [0x4b3888]
mov ecx, eax
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jae 0x408224
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x408229
xor ecx, ecx
mov word [eax], cx
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [0x4b3880]
test edi, edi
je 0x40831d
cmp word [edi], 0
je 0x408314
xor esi, esi
push edi
call fcn.0046f046
add esp, 4
test eax, eax
je 0x408279
call fcn.0046faa7
cmp dword [eax], 2
je 0x408279
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x408253
jmp 0x4082e5
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408280
sub ecx, edx
sar ecx, 1
push 2
lea eax, [ecx + 1]
push eax
call fcn.0046dd84
mov esi, eax
add esp, 8
test esi, esi
je 0x4082e5
mov edx, esi
mov ecx, edi
sub edx, edi
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4082b0
push 0x5c
push esi
call fcn.0046f622
add esp, 8
test eax, eax
je 0x4082dc
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0046fafb
add esp, 4
push esi
call fcn.0046d5c7
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4082f0
sub ecx, edx
sar ecx, 1
lea edi, [edi + ecx*2]
add edi, 2
cmp word [edi], ax
jne 0x408251
mov edi, dword [0x4b3880]
push edi
call fcn.0046d5c7
add esp, 4
mov edx, dword [0x4b387c]
test edx, edx
je 0x40838a
xor esi, esi
lea esp, [esp]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408335
sub ecx, edi
sar ecx, 1
cmp ecx, 3
jle 0x408358
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x408358
xor eax, eax
mov word [edx + ecx*2 - 2], ax
push edx
call fcn.0046fafb
add esp, 4
test eax, eax
je 0x408384
call fcn.0046faa7
cmp dword [eax], 2
je 0x408384
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jge 0x408384
mov edx, dword [0x4b387c]
jmp 0x408330
mov edx, dword [0x4b387c]
push edx
call fcn.0046d5c7
push dword [0x4b3888]
mov dword [0x4b387c], 0
call fcn.0046d5c7
add esp, 8
mov dword [0x4b3888], 0
pop edi
pop esi
pop ebx
ret
Function at 0x408500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x224], 0
je 0x4085c2
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x208]
inc eax
cmp eax, ecx
jbe 0x40854a
lea eax, [ecx + 0x400]
push eax
push dword [edi + 0x204]
call fcn.0046f074
add esp, 8
add dword [edi + 0x208], 0x400
mov dword [edi + 0x204], eax
mov eax, dword [edi + 0x20c]
mov ecx, dword [edi + 0x204]
mov byte [ecx + eax], 0
mov eax, dword [edi + 0x220]
inc dword [edi + 0x20c]
test eax, eax
je 0x4085c2
push ebx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4085c1
push 0
lea eax, [ebp - 4]
push eax
push 2
lea ecx, [edi + 0x21c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x20c]
push dword [edi + 0x204]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [edi + 0x220]
test eax, eax
je 0x4085d5
push eax
call fcn.0046d5c7
add esp, 4
mov eax, dword [edi + 0x204]
pop edi
test eax, eax
je 0x4085e9
push eax
call fcn.0046d5c7
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x408670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
mov esi, ecx
push 0x80000000
push dword [esi + 0x220]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408774
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push ebx
call edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x40876d
push 0
push 0
push 0
push ebx
call edi
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
push 2
add eax, 0x18c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 4]
add edi, 0xfffffffe
push edi
call fcn.0046d535
add esp, 4
mov dword [esi + 0x204], eax
test eax, eax
je 0x40876d
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408755
mov dword [esi + 0x208], edi
xor eax, eax
mov dword [esi + 0x20c], 0
lea edi, [esi + 4]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [esi + 0x210], eax
push ebx
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x224], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x204]
call fcn.0046d5c7
add esp, 4
mov dword [esi + 0x204], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411ea0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
mov esi, edx
call fcn.00472320
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], esi
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x440
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
mov esi, 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x411fb7
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
je 0x411fa3
call fcn.0042b560
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
and ebx, 2
je 0x411f39
mov eax, dword [0x4b39d4]
push 0
push dword [eax + 0x10]
call esi
mov eax, dword [0x4b39d4]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x411f39
push 0
push eax
call esi
push edi
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x411f78
cmp dword [ebp + 8], 0x103
jne 0x411f78
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00402c40
push 0x4ff
push 0xc8
push 0
push 0
push 0
call edi
jmp 0x411f40
pop edi
test bx, bx
je 0x411f9e
mov eax, dword [0x4b39d4]
push 5
push dword [eax + 0x10]
call esi
mov eax, dword [0x4b39d4]
mov eax, dword [eax + 0x4c4]
test eax, eax
je 0x411f9e
push 5
push eax
call esi
call fcn.0042b630
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
pop ebx
movsx eax, cx
pop esi
mov esp, ebp
pop ebp
ret
movsx eax, si
pop esi
mov esp, ebp
pop ebp
ret