joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x480d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00452620
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004526a0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004526a0
lea ecx, [esi + 0xc]
call fcn.004708d2
lea ecx, [esi + 0x10]
call fcn.004708d2
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00454ed0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00454ed0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00454ed0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00470947
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00470947
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x453718
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x480f38
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x453728
call fcn.00453c40
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x45380b
cmp byte [edi], 0
je 0x45380b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x45374d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00452440
test eax, eax
jne 0x45376d
push 0x72f4b8
lea ecx, [esi + 0x38]
call fcn.00470ad0
jmp 0x45380b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00452490
test eax, eax
jne 0x45379c
mov ecx, esi
call fcn.00452590
push edi
add esi, 0x38
push 0x72f494
push esi
call fcn.0046e31a
add esp, 0xc
jmp 0x45380b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.004544c0
test eax, eax
je 0x453804
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004538e0
test eax, eax
jne 0x453820
push edi
lea eax, [esi + 0x38]
push 0x72f470
push eax
call fcn.0046e31a
add esp, 0xc
mov ecx, esi
call fcn.00453c40
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4538c8
mov ecx, dword [0x730250]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.0046e31a
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00452540
test eax, eax
jne 0x45388a
push 0x72f454
lea ecx, [esi + 0x38]
call fcn.00470ad0
jmp 0x45389a
push 0xfa
mov ecx, esi
call fcn.004544c0
test eax, eax
jne 0x4538b7
mov ecx, esi
call fcn.00453c40
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00470947
jmp 0x45380b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00470947
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x472d37
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x472d6f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00470dee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00470dc6
jmp 0x472d7b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47442a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47446c
call fcn.0047a1d3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47446c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x474463
xor eax, eax
jmp 0x474474
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047447a
pop edi
pop esi
pop ebx
ret 4

Function at 0x47a703
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47a731
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47a74f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047a669
jmp 0x47a74f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47a74f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047a669
test edi, edi
mov eax, edi
jne 0x47a739
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10507058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105071a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1050707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050706a
add dl, dl
jne 0x10507089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105070dc
xor eax, eax
add dl, dl
jne 0x10507096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050717d
add dl, dl
jne 0x105070a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105070b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105070bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105070c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105070d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10507075
mov eax, 1
add dl, dl
jne 0x105070ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105070f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105070e1
sub eax, ebx
mov ebx, 1
jne 0x10507128
mov ecx, 1
add dl, dl
jne 0x1050710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10507119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10507105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10507075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1050713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1050714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10507136
cmp eax, 0x7d00
jae 0x1050716d
cmp eax, 0x500
jb 0x10507168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10507075
cmp eax, 0x7f
ja 0x10507170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10507075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1050719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10507075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402230
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4033d8
push 0x402440
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x404320], 0xffffffff
mov dword [0x404324], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404314]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x404310]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40431c], ecx
call fcn.00402430
mov eax, dword [0x404230]
test eax, eax
jne 0x4022c1
push 0x402420
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00402400
push 0x404014
push 0x404010
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x40430c]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x404308]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x40400c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4023cf
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x402335
cmp al, 0x22
jne 0x402327
cmp byte [esi], 0x22
jne 0x40233e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40234e
cmp al, 0x20
ja 0x40234e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40233e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40236f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x402374
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4023b4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40233e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4023cf
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 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 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
call 0x8c21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8c207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c206a
add dl, dl
jne 0x8c2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c20dc
xor eax, eax
add dl, dl
jne 0x8c2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c217d
add dl, dl
jne 0x8c20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8c20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8c2075
mov eax, 1
add dl, dl
jne 0x8c20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c20e1
sub eax, ebx
mov ebx, 1
jne 0x8c2128
mov ecx, 1
add dl, dl
jne 0x8c210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8c213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c2136
cmp eax, 0x7d00
jae 0x8c216d
cmp eax, 0x500
jb 0x8c2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c2075
cmp eax, 0x7f
ja 0x8c2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8c219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x8c2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403a77
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test esi, esi
je 0x403ab3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403ab3
test al, 0x10
jne 0x403ab3
call fcn.004063e0
mov edx, esi
mov ecx, eax
call fcn.004065a0
test al, al
jne 0x403ab6
push edi
call fcn.004063e0
mov edi, eax
call fcn.00406a10
push edi
mov ecx, esi
call fcn.00406820
pop edi
xor eax, eax
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
ret
Function at 0x404820
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x40d07b
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x412384]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x412384]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov esi, 7
mov dword [edi + 0x1060], esi
mov dword [edi + 0x105c], ebx
mov dword [esp + 0x30], edi
mov word [edi + 0x104c], bx
mov dword [esp + 0x154], ebx
mov dword [edi + 0x107c], esi
mov dword [edi + 0x1078], ebx
mov word [edi + 0x1068], bx
mov dword [edi + 0x1098], esi
mov dword [edi + 0x1094], ebx
mov word [edi + 0x1084], bx
lea ebp, [edi + 0x10a0]
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [edi + 0x10b4], ebx
mov dword [edi + 0x10b8], ebx
mov dword [edi + 0x10bc], ebx
push 0x410
mov byte [esp + 0x158], 4
push ebx
push edi
mov dword [edi + 0x103c], ebx
mov dword [edi + 0x1040], ebx
mov dword [edi + 0x1044], ebx
call sub.MSVCR80.dll_memset
push 0x410
lea eax, [edi + 0x410]
push ebx
push eax
call sub.MSVCR80.dll_memset
push 0x400
lea ecx, [edi + 0x820]
push ebx
push ecx
call sub.MSVCR80.dll_memset
push 0x410
lea edx, [edi + 0xc20]
push ebx
push edx
call sub.MSVCR80.dll_memset
push 0x110
lea eax, [esp + 0x6c]
push ebx
push eax
mov byte [edi + 0x1030], bl
mov byte [edi + 0x1031], bl
mov dword [edi + 0x1034], ebx
mov byte [edi + 0x1032], bl
mov byte [edi + 0x1038], 1
mov byte [edi + 0x10c0], bl
mov byte [edi + 0x109c], bl
mov dword [esp + 0x70], 0x114
call sub.MSVCR80.dll_memset
add esp, 0x3c
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
je 0x404988
cmp dword [esp + 0x38], 6
jb 0x404988
mov byte [edi + 0x1032], 1
push 0xe
mov dword [esp + 0x30], esi
push str._nNwmteRQ
lea esi, [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00402780
mov edx, esi
push edx
mov esi, ebp
mov byte [esp + 0x158], 5
call fcn.00401f40
mov byte [esp + 0x154], 4
cmp dword [esp + 0x2c], 8
jb 0x4049d3
mov eax, dword [esp + 0x18]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 8
push str.2345.com
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
call fcn.00402780
mov ecx, esi
push ecx
mov esi, ebp
mov byte [esp + 0x158], 6
call fcn.00401f40
mov byte [esp + 0x154], 4
cmp dword [esp + 0x2c], 8
jb 0x404a22
mov edx, dword [esp + 0x18]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
call fcn.00405b90
mov eax, edi
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0040bac6
add esp, 0x144
ret
Function at 0x405b90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x412384]
xor eax, esp
mov dword [esp + 0x42c], eax
lea edx, [edi + 0xc20]
push ebx
mov eax, edx
push esi
mov byte [edi + 0x10c0], 0
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405bc0
sub eax, esi
sar eax, 1
je 0x405d81
lea esi, [edi + 0x10b0]
push esi
push edx
call fcn.00405da0
push 0x208
lea eax, [esp + 0x226]
push 0
push eax
mov word [esp + 0x22c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x224]
mov ebx, 0x104
push edx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor eax, eax
push 0x208
push eax
mov word [esp + 0x42e], ax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [edi + 0x1044], 0
mov dword [esp + 8], ebx
jne 0x405c5f
push str.AdvApi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x1044], eax
mov ecx, dword [edi + 0x1044]
push str.GetUserNameW
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405c81
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x14]
push ecx
call eax
mov eax, dword [esi + 4]
test eax, eax
mov word [esp + 0x216], 0
je 0x405d20
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x405d20
mov eax, dword [esi + 4]
test eax, eax
je 0x405cd1
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x405cd7
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esi + 4]
cmp byte [ebx + 0x69c], 1
jne 0x405d12
lea edx, [esp + 0x220]
push edx
push ebx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x405d12
lea eax, [esp + 0x10]
push eax
add ebx, 0x280
push ebx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x405d20
mov eax, esi
call fcn.00406c90
mov byte [edi + 0x10c0], 1
mov eax, dword [esi + 4]
test eax, eax
je 0x405d41
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x9ad70599
imul ecx
add edx, ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x405d81
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x405d50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405d50
sub eax, edx
sar eax, 1
push 1
add eax, 1
push eax
lea edx, [esp + 0x228]
push edx
push 0
mov edx, esi
lea ecx, [esp + 0x20]
call fcn.00405920
mov byte [edi + 0x10c0], 1
mov ecx, dword [esp + 0x434]
pop esi
pop ebx
xor ecx, esp
call fcn.0040bac6
mov esp, ebp
pop ebp
ret
Function at 0x405da0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x40cef0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x412384]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
xor esi, esi
cmp eax, esi
je 0x405fab
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405fab
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x78], esi
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x1c]
lea edi, [esp + 0x24]
lea ebx, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.004058a0
xor ebx, ebx
cmp al, bl
je 0x405eb3
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ecx, esi
add ecx, 0xffffffff
mov eax, edi
adc eax, 0xffffffff
cmp eax, ebx
ja 0x405eb3
jb 0x405e59
cmp ecx, 0xffffe
ja 0x405eb3
mov eax, esi
lea ecx, [esp + 0x30]
call fcn.004042e0
mov eax, dword [esp + 0x34]
cmp eax, ebx
mov dword [esp + 0x80], ebx
je 0x405e7b
mov ecx, dword [esp + 0x38]
sub ecx, eax
jne 0x405e85
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x34]
push ebx
lea edx, [esp + 0x84]
push edx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x80]
xor ecx, ecx
cmp ecx, edi
ja 0x405eb3
jb 0x405eaa
cmp eax, esi
jae 0x405eb3
lea ecx, [esp + 0x30]
call fcn.004042e0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x405fab
mov edi, dword [esp + 0x38]
sub edi, esi
jne 0x405edc
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x405fab
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
lea eax, [esp + 0x50]
mov byte [esp + 0x78], 1
call fcn.00407e00
cmp edi, ebx
ja 0x405f04
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x40]
push eax
push esi
lea ecx, [esp + 0x58]
push ecx
mov ecx, edi
call fcn.00407e80
test al, al
je 0x405f99
mov edi, dword [esp + 0x44]
cmp edi, ebx
mov ecx, dword [esp + 0x48]
jne 0x405f2a
xor esi, esi
jmp 0x405f2e
mov esi, ecx
sub esi, edi
mov eax, 0x35ae0b31
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xa
imul eax, eax, 0x69d
sub esi, eax
jne 0x405f99
cmp edi, ebx
jne 0x405f52
xor ecx, ecx
jmp 0x405f54
sub ecx, edi
mov eax, 0x35ae0b31
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0xa
mov esi, ecx
je 0x405f99
mov ebx, dword [esp + 0x84]
push esi
push ebx
call fcn.00406ae0
imul esi, esi, 0x69d
push esi
lea esi, [esp + 0x44]
call fcn.004043b0
push eax
xor edi, edi
mov esi, ebx
call fcn.00406bb0
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
lea esi, [esp + 0x40]
call fcn.004042b0
lea esi, [esp + 0x30]
call fcn.004042b0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 8