joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4570c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4570f3
push esi
call fcn.0045a1b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4570ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x457179
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x457162
mov eax, dword [esi + 8]
test eax, eax
je 0x457117
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45715e
cmp eax, 2
je 0x457162
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45710a
cmp eax, 3
je 0x45713d
cmp eax, 1
jne 0x45710a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45710a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45710a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004571a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x457188
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004571a0
add esp, 4
pop esi
ret

Function at 0x462cf0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x462d93
test eax, eax
jbe 0x462d93
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x462d93
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x462d3e
xor esi, esi
jmp 0x462d44
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x462d6f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00419130
add esi, eax
push esi
mov ebx, esi
call fcn.00419130
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x462d50
pop ebp
test edi, edi
pop edi
jne 0x462d93
test ebx, ebx
je 0x462d93
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00470000
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x462ed5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x462fed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x462fed
mov eax, dword [esi + 0x3c]
push eax
call fcn.00480e5e
mov esi, eax
test esi, esi
je 0x462fed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x462fed
mov ecx, esi
call fcn.00462e40
cmp edi, eax
jge 0x462fed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x462f73
mov dword [esp + 0x34], 1
jmp 0x462fce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x462fed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00462400
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x481802
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48183a
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.0047f8b6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047f88e
jmp 0x481846
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x482ef0
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 0x482f32
call fcn.00488c19
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x482f32
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x482f29
xor eax, eax
jmp 0x482f3a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00482f40
pop edi
pop esi
pop ebx
ret 4
Function at 0x489149
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 0x489177
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x489195
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004890af
jmp 0x489195
mov eax, dword [esi + 0x14]
test eax, eax
je 0x489195
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004890af
test edi, edi
mov eax, edi
jne 0x48917f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
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
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401d00
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push 0xffffffffffffffff
push str..pipeprobe_inside_msg_QQ_SessionKey
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x401e2c
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push str..pipeprobe_inside_msg_QQ_SessionKey
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e2b
push ebx
mov ebx, dword [esp + 0x14]
mov eax, ebx
push edi
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d54
sub eax, edx
inc eax
cmp ax, 0x3ff
mov dword [esp + 0xc], eax
jle 0x401d70
mov dword [esp + 0xc], 0x3ff
mov eax, str.acct
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d78
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push str.acct
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x18]
push eax
push esi
call edi
movsx edx, word [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push edx
push ebx
push esi
call edi
mov ebx, dword [esp + 0x1c]
mov eax, ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401dc2
sub eax, ecx
inc eax
cmp ax, 0x3ff
mov dword [esp + 0xc], eax
jle 0x401dde
mov dword [esp + 0xc], 0x3ff
mov eax, str.sessionkey
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401de6
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push eax
push str.sessionkey
push esi
call edi
push 0
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x18]
push eax
push esi
call edi
movsx edx, word [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
inc edx
push edx
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
add esp, 8
ret
Function at 0x403832
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x18
push 0x40a288
call fcn.00403c80
mov edi, 0x94
mov eax, edi
call fcn.00403710
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 [0x40c864], ecx
mov eax, dword [esi + 4]
mov dword [0x40c870], eax
mov edx, dword [esi + 8]
mov dword [0x40c874], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40c868], esi
cmp ecx, 2
je 0x403892
or esi, 0x8000
mov dword [0x40c868], esi
shl eax, 8
add eax, edx
mov dword [0x40c86c], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4038cb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4038cb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4038e3
cmp eax, 0x20b
je 0x4038d0
mov dword [ebp - 0x1c], edi
jmp 0x4038f7
cmp dword [ecx + 0x84], 0xe
jbe 0x4038cb
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4038f1
cmp dword [ecx + 0x74], 0xe
jbe 0x4038cb
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00405b27
pop ecx
test eax, eax
jne 0x403923
cmp dword [0x40c850], 2
je 0x403910
call fcn.00405339
push 0x1c
call fcn.004051c1
push 0xff
call fcn.00405026
pop ecx
pop ecx
call fcn.00405a85
mov dword [ebp - 4], edi
call fcn.004058da
test eax, eax
jge 0x40393c
push 0x1b
call fcn.0040380d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ddf4], eax
call fcn.004057b8
mov dword [0x40c848], eax
call fcn.00405716
test eax, eax
jge 0x403962
push 8
call fcn.0040380d
pop ecx
call fcn.004054e3
test eax, eax
jge 0x403973
push 9
call fcn.0040380d
pop ecx
push 1
call fcn.00405056
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x403989
push eax
call fcn.0040380d
pop ecx
mov eax, dword [0x40c884]
mov dword [0x40c888], eax
push eax
push dword [0x40c87c]
push dword [0x40c878]
call fcn.004016a0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x4039b8
push esi
call fcn.00405181
call fcn.004051a3
jmp 0x4039ea
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00403cbb
ret
Function at 0x4050c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40c8a4], esi
push edi
jne 0x4050e0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40c8a0], esi
mov byte [0x40c89c], al
jne 0x405146
mov ecx, dword [0x40dde8]
test ecx, ecx
je 0x405127
mov eax, dword [0x40dde4]
sub eax, 4
cmp eax, ecx
jmp 0x405120
mov eax, dword [eax]
test eax, eax
je 0x405112
call eax
mov eax, dword [0x40dde4]
sub eax, 4
cmp eax, dword [0x40dde8]
mov dword [0x40dde4], eax
jae 0x40510a
mov eax, 0x40c020
mov esi, 0x40c028
cmp eax, esi
mov edi, eax
jae 0x405146
mov eax, dword [edi]
test eax, eax
je 0x40513f
call eax
add edi, 4
cmp edi, esi
jb 0x405137
mov eax, 0x40c02c
mov esi, 0x40c030
cmp eax, esi
mov edi, eax
jae 0x405165
mov eax, dword [edi]
test eax, eax
je 0x40515e
call eax
add edi, 4
cmp edi, esi
jb 0x405156
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40517f
push dword [ebp + 8]
mov dword [0x40c8a4], 1
call fcn.00405026
pop ebp
ret

Function at 0x4051c1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x40c1a0]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40c1e0]
je 0x4051f8
inc eax
cmp eax, 0x13
jb 0x4051e9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40c1e0]
jne 0x40531b
mov eax, dword [0x40c850]
cmp eax, 1
je 0x4052f6
cmp eax, edx
jne 0x405228
cmp dword [0x40c1b4], 1
je 0x4052f6
cmp ecx, 0xfc
je 0x40531b
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40525e
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00405c80
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00405eb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405292
mov eax, edi
push eax
call fcn.00405eb0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a2cc
push edi
call fcn.00405d80
add esp, 0x10
push edi
call fcn.00405eb0
push dword [esi + 0x40c1e4]
mov ebx, eax
call fcn.00405eb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403710
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00405c80
push edi
push ebx
call fcn.00405c90
push 0x40a2c8
push ebx
call fcn.00405c90
push dword [esi + 0x40c1e4]
push ebx
call fcn.00405c90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405b78
add esp, 0x2c
jmp 0x40531b
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x40c1e4]
push dword [esi]
call fcn.00405eb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004035c2
add ebp, 0x90
leave
ret
Function at 0x405b78
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40c9bc], ebx
push esi
push edi
jne 0x405bf8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405c33
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40c9bc], eax
je 0x405c33
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40c9c0], eax
call esi
cmp dword [0x40c864], 2
mov dword [0x40c9c4], eax
jne 0x405bf8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40c9cc], eax
je 0x405bf8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40c9c8], eax
mov eax, dword [0x40c9c8]
test eax, eax
je 0x405c3d
call eax
test eax, eax
je 0x405c24
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40c9cc]
test eax, eax
je 0x405c24
test byte [ebp - 8], 1
jne 0x405c3d
cmp dword [0x40c870], 4
jb 0x405c37
or byte [ebp + 0x12], 0x20
jmp 0x405c5c
xor eax, eax
jmp 0x405c6c
or byte [ebp + 0x12], 4
jmp 0x405c5c
mov eax, dword [0x40c9c0]
test eax, eax
je 0x405c5c
call eax
mov ebx, eax
test ebx, ebx
je 0x405c5c
mov eax, dword [0x40c9c4]
test eax, eax
je 0x405c5c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40c9bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40602a
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 0x406058
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 0x40605f
cmp ebx, dword [eax + 4]
jae 0x40605f
xor eax, eax
jmp 0x40624f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406070
xor eax, eax
inc eax
jmp 0x40624e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406086
cmp ecx, edx
jae 0x4061cb
cmp dword [eax + 4], 0
je 0x40608f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406077
cmp dword [ebp + 8], 0
je 0x4060b1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4061cb
cmp eax, esi
jae 0x4061cb
mov eax, dword [0x40c9d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4060d6
cmp dword [esi*4 + 0x40c9d8], edi
je 0x4061cf
inc esi
cmp esi, eax
jl 0x4060c4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40624b
cmp dword [ebp - 8], 0x1000000
jne 0x40624b
test byte [ebp - 0xc], 0xcc
je 0x406154
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40624b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40624b
cmp word [eax + 0x18], 0x10b
jne 0x40624b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40624b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x406154
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x406154
test byte [ecx + 0x27], 0x80
jne 0x4061cb
push 1
push 0x40ca18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x406068
mov ecx, dword [0x40c9d0]
test ecx, ecx
mov edx, ecx
jle 0x406188
lea eax, [ecx*4 + 0x40c9d4]
cmp dword [eax], edi
je 0x406188
dec edx
sub eax, 4
test edx, edx
jg 0x40617c
test edx, edx
jne 0x4061b9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406195
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4061ad
lea eax, [edx*4 + 0x40c9d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40619b
cmp ecx, 0x10
jge 0x4061b9
inc ecx
mov dword [0x40c9d0], ecx
push 0
push 0x40ca18
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x406068
xor eax, eax
jmp 0x40624e
test esi, esi
jle 0x406068
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40ca18
call ebx
test eax, eax
jne 0x406068
cmp dword [esi*4 + 0x40c9d8], edi
je 0x406225
mov eax, dword [0x40c9d0]
lea esi, [eax - 1]
test esi, esi
jl 0x406213
cmp dword [esi*4 + 0x40c9d8], edi
je 0x40620f
dec esi
jns 0x406203
test esi, esi
jge 0x406223
cmp eax, 0x10
jge 0x40621e
inc eax
mov dword [0x40c9d0], eax
lea esi, [eax - 1]
jmp 0x406225
je 0x40623d
xor ecx, ecx
test esi, esi
jl 0x40623d
lea eax, [ecx*4 + 0x40c9d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40622b
push 0
push 0x40ca18
call ebx
jmp 0x406068
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4062df
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x40c1a0]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x40dccc]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x406481
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40dce0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x406481
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x406355
xor eax, eax
jmp 0x406495
test al, 0x20
je 0x406368
push 2
push 0
push 0
push ecx
call fcn.00407f15
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4063fd
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x40645e
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4063c2
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4063b3
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x406395
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406422
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x40642b
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x40638a
jmp 0x40642b
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406422
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x40642b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x40647c
cmp dword [ebp - 0x68], eax
je 0x40645b
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x406450
mov dword [0x40c858], 9
mov dword [0x40c85c], eax
jmp 0x406492
push dword [ebp - 0x68]
call fcn.00407e00
pop ecx
jmp 0x406492
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x406470
cmp byte [edi], 0x1a
je 0x40634e
mov dword [0x40c858], 0x1c
jmp 0x40648b
sub eax, dword [ebp - 0x7c]
jmp 0x406495
mov dword [0x40c858], 9
and dword [0x40c85c], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004035c2
add ebp, 0x3a4
leave
ret
Function at 0x408515
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.00403710
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4085b0
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 [0x40c864]
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 0x4085b0
cmp eax, 1
je 0x4085d1
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 0x4085b0
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40857d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4085ac
xor eax, eax
inc eax
jmp 0x4085f0
cmp edi, eax
jae 0x4085b4
xor eax, eax
jmp 0x4085f0
cmp eax, esi
jae 0x4085bb
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 [0x40c864]
jmp 0x4085d4
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
Function at 0x404a4f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x46d0a0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [esp + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call fcn.00404cbf
mov ebx, eax
cmp ebx, esi
je 0x404ab1
cmp dword [esp + 0x10], esi
je 0x404aad
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x404b27
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x404acf
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00404a4f
mov dword [esp + 0x24], eax
cmp eax, esi
jne 0x404b3e
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push dword [esp + 0x2c]
mov dword [esp + 0x3c], 0x100
call ebx
test eax, eax
je 0x404ab9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], esi
je 0x404b0a
push dword [esp + 0x10]
call ebx
mov dword [esp + 0x10], esi
push dword [esp + 0x20]
mov dword [esp + 0x18], esi
call fcn.004049e1
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x404b25
push dword [esp + 0x10]
call ebx
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042393e
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x10], esi
je 0x404b4e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
jmp 0x404b27