joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459be0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x459bf7
add esp, 0xfffffff0
call fcn.00403c18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e67c
mov eax, dword [0x469b60]
cmp word [eax + 2], 0
jne 0x459c1f
mov eax, dword [0x469b60]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b720
mov eax, dword [0x469c14]
cmp word [eax + 2], 0
jne 0x459c39
mov eax, dword [0x469c14]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b92c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416478]
call fcn.004038c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416478]
call fcn.004038c4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x416478]
call fcn.004038c4
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x422d60]
call fcn.0042a938
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x459df0
mov eax, dword [0x469a80]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042ad0c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45bfec
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x469a80]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d298
test eax, eax
je 0x459d40
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409404
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d2cc
test eax, eax
je 0x459d54
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404990
mov byte [ebx + 0xd4], 0
push ebx
push 0x45b280
call fcn.0041f7f8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46995c]
cmp byte [eax], 0
jne 0x459da5
mov eax, ebx
call fcn.00459f34
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045c1c8
mov eax, ebx
call fcn.0045cd28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459de5
call fcn.00403c70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a1b4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46d580]
cmp dword [eax + 0x30], 0
je 0x45a25e
cmp dword [ebx + 0x94], 0
jne 0x45a258
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a144
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a258
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45a21e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a258
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418824
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a22d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45af78
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45afad
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404810
jmp 0x45afba
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404774
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c3ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c41a
mov eax, esi
call fcn.00446ad4
test al, al
je 0x45c41a
mov eax, dword [ebx + 0x84]
call fcn.00446734
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c41a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45c40e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446734
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043ead4
jmp 0x45c41a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045c1e8
pop esi
pop ebx
ret
Function at 0x45d9f4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4074a0]
call fcn.00405190
xor eax, eax
push ebp
push 0x45db95
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x469808], 0
jne 0x45da4f
mov ecx, dword [0x46996c]
mov dl, 1
mov eax, dword [0x407a74]
call fcn.0040c514
call fcn.00404168
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403230
mov eax, ebx
call fcn.00405060
mov dword [ebp - 0x24], eax
mov esi, 0x45dba4
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406124
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405070
test eax, eax
jle 0x45db38
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45db24
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404990
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x45daca
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.004049a8
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x45dae0
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.004049a8
mov eax, dword [ebp - 0x54]
call fcn.00404be4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404990
mov eax, dword [ebp - 0x58]
call fcn.00404be4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x45db26
xor eax, eax
test al, al
je 0x45db31
mov ebx, 0x15
jmp 0x45db3d
mov ebx, 0x10
jmp 0x45db3d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x469808]
call fcn.0045d878
mov eax, dword [ebp - 4]
call fcn.0045d878
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040613c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45db9c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, dword [0x4074a0]
call fcn.00405260
ret
Function at 0x407df0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push ebx
push esi
push edi
lea edi, [ebp - 0x16c]
mov ecx, 0x5b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00401073
add esp, 4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x407e2e
jmp 0x407e83
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407e70
mov eax, dword [ebp - 0x114]
cmp eax, dword [ebp + 8]
jne 0x407e5c
mov ecx, dword [ebp - 0x124]
push ecx
call fcn.004010c8
add esp, 4
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407e42
mov esi, esp
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00408b64
pop edi
pop esi
pop ebx
add esp, 0x16c
cmp ebp, esp
call fcn.00408b64
mov esp, ebp
pop ebp
ret

Function at 0x40db1c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a08
push 0x40f84c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [0x42bff4]
test eax, eax
je 0x40db64
mov dword [ebp - 4], 1
call eax
jmp 0x40db60
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x40db6d
jmp 0x410080
push 0xa
call fcn.0040f95d
push 0x16
call fcn.00410aa1
pop ecx
pop ecx
push 3
call fcn.004097d1

Function at 0x40db82
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a20
push 0x40f84c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.0040db1c]
test eax, eax
je 0x40dbca
mov dword [ebp - 4], 1
call eax
jmp 0x40dbc6
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x40dbd3
jmp fcn.0040db1c
Function at 0x40f95d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b6e8
cmp edx, dword [eax]
je 0x40f97f
add eax, 8
inc ecx
cmp eax, 0x42b778
jl 0x40f970
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b6e8]
jne 0x40faad
mov eax, dword [0x42bfd4]
cmp eax, 1
je 0x40fa87
test eax, eax
jne 0x40f9b0
cmp dword [0x42b130], 1
je 0x40fa87
cmp edx, 0xfc
je 0x40faad
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f9e7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408eb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409080
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40fa2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409080
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4290a4
push edi
call fcn.00410360
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408eb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408ec0
lea eax, [ebp - 0xa0]
push 0x429084
push eax
call fcn.00408ec0
push dword [esi + 0x42b6ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408ec0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004108cb
add esp, 0x2c
pop edi
jmp 0x40faad
lea eax, [ebp + 8]
lea esi, [esi + 0x42b6ec]
push 0
push eax
push dword [esi]
call fcn.00409080
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]
pop esi
leave
ret

Function at 0x412afa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412b1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d162
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x412b3b
test byte [esp + 8], 2
je 0x412b3b
mov dword [0x42bf64], 0xd
mov dword [0x42bf68], 5
jmp 0x412b16
xor eax, eax
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x622082
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x6220ce
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x6220c8
mov ecx, dword [0x6627f8]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x6220bc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x6220a1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x6220ca
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x623c53
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x623cbf
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x623d08
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.0063d100
add esp, 8
test eax, eax
jne 0x623d06
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x623d0a
jmp 0x623cb6
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x62c8fa
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00626337
add esp, 4
and eax, 0xff
test eax, eax
je 0x62c983
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.00637820
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x62c981
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x62c981
jmp 0x62c983
jmp 0x62c903
mov esp, ebp
pop ebp
ret

Function at 0x62cdf3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
movsx eax, byte [0x663404]
test eax, eax
jne 0x62ce07
call fcn.0062cd24
xor ecx, ecx
mov cl, byte [0x663401]
test ecx, ecx
jne 0x62ce8e
xor edx, edx
mov dl, byte [0x663400]
test edx, edx
jne 0x62ce8e
cmp dword [0x66360c], 0
je 0x62ce69
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x180
mov ecx, dword [0x66360c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
push 0x186
mov eax, dword [0x66360c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x66360c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x62ce8e
push 0x10001
push 0x663404
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x62ce8e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x62ff9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x62ffaa
xor eax, eax
jmp 0x630173
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x63012b
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x660eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x660eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x660eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x660eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x660eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x660eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x660eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x660eac]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x62ffb3
cmp dword [ebp + 0x10], 0
je 0x63016d
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x660eac]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x630131
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x6399b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x65e4c8
cmp edx, dword [eax]
je 0x6399d2
add eax, 8
inc ecx
cmp eax, 0x65e558
jl 0x6399c3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x65e4c8]
jne 0x639b00
mov eax, dword [0x663688]
cmp eax, 1
je 0x639ada
test eax, eax
jne 0x639a03
cmp dword [0x65e204], 1
je 0x639ada
cmp edx, 0xfc
je 0x639b00
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x639a3a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00637980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00637b30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x639a7d
lea eax, [ebp - 0x1a4]
push eax
call fcn.00637b30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6622c4
push edi
call fcn.00637bb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00637980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00637990
lea eax, [ebp - 0xa0]
push 0x6622a4
push eax
call fcn.00637990
push dword [esi + 0x65e4cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00637990
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0063bf78
add esp, 0x2c
pop edi
jmp 0x639b00
lea eax, [ebp + 8]
lea esi, [esi + 0x65e4cc]
push 0
push eax
push dword [esi]
call fcn.00637b30
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]
pop esi
leave
ret
Function at 0x423080
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49895b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048c94c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x423102
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00489fbd
mov eax, dword [eax]
push 0x4c51e0
push eax
call fcn.0047c8a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048cbd7
test bl, bl
je 0x423102
push 0x4c51e0
lea ecx, [esp + 0xc]
call fcn.0048cf67
push 0x4c8d6c
lea ecx, [esp + 0xc]
call fcn.0048cf67
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42313e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048cbd7
jmp 0x423209
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4231c2
lea edx, [esp + 0x7c]
push 0x4c8d68
push edx
call fcn.0047c8a4
add esp, 8
test eax, eax
je 0x4231c2
lea eax, [esp + 0x7c]
push 0x4c8d64
push eax
call fcn.0047c8a4
add esp, 8
test eax, eax
je 0x4231c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x423152
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048cbd7
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x423eb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x423f12
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc