joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d213
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
push 0x48b5d4
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov bl, byte [esi + 9]
xor edi, edi
cmp dword [ebp + 0x10], edi
setl byte [ebp - 1]
and bl, 0x11
cmp byte [ebp - 1], 0
jne 0x43d247
test byte [ebp + 0x10], 0x40
je 0x43d249
xor bl, bl
mov esi, dword [ebp + 8]
push str.RANDOM
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x43d29d
mov word [ebp - 0x4c], di
call fcn.004264c1
and edx, 0x7fffffff
push edx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0043417d
mov esi, dword [ebp + 0xc]
add esp, 0xc
push 3
mov ecx, esi
mov word [ebp - 0xe], di
call fcn.00424699
mov esi, dword [esi]
mov ax, word [ebp - 0x4c]
mov word [esi], ax
lea eax, [esi + 2]
jmp 0x43d3d0
push esi
call fcn.0046176a
cmp byte [ebp - 1], 0
mov edi, dword [ebp + 0xc]
movsx eax, bl
pop ecx
mov byte [ebp + 0x13], 0
mov dword [ebp - 8], eax
jne 0x43d2c9
cmp word [esi], 0x26
je 0x43d37b
test bl, bl
jne 0x43d354
push 0x52
mov ecx, edi
call fcn.00424699
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [edi]
push 0x50
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jle 0x43d333
cmp word [esi], 0
jne 0x43d32b
lea eax, [ebx + 0xc]
push eax
mov ecx, edi
call fcn.00424699
mov esi, dword [edi]
and word [esi], 0
push 0
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [edi]
add ebx, 0xa
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
jg 0x43d3cd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xcb
jne 0x43d3c9
cmp byte [ebp + 0x13], 0
jne 0x43d3c7
cmp byte [ebp - 1], 0
mov byte [ebp + 0x13], 1
jne 0x43d3c7
mov ecx, dword [ebp - 0xc]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push dword [ebp + 8]
call fcn.0040e8be
cmp eax, ebx
jne 0x43d38a
cmp dword [ebp - 8], ebx
jne 0x43d398
cmp byte [ebp + 0x13], bl
jne 0x43d398
mov byte [ebp + 0x13], 1
jmp 0x43d2c9
add esi, 2
mov dword [ebp + 8], esi
mov dword [ebp - 8], 1
jmp 0x43d354
mov eax, dword [eax]
push eax
mov dword [ebp + 8], eax
call fcn.0046176a
pop ecx
mov ebx, eax
lea eax, [ebx + 2]
push eax
mov ecx, edi
call fcn.00424699
dec ebx
mov esi, dword [edi]
mov dword [ebp + 0xc], esi
js 0x43d3d3
lea eax, [ebx + 1]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov cx, word [ecx]
add dword [ebp + 0xc], 2
add dword [ebp + 8], 2
dec eax
mov word [edx], cx
jne 0x43d3ae
jmp 0x43d3d3
xor ebx, ebx
test ebx, ebx
jle 0x43d3d3
lea eax, [esi + ebx*2]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
and word [eax], 0
mov eax, 0x48b5d4
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43dcfa
Capabilities:
Parse credit card information
Query environment variable

Disassembly:
push ebp
mov ebp, esp
cmp byte [ecx + 0x4d], 0
jne 0x43dd0f
test byte [ecx + 9], 0xf
jne 0x43dd0f
pop ebp
jmp fcn.0043dc02
pop ebp
jmp fcn.0043cace

Function at 0x43dff9
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov ax, word [esi]
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
mov ecx, esi
xor edi, edi
cmp ax, bx
mov dword [ebp + 8], ecx
je 0x43e03e
mov edx, eax
mov eax, edx
call fcn.004213da
test al, al
jne 0x43e03e
cmp dx, 0x24
jne 0x43e031
xor edi, edi
inc edi
inc ecx
inc ecx
mov dx, word [ecx]
cmp dx, bx
mov dword [ebp + 8], ecx
jne 0x43e01d
mov ax, word [ecx]
call fcn.004213da
test al, al
je 0x43e05a
lea ecx, [ebp + 8]
call fcn.00429ef2
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x43e064
mov eax, 0x80070057
jmp 0x43e1b1
cmp edi, ebx
mov dword [ebp - 8], ebx
je 0x43e0ab
mov ecx, dword [ebp - 4]
push 1
push ebx
lea eax, [ebp - 8]
push eax
push esi
call fcn.0043cace
mov eax, dword [ebp - 8]
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00429ef2
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call fcn.00403977
mov eax, dword [ebp + 8]
cmp word [eax], bx
pop ecx
jne 0x43e0ab
mov esi, 0x80070057
jmp 0x43e1a7
push 5
push dword [ebp + 8]
mov edi, 0x100000
push str.st:
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
call fcn.004257a3
add esp, 0xc
test al, al
je 0x43e0f6
add dword [ebp + 8], 0xa
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0042f308
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
add edi, 0x1fff
adc eax, ebx
pop ecx
pop ecx
and edi, 0xffffe000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], ebx
mov esi, 0x48b1a4
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea eax, [ebp - 0x1c]
push eax
push 0x10000
lea eax, [ebp - 0x2c]
push eax
push 0x43dd15
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x43e147
mov dword [ebp - 0xc], ebx
jmp 0x43e157
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jne 0x43e154
xor eax, eax
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], ebx
je 0x43e18a
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp + 8], 0x270f
cmp dword [ebp - 0x20], ebx
je 0x43e181
push ebx
call edi
dec dword [ebp + 8]
jns 0x43e169
jmp 0x43e17c
push 1
call edi
cmp dword [ebp - 0x20], ebx
jne 0x43e178
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push str.__LastTID
push dword [ebp - 0x1c]
push dword [ebp - 4]
call fcn.0042d501
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.00424686
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43e9ce
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.0046176a
mov esi, eax
mov eax, 0xb4
cmp esi, eax
pop ecx
jle 0x43e9f0
mov esi, eax
and dword [ebp - 0x298], 0
xor eax, eax
mov ecx, 0xa5
lea edi, [ebp - 0x294]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
lea eax, [esi + esi]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 0x250], 0x40
mov dword [ebp - 0x24c], edi
call fcn.00461a50
and word [ebp + esi*2 - 0x248], 0
add esp, 0xc
mov ebx, 0x48b1a4
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x48ab6c
push 0x10000
lea eax, [ebp - 0x298]
push eax
push 0x43e1b8
push 0x20000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x43eab8
mov esi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp + 0x1c], 0x270f
cmp dword [ebp - 0x24c], edi
jne 0x43eaaf
push 0
call esi
dec dword [ebp + 0x1c]
jns 0x43ea90
jmp 0x43eaa7
push 1
call esi
cmp dword [ebp - 0x24c], edi
je 0x43eaa3
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x441a2a
Capabilities:
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x84
push ebx
push esi
xor ebx, ebx
cmp byte [ebp + 0x78], bl
push edi
mov edi, ecx
mov esi, dword [edi + 0x1c]
mov dword [ebp + 0x64], edi
mov word [ebp - 0x1c], bx
jne 0x441a98
push dword [ebp + 0x70]
lea ebx, [esi + 0x40]
mov ecx, ebx
call fcn.00409673
and dword [ebp + 0x4c], 0
xor eax, eax
mov dword [ebp + 0x48], 1
lea edi, [ebp + 0x50]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x74]
mov edi, dword [esi + 0x4c]
mov dword [ebp + 0x54], eax
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x70]
push 0x133d
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov edi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x70]
inc eax
push eax
lea eax, [ebp - 0x1c]
push 0x47ba30
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x47a470
lea ecx, [ebp + 0x78]
call fcn.0042a183
push dword [edi + 8]
lea ecx, [ebp + 0x78]
call fcn.004246c0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x78]
call fcn.004246c0
push dword [ebp + 0x74]
mov ecx, dword [edi + 0x30]
push dword [ebp + 0x78]
call fcn.00428e1b
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x441af8
mov ecx, dword [eax]
test ecx, ecx
je 0x441af8
and dword [eax], 0
push ecx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
test ebx, ebx
je 0x441b0c
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call esi
push 5
push ebx
call esi
lea ecx, [ebp + 0x78]
call fcn.00424686
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x442880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
dec eax
push esi
je 0x442965
sub eax, 0x80
je 0x4428fd
sub eax, 0x8e
je 0x4428df
dec eax
je 0x4428b5
sub eax, 0x2ef
je 0x4428ae
pop esi
pop ebp
jmp fcn.00442579
mov eax, 0x487f
jmp 0x4428cb
movzx eax, word [ebp + 0x10]
cmp eax, 2
jne 0x4428d0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x80]
xor eax, eax
pop esi
pop ebp
ret 0x10
cmp eax, 1
jne 0x4428c9
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0x7c]
jmp 0x4428c9
mov esi, dword [ebp + 8]
push 0
push 0
push 0x400
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
jmp 0x4428cb
push dword [sym.imp.USER32.dll_DefWindowProcW]
mov esi, dword [ebp + 8]
push 0xfffffffffffffffc
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowLongW]
cmp dword [esi + 0x2c], 0
je 0x44295d
test byte [esi + 0x48], 1
je 0x44295d
push ebx
push edi
mov edi, 0x48b5d4
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x2c]
and dword [esi + 0x2c], 0
mov ebx, dword [eax + 0x18]
dec dword [eax + 0x6c]
push esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push eax
push 0x447
push ebx
call esi
push 0
push 0
push 0x43d
push ebx
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop ebx
xor eax, eax
inc eax
jmp 0x4428cb
mov eax, dword [ebp + 8]
test byte [eax + 0x48], 0x10
je 0x4428c9
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x44295d
Function at 0x4612e9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and eax, 0xffdf
cmp ax, 0x41
je 0x461307
cmp ax, 0x42
je 0x461307
push 0xfffffffffffffffe
pop eax
leave
ret
and word [ebp - 4], 0
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 6], 0x3a
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
leave
ret

Function at 0x46148c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop ebp
ret
Function at 0x464a7a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x47da50
call fcn.00464048
mov edi, 0x94
mov eax, edi
call fcn.00462ba0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x48bac4], ecx
mov eax, dword [esi + 4]
mov dword [0x48bad0], eax
mov edx, dword [esi + 8]
mov dword [0x48bad4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x48bac8], esi
cmp ecx, 2
je 0x464ada
or esi, 0x8000
mov dword [0x48bac8], esi
shl eax, 8
add eax, edx
mov dword [0x48bacc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x464b15
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x464b15
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x464b2d
cmp eax, 0x20b
je 0x464b1a
mov dword [ebp - 0x1c], esi
jmp 0x464b41
cmp dword [ecx + 0x84], 0xe
jbe 0x464b15
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x464b3b
cmp dword [ecx + 0x74], 0xe
jbe 0x464b15
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0046d177
pop ecx
test eax, eax
jne 0x464b55
push 0x1c
call fcn.00464a56
pop ecx
call fcn.0046745b
test eax, eax
jne 0x464b66
push 0x10
call fcn.00464a56
pop ecx
call fcn.0046ef24
mov dword [ebp - 4], esi
call fcn.00466342
test eax, eax
jge 0x464b7f
push 0x1b
call fcn.00464a31
pop ecx
call fcn.0046ee85
mov dword [0x48c470], eax
call fcn.0046ed1b
mov dword [0x48bab8], eax
call fcn.0046ec85
test eax, eax
jge 0x464ba4
push 8
call fcn.00464a31
pop ecx
call fcn.0046ea52
test eax, eax
jge 0x464bb5
push 9
call fcn.00464a31
pop ecx
push 1
call fcn.00464e55
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x464bcb
push eax
call fcn.00464a31
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
call fcn.0046ea0c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x464bec
movzx eax, word [ebp - 0x40]
jmp 0x464bef
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004067c2
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x464c0d
push edi
call fcn.00464f82
call fcn.00464fa4
jmp 0x464c3f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00464083
ret
Function at 0x464ebf
Capabilities:
Terminate process

Disassembly:
push 8
push 0x47da88
call fcn.00464048
push 8
call fcn.00466952
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x48bb04], esi
jne 0x464ef3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov dword [0x48bb00], esi
mov al, byte [ebp + 0x10]
mov byte [0x48bafc], al
cmp dword [ebp + 0xc], edi
jne 0x464f3d
cmp dword [0x48c468], edi
je 0x464f2d
mov eax, dword [0x48c464]
sub eax, 4
mov dword [0x48c464], eax
cmp eax, dword [0x48c468]
jb 0x464f2d
mov eax, dword [eax]
cmp eax, edi
je 0x464f0e
call eax
jmp 0x464f0e
push 0x4890dc
mov eax, 0x4890d4
call fcn.00464e3d
pop ecx
push 0x4890e8
mov eax, 0x4890e0
call fcn.00464e3d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x464f6e
cmp dword [ebp + 0x10], edi
jne 0x464f7c
mov dword [0x48bb04], esi
push dword [ebp + 8]
call fcn.00464dfb
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x464f7b
push 8
call fcn.0046689d
pop ecx
ret
call fcn.00464083
ret
Function at 0x466b8a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x48a310]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x466bbb
xor eax, eax
jmp 0x466d44
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x48c360]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x466bf7
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0046f5b4
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x466cd2
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x466d10
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x466c5b
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x466c4c
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x466c2c
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x466c9b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x466ca4
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x466c1d
jmp 0x466ca6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x466d3f
cmp dword [ebp - 0x6c], edi
je 0x466d10
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x466d05
call fcn.00466b05
mov dword [eax], 9
call fcn.00466b0e
mov dword [eax], esi
jmp 0x466d3a
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x466cfa
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x466ca6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x466ca6
push dword [ebp - 0x6c]
call fcn.00466b17
pop ecx
jmp 0x466d3a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x466d28
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x466d28
xor eax, eax
jmp 0x466d42
call fcn.00466b05
mov dword [eax], 0x1c
call fcn.00466b0e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x466d42
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0046f32b
add ebp, 0x3a0
leave
ret
Function at 0x46cb97
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46cbc5
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x46cbcc
cmp ebx, dword [eax + 4]
jae 0x46cbcc
xor eax, eax
jmp 0x46cdbc
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x46cbdd
xor eax, eax
inc eax
jmp 0x46cdbb
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x46cbf3
cmp ecx, edx
jae 0x46cd38
cmp dword [eax + 4], 0
je 0x46cbfc
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x46cbe4
cmp dword [ebp + 8], 0
je 0x46cc1e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x46cd38
cmp eax, esi
jae 0x46cd38
mov eax, dword [0x48bd60]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46cc43
cmp dword [esi*4 + 0x48bd68], edi
je 0x46cd3c
inc esi
cmp esi, eax
jl 0x46cc31
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x46cdb8
cmp dword [ebp - 8], 0x1000000
jne 0x46cdb8
test byte [ebp - 0xc], 0xcc
je 0x46ccc1
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x46cdb8
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x46cdb8
cmp word [eax + 0x18], 0x10b
jne 0x46cdb8
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x46cdb8
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x46ccc1
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x46ccc1
test byte [ecx + 0x27], 0x80
jne 0x46cd38
push 1
push 0x48bda8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x46cbd5
mov ecx, dword [0x48bd60]
test ecx, ecx
mov edx, ecx
jle 0x46ccf5
lea eax, [ecx*4 + 0x48bd64]
cmp dword [eax], edi
je 0x46ccf5
dec edx
sub eax, 4
test edx, edx
jg 0x46cce9
test edx, edx
jne 0x46cd26
push 0xf
pop ebx
cmp ecx, ebx
jg 0x46cd02
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x46cd1a
lea eax, [edx*4 + 0x48bd68]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x46cd08
cmp ecx, 0x10
jge 0x46cd26
inc ecx
mov dword [0x48bd60], ecx
push 0
push 0x48bda8
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x46cbd5
xor eax, eax
jmp 0x46cdbb
test esi, esi
jle 0x46cbd5
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x48bda8
call ebx
test eax, eax
jne 0x46cbd5
cmp dword [esi*4 + 0x48bd68], edi
je 0x46cd92
mov eax, dword [0x48bd60]
lea esi, [eax - 1]
test esi, esi
jl 0x46cd80
cmp dword [esi*4 + 0x48bd68], edi
je 0x46cd7c
dec esi
jns 0x46cd70
test esi, esi
jge 0x46cd90
cmp eax, 0x10
jge 0x46cd8b
inc eax
mov dword [0x48bd60], eax
lea esi, [eax - 1]
jmp 0x46cd92
je 0x46cdaa
xor ecx, ecx
test esi, esi
jl 0x46cdaa
lea eax, [ecx*4 + 0x48bd68]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x46cd98
push 0
push 0x48bda8
call ebx
jmp 0x46cbd5
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46ce21
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00462ba0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x46cebc
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x48bac4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x46cebc
cmp eax, 1
je 0x46cedd
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x46cebc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x46ce89
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x46ceb8
xor eax, eax
inc eax
jmp 0x46cefc
cmp edi, eax
jae 0x46cec0
xor eax, eax
jmp 0x46cefc
cmp eax, esi
jae 0x46cec7
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x48bac4]
jmp 0x46cee0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret