joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401260
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, 0x10824
call fcn.004019e0
push ebx
push ebp
push esi
push edi
push 0x10810
mov esi, ecx
call fcn.004019cf
push 0x10810
mov dword [esp + 0x18], eax
call fcn.004019cf
push 0x10810
mov ebp, eax
call fcn.004019cf
mov ebx, eax
push 0x10810
mov dword [esp + 0x2c], ebx
call fcn.004019cf
mov edi, eax
mov edx, ebx
add esp, 0x10
mov dword [esp + 0x18], edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4012b3
push 0x10810
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 1
push edi
call fcn.004010b0
mov esi, dword [esp + 0x18]
mov ebx, eax
lea eax, [esp + 0x2c]
add esp, 8
sub esi, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], esi
jmp 0x4012f3
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
test eax, eax
push 0x10810
jne 0x40130d
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x401318
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x24]
lea esp, [esp]
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401320
mov eax, str.RegSvr32.exe
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401331
mov edi, dword [esp + 0x10]
sub eax, edx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401340
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x10810
mov ecx, eax
mov eax, dword [esp + 0x14]
push ebp
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4013f1
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401374
mov ecx, dword [str.__s]
mov dword [edi], ecx
mov dl, byte [0x4071a0]
mov byte [edi + 4], dl
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401390
mov ax, word [0x407198]
mov word [edi], ax
mov eax, dword [esp + 0x18]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4013a7
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4013b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4013d0
mov cx, word [0x407198]
push 0
push ebp
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, eax
test ebx, ebx
jne 0x4013f1
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x4012ef
mov edx, dword [esp + 0x10]
push edx
call fcn.004019ca
push ebp
call fcn.004019ca
mov eax, dword [esp + 0x24]
push eax
call fcn.004019ca
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004019ca
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10824
ret
Function at 0x401bc6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4071c0
call fcn.00402db4
mov edi, 0x94
mov eax, edi
call fcn.004019e0
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 [0x41a168], ecx
mov eax, dword [esi + 4]
mov dword [0x41a174], eax
mov edx, dword [esi + 8]
mov dword [0x41a178], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41a16c], esi
cmp ecx, 2
je 0x401c26
or esi, 0x8000
mov dword [0x41a16c], esi
shl eax, 8
add eax, edx
mov dword [0x41a170], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401c61
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c61
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401c79
cmp eax, 0x20b
je 0x401c66
mov dword [ebp - 0x1c], esi
jmp 0x401c8d
cmp dword [ecx + 0x84], 0xe
jbe 0x401c61
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x401c87
cmp dword [ecx + 0x74], 0xe
jbe 0x401c61
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00402d61
pop ecx
test eax, eax
jne 0x401ca1
push 0x1c
call fcn.00401ba2
pop ecx
call fcn.00402c58
test eax, eax
jne 0x401cb2
push 0x10
call fcn.00401ba2
pop ecx
call fcn.004029f2
mov dword [ebp - 4], esi
call fcn.004027f4
test eax, eax
jge 0x401ccb
push 0x1b
call fcn.00401b7d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41a994], eax
call fcn.004026d2
mov dword [0x41a158], eax
call fcn.00402630
test eax, eax
jge 0x401cf1
push 8
call fcn.00401b7d
pop ecx
call fcn.004023fd
test eax, eax
jge 0x401d02
push 9
call fcn.00401b7d
pop ecx
push 1
call fcn.00401f1f
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401d18
push eax
call fcn.00401b7d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004023a0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x401d39
movzx eax, word [ebp - 0x40]
jmp 0x401d3c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004018b0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401d5a
push edi
call fcn.0040204c
call fcn.0040206e
jmp 0x401d8c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00402def
ret
Function at 0x401f89
Capabilities:
Terminate process

Disassembly:
push 8
push 0x407208
call fcn.00402db4
push 8
call fcn.0040305c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41a1a8], esi
jne 0x401fbd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41a1a4], esi
mov al, byte [ebp + 0x10]
mov byte [0x41a1a0], al
cmp dword [ebp + 0xc], edi
jne 0x402007
cmp dword [0x41a988], edi
je 0x401ff7
mov eax, dword [0x41a984]
sub eax, 4
mov dword [0x41a984], eax
cmp eax, dword [0x41a988]
jb 0x401ff7
mov eax, dword [eax]
cmp eax, edi
je 0x401fd8
call eax
jmp 0x401fd8
push 0x409020
mov eax, 0x40901c
call fcn.00401f07
pop ecx
push 0x409028
mov eax, 0x409024
call fcn.00401f07
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x402038
cmp dword [ebp + 0x10], edi
jne 0x402046
mov dword [0x41a1a8], esi
push dword [ebp + 8]
call fcn.00401ec5
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x402045
push 8
call fcn.00402fa7
pop ecx
ret
call fcn.00402def
ret

Function at 0x40208c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4092e0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x409068]
je 0x4020c1
inc eax
cmp eax, 0x13
jb 0x4020b2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409068]
jne 0x4021e7
mov eax, dword [0x41a160]
cmp eax, 1
je 0x4021bf
cmp eax, edx
jne 0x4020f1
cmp dword [0x409064], 1
je 0x4021bf
cmp ecx, 0xfc
je 0x4021e7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402127
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00403dc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403ec0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40215b
mov eax, edi
push eax
call fcn.00403ec0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x407600
push edi
call fcn.00401a20
add esp, 0x10
push edi
call fcn.00403ec0
push dword [esi + 0x40906c]
mov ebx, eax
call fcn.00403ec0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004019e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00403dc0
push edi
push ebx
call fcn.00403dd0
push 0x4075e0
push ebx
call fcn.00403dd0
push dword [esi + 0x40906c]
push ebx
call fcn.00403dd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403cbd
add esp, 0x2c
jmp 0x4021e7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40906c]
push dword [esi]
call fcn.00403ec0
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]
mov ecx, dword [ebp + 0x88]
call fcn.00403f7c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x403cbd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41a428], ebx
push esi
push edi
jne 0x403d3d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403d78
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40770c
push edi
call esi
test eax, eax
mov dword [0x41a428], eax
je 0x403d78
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41a42c], eax
call esi
cmp dword [0x41a168], 2
mov dword [0x41a430], eax
jne 0x403d3d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41a438], eax
je 0x403d3d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41a434], eax
mov eax, dword [0x41a434]
test eax, eax
je 0x403d82
call eax
test eax, eax
je 0x403d69
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41a438]
test eax, eax
je 0x403d69
test byte [ebp - 8], 1
jne 0x403d82
cmp dword [0x41a174], 4
jb 0x403d7c
or byte [ebp + 0x12], 0x20
jmp 0x403da1
xor eax, eax
jmp 0x403db1
or byte [ebp + 0x12], 4
jmp 0x403da1
mov eax, dword [0x41a42c]
test eax, eax
je 0x403da1
call eax
mov ebx, eax
test ebx, ebx
je 0x403da1
mov eax, dword [0x41a430]
test eax, eax
je 0x403da1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41a428]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bfe
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 0x404c2c
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 0x404c33
cmp ebx, dword [eax + 4]
jae 0x404c33
xor eax, eax
jmp 0x404e23
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404c44
xor eax, eax
inc eax
jmp 0x404e22
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404c5a
cmp ecx, edx
jae 0x404d9f
cmp dword [eax + 4], 0
je 0x404c63
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404c4b
cmp dword [ebp + 8], 0
je 0x404c85
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x404d9f
cmp eax, esi
jae 0x404d9f
mov eax, dword [0x41a450]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x404caa
cmp dword [esi*4 + 0x41a458], edi
je 0x404da3
inc esi
cmp esi, eax
jl 0x404c98
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404e1f
cmp dword [ebp - 8], 0x1000000
jne 0x404e1f
test byte [ebp - 0xc], 0xcc
je 0x404d28
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x404e1f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404e1f
cmp word [eax + 0x18], 0x10b
jne 0x404e1f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x404e1f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404d28
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404d28
test byte [ecx + 0x27], 0x80
jne 0x404d9f
push 1
push 0x41a498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x404c3c
mov ecx, dword [0x41a450]
test ecx, ecx
mov edx, ecx
jle 0x404d5c
lea eax, [ecx*4 + 0x41a454]
cmp dword [eax], edi
je 0x404d5c
dec edx
sub eax, 4
test edx, edx
jg 0x404d50
test edx, edx
jne 0x404d8d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404d69
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404d81
lea eax, [edx*4 + 0x41a458]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404d6f
cmp ecx, 0x10
jge 0x404d8d
inc ecx
mov dword [0x41a450], ecx
push 0
push 0x41a498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x404c3c
xor eax, eax
jmp 0x404e22
test esi, esi
jle 0x404c3c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41a498
call ebx
test eax, eax
jne 0x404c3c
cmp dword [esi*4 + 0x41a458], edi
je 0x404df9
mov eax, dword [0x41a450]
lea esi, [eax - 1]
test esi, esi
jl 0x404de7
cmp dword [esi*4 + 0x41a458], edi
je 0x404de3
dec esi
jns 0x404dd7
test esi, esi
jge 0x404df7
cmp eax, 0x10
jge 0x404df2
inc eax
mov dword [0x41a450], eax
lea esi, [eax - 1]
jmp 0x404df9
je 0x404e11
xor ecx, ecx
test esi, esi
jl 0x404e11
lea eax, [ecx*4 + 0x41a458]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404dff
push 0
push 0x41a498
call ebx
jmp 0x404c3c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40621c
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.004019e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4062b7
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 [0x41a168]
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 0x4062b7
cmp eax, 1
je 0x4062d8
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 0x4062b7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406284
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4062b3
xor eax, eax
inc eax
jmp 0x4062f7
cmp edi, eax
jae 0x4062bb
xor eax, eax
jmp 0x4062f7
cmp eax, esi
jae 0x4062c2
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 [0x41a168]
jmp 0x4062db
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 0x401b7e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x34
mov eax, 0x40f75f
call fcn.0040f5c7
mov dword [ebp - 0x3c], edx
mov ebx, ecx
mov dword [ebp - 0x38], ebx
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], al
push 0xdc
push 1
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
lea edx, [esi + edi]
mov dword [ebp - 0x40], edx
jmp 0x401d23
mov cl, byte [esi]
mov eax, esi
mov dword [ebp - 0x30], eax
cmp cl, 0x7c
je 0x401ce6
cmp eax, edx
jae 0x401bff
inc eax
cmp byte [eax], 0x7c
jne 0x401bf5
mov dword [ebp - 0x30], eax
cmp cl, 0x2a
jne 0x401ce6
movsx eax, byte [esi + 1]
sub eax, 0x63
je 0x401c22
sub eax, 1
je 0x401c1d
mov ecx, ebx
jmp 0x401c25
lea ecx, [ebx + 0x30]
jmp 0x401c25
lea ecx, [ebx + 0x18]
lea edx, [ebp - 0x2c]
call fcn.0040122e
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ecx
cmp edi, ecx
jae 0x401c58
lea eax, [edi + 1]
cmp ecx, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov word [eax + edi], 0x5c
mov edi, dword [ebp - 0x30]
jmp 0x401d1d
mov ebx, 0x7fffffff
mov eax, ebx
sub eax, edi
cmp eax, 1
jb 0x401d42
lea esi, [edi + 1]
or esi, 0xf
cmp esi, ebx
jbe 0x401c78
mov esi, ebx
jmp 0x401c8c
mov edx, ecx
mov eax, ebx
shr edx, 1
sub eax, edx
cmp ecx, eax
ja 0x401c74
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea ecx, [esi + 1]
call fcn.00402c9d
cmp dword [ebp - 0x34], 0x10
mov ebx, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], eax
push edi
jb 0x401cc8
mov esi, dword [ebp - 0x2c]
push esi
push ebx
call fcn.00405680
mov edx, dword [ebp - 0x34]
add esp, 0xc
mov ecx, esi
mov word [edi + ebx], 0x5c
lea edx, [edx + 1]
call fcn.00402aeb
jmp 0x401cdb
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.00405680
add esp, 0xc
mov word [edi + ebx], 0x5c
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x38]
jmp 0x401d1d
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
push eax
call fcn.004027ac
mov edi, dword [ebp - 0x30]
mov eax, edi
mov ecx, dword [ebp - 0x3c]
sub eax, esi
push eax
push esi
call fcn.004027ac
mov ecx, dword [ebp - 0x3c]
push 5
push str..dll_
call fcn.004027ac
mov edx, dword [ebp - 0x40]
lea esi, [edi + 1]
cmp esi, edx
jb 0x401be5
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x401d3c
mov ecx, dword [ebp - 0x2c]
inc edx
call fcn.00402aeb
call fcn.0040f585
ret
call fcn.004010e3
int3
Function at 0x403661
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4036a0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4036a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4036a0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4036a0
cmp dword [ecx + 0x74], 0xe
jbe 0x4036a0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408c13
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x417004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x408c5e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00408db2
test al, al
jne 0x408c58
sub edx, 2
cmp edx, edi
jne 0x408c3e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x408c80
lea eax, [edi + 2]
cmp edx, eax
je 0x408c80
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00408b5f
add esp, 0x10
jmp 0x408d7a
push esi
lea ecx, [ebp - 0x255]
call fcn.00408db2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408cc3
push dword [ebp - 0x25c]
jmp 0x408c70
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x408d00
cmp word [ebp - 0x226], 0
je 0x408d21
cmp word [ebp - 0x226], ax
jne 0x408d00
cmp word [ebp - 0x224], 0
je 0x408d21
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00408b5f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x408d6d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x408cda
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x408d55
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x408d7a
push 0x40898f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040b850
add esp, 0x10
jmp 0x408d4a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402da8
leave
ret

Function at 0x40a811
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4121e4
push 0x4121dc
push str.FlsAlloc
push 0x1e
call fcn.0040a74e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a845
push dword [ebp + 8]
mov ecx, esi
call dword [0x410154]
call esi
jmp 0x40a84b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x40a88f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4121f4
push 0x4121ec
push str.FlsGetValue
push 0x20
call fcn.0040a74e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a8c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x410154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408fb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a1eb
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.0045efc8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409032
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045cf17
mov eax, dword [eax]
push 0x47f1e0
push eax
call fcn.0044f5a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f253
test bl, bl
je 0x409032
push 0x47f1e0
lea ecx, [esp + 0xc]
call fcn.0045f5e3
push 0x482d38
lea ecx, [esp + 0xc]
call fcn.0045f5e3
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 0x40906e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f253
jmp 0x409139
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 0x4090f2
lea edx, [esp + 0x7c]
push 0x482d34
push edx
call fcn.0044f5a4
add esp, 8
test eax, eax
je 0x4090f2
lea eax, [esp + 0x7c]
push 0x482d30
push eax
call fcn.0044f5a4
add esp, 8
test eax, eax
je 0x4090f2
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 0x409082
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.0045f253
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 0x409930
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 0x409992
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