joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402070
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452028
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46a524]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x18], 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [edi + 0x14], ebx
jb 0x4020b6
mov eax, dword [edi + 4]
jmp 0x4020b9
lea eax, [edi + 4]
mov byte [eax], bl
jmp 0x4020c0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x28]
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40222d
mov ecx, dword [ebp - 0x38]
inc ecx
push ecx
call fcn.0041e730
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40222d
mov edx, dword [ebp - 0x38]
inc edx
push edx
push ebx
push esi
call fcn.00428b60
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
mov eax, dword [edx + 0x28]
push ecx
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40222d
mov dword [ebp - 0x34], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.00420760
add esp, 4
cmp eax, ebx
je 0x402231
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
mov dword [edx], ecx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x38]
push eax
push esi
call fcn.00401430
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call fcn.004025f0
mov eax, dword [ebp - 0x30]
mov ecx, 0x10
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x1c], ecx
jae 0x402188
lea eax, [ebp - 0x30]
mov byte [eax], bl
cmp dword [ebp - 0x1c], ecx
jb 0x40219b
mov edx, dword [ebp - 0x30]
push edx
call fcn.004205e0
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], ebx
je 0x4021e6
push 3
lea ecx, [ebp - 0x40]
call fcn.0041e6c0
mov eax, dword [ebp - 0x34]
cmp dword [eax + 4], ebx
je 0x4021d8
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
cmp ecx, ebx
jne 0x4021c6
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
mov dword [edx + 4], ebx
call fcn.0041e700
mov eax, dword [ebp - 0x34]
push eax
call fcn.004205e0
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xffffffff
call fcn.004207e0
add esp, 8
cmp dword [ebp - 0x38], ebx
ja 0x4020c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041fd30
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x402210
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
call fcn.0041fd70
push 0x467b98
lea edx, [ebp - 0x54]
push edx
mov dword [ebp - 0x54], vtable.std::bad_alloc.0
call fcn.00428790
int3
Function at 0x405c60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451d0e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46a524]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
cmp dword [edi + 0x7c], 0x10
jb 0x405ca6
mov eax, dword [edi + 0x68]
push eax
call fcn.004205e0
add esp, 4
xor ebx, ebx
mov dword [edi + 0x7c], 0xf
mov dword [edi + 0x78], ebx
lea ecx, [edi + 0x64]
mov byte [edi + 0x68], bl
call fcn.00401380
mov byte [ebp - 4], 1
cmp dword [edi + 0x48], 0x10
jb 0x405cd3
mov eax, dword [edi + 0x34]
push eax
call fcn.004205e0
add esp, 4
mov dword [edi + 0x48], 0xf
mov dword [edi + 0x44], ebx
lea ecx, [edi + 0x30]
mov byte [edi + 0x34], bl
call fcn.00401380
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004069a0
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00401380
mov ecx, edi
mov dword [ebp - 4], 4
call fcn.00406910
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00401380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4076d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x46a524]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
mov dword [ebp - 0x134], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x407730
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fd30
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x130], 0x128
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407762
test dl, dl
je 0x40775e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407762
add eax, 2
add ecx, 2
test dl, dl
jne 0x407742
xor eax, eax
jmp 0x407767
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407792
lea ecx, [ebp - 0x130]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x407730
mov eax, dword [ebp - 0x134]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fd30
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
xor ecx, ebp
pop esi
call fcn.0041fd30
mov esp, ebp
pop ebp
ret
Function at 0x40baf0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x46a524]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
or esi, 0xffffffff
cmp dword [ebp + 8], 0
push edi
mov byte [ebp - 0x135], 1
jne 0x40bb29
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041fd30
mov esp, ebp
pop ebp
ret
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x134]
push ecx
push eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40bbd6
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x110]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bb90
test dl, dl
je 0x40bb8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bb90
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bb70
xor eax, eax
jmp 0x40bb95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bbb5
mov eax, dword [ebp - 0x12c]
push eax
push 1
push 0x1fffff
mov esi, eax
call edi
push 0
push eax
call ebx
cmp eax, 1
jne 0x40bbcf
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x134]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40bb65
jmp 0x40bbd6
mov byte [ebp - 0x135], 0
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
cmp esi, 0xffffffff
sete al
pop edi
dec al
and al, byte [ebp - 0x135]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fd30
mov esp, ebp
pop ebp
ret
Function at 0x40e9e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x452179
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46a524]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x46a524]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ecx
cmp dword [ecx + 0x44], esi
je 0x40ec02
cmp byte [ecx + 0x49], 0
je 0x40ec02
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x40ebea
push esi
push 8
lea ecx, [esp + 0x58]
call fcn.0040e140
mov dword [esp + 0x80], esi
lea esp, [esp]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00406870
mov esi, eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x88], 1
call fcn.00406870
mov edi, eax
mov byte [esp + 0x80], 2
call fcn.0040f200
mov ecx, dword [esp + 0x64]
mov esi, edi
mov ebx, eax
mov dword [esp + 0x18], ecx
call fcn.0040f200
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx]
lea esi, [esp + 0x1c]
push esi
mov esi, dword [esp + 0x1c]
add esi, ebx
push esi
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x80], 1
call fcn.00405090
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 0
call fcn.00405090
mov eax, esi
sub eax, 0
je 0x40eb12
dec eax
je 0x40eb16
sub eax, 2
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
jne 0x40ebe5
jmp 0x40ebfd
mov byte [edi + 0x49], 0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.00406870
mov esi, eax
mov byte [esp + 0x80], 3
call fcn.0040f200
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
sub edi, eax
mov byte [esp + 0x80], 0
call fcn.00405090
test edi, edi
je 0x40eb8e
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00406870
mov byte [esp + 0x80], 4
or dword [esp + 0x10], 1
mov esi, eax
call fcn.0040f200
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x54]
push ecx
push edi
push 1
push eax
call fcn.004263d0
add esp, 0x10
cmp edi, eax
je 0x40eb8e
mov bl, 1
jmp 0x40eb90
xor bl, bl
mov dword [esp + 0x80], 0
test byte [esp + 0x10], 1
je 0x40ebb0
and dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0x38]
call fcn.00405090
test bl, bl
jne 0x40ebd6
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x49], bl
je 0x40ebee
test edi, edi
jne 0x40ea60
push edi
push 8
lea ecx, [esp + 0x58]
call fcn.0040e1f0
jmp 0x40ea60
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00401210
xor al, al
jmp 0x40ec04
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00401210
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041fd30
mov esp, ebp
pop ebp
ret
Function at 0x40efd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451c2b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x46a524]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041f590
push 0x18
push str.c:Program_FilesMicrosoft_Visual_Studio_10.0VCinclude_streambuf
mov dword [ebp - 4], 0
call fcn.0041ec10
push eax
push 4
call fcn.0041eb40
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40f05d
call fcn.0041f070
mov dword [edi], eax
call fcn.0041ee80
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041e6c0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f053
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041e700
jmp 0x40f05f
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4180d0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450ff9
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0xd8]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x46a524]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041aca0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x18
call fcn.0041ae00
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.00402430
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0x64
call fcn.00402430
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0x84
push eax
call fcn.00418090
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.00428010
mov esp, ebp
pop ebp
ret

Function at 0x41fd30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46a524]
jne 0x41fd3a
repz ret
jmp fcn.0042d6a0
Function at 0x420a20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x420a58
push str._path___NULL_
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00420bd0
add esp, 0x14
cmp eax, 1
jne 0x420a58
int3
cmp dword [ebp - 8], 0
jne 0x420a99
call fcn.0042d210
mov dword [eax], 0
call fcn.0042d1e0
mov dword [eax], 0x16
push 0
push 0x50
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push str._path___NULL_
call fcn.00420810
add esp, 0x14
mov eax, 0x16
jmp 0x420b71
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x420ac9
push 0x457090
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.00420bd0
add esp, 0x14
cmp eax, 1
jne 0x420ac9
int3
cmp dword [ebp - 0xc], 0
jne 0x420b07
call fcn.0042d210
mov dword [eax], 0
call fcn.0042d1e0
mov dword [eax], 0x16
push 0
push 0x51
push str.f:dd_vctoolscrt_bld_self_x86crt_src_access.c
push str._access_s
push 0x457090
call fcn.00420810
add esp, 0x14
mov eax, 0x16
jmp 0x420b71
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x420b32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d130
add esp, 4
call fcn.0042d1e0
mov eax, dword [eax]
jmp 0x420b71
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x420b3e
xor eax, eax
jmp 0x420b71
mov eax, dword [ebp - 4]
and eax, 1
je 0x420b6f
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x420b6f
call fcn.0042d210
mov dword [eax], 5
call fcn.0042d1e0
mov dword [eax], 0xd
call fcn.0042d1e0
mov eax, dword [eax]
jmp 0x420b71
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x420b80
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x420b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x420ba6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x420bbd
mov ecx, dword [ebp - 4]
push ecx
call fcn.0042d130
add esp, 4
or eax, 0xffffffff
jmp 0x420bbf
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41a217
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x41a25e
cmp ebx, 0x20
je 0x41a25e
cmp ebx, 0xffffffe0
je 0x41a25e
jne 0x41a267
add eax, 1
cmp esi, eax
je 0x41a274
jne 0x41a243
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x41a278
jne 0x41a23f
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x41a28c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x41a2d1
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x41a2d7
add eax, 4
pop esi
dec esi
push esi
jne 0x41a2b9
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x43d20b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x43d230
xor eax, eax
jmp 0x43d235
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x475540
call fcn.00473d57
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x43d26b
push ebx
call fcn.00473d51
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x43d278
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43d2cd
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x43d2cd
test eax, eax
je 0x43d2cd
lea esi, [edx + ecx]
cmp edx, esi
jae 0x43d2cd
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x43d2a9
pop esi
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x474f00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x517cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.0050c058
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.0047af10
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x474f54
jmp dword [ecx*4 + 0x4750bc]
mov al, byte [esi]
test al, al
je 0x474f82
cmp al, 0x20
je 0x474f6e
cmp al, 0xa1
jne 0x474f82
cmp byte [esi + 1], al
jne 0x474f82
test al, 0x80
je 0x474f7a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x474f82
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x474f61
test ecx, ecx
je case.default.0x474f54
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x474f54
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x474fc8
cmp dl, 0xa1
jne 0x474fbc
cmp byte [eax + 1], 0xa1
jne 0x474fbc
test ecx, ecx
jne 0x474fb4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x474fdc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x474ff6
jmp 0x474fdc
cmp dl, 0x20
jne 0x474fda
test ecx, ecx
jne 0x474fd3
mov edi, eax
mov ecx, 1
jmp 0x474fdc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x474f9c
cmp ecx, 1
jne case.default.0x474f54
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x474f54
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x474f54
mov al, byte [esi]
test al, al
je 0x47504e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x475034
mov cl, byte [esi + 1]
test cl, cl
je 0x47504e
cmp al, 0xa1
jne 0x475024
cmp cl, al
je 0x475031
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.0047b1e0
inc esi
jmp 0x475046
cmp al, 0x20
je 0x475046
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0047b220
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x47500d
push 0
lea ecx, [esp + 0x14]
call fcn.0047b220
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004849b0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x475081
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0xf12ca0
call fcn.0047b110
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0050bfea
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4767e0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x10b1118
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004767a0
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47688a
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x4768eb
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x47686c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x476874
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.004f33e0
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4768df
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x4768bd
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret