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

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.100664a0
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.10066460
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x10065034
push edi
call fcn.10022bf0
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.10065130
mov dword [esi + 4], fcn.10065280
mov dword [esi + 8], fcn.10065330
mov dword [esi + 0xc], fcn.100653e0
mov dword [esi + 0x10], 0x10065490
mov dword [esi + 0x14], 0x10065500
mov dword [esi + 0x18], 0x10065570
mov dword [esi + 0x1c], 0x100656f0
mov dword [esi + 0x20], 0x100658e0
mov dword [esi + 0x24], fcn.10065ad0
mov dword [esi + 0x28], 0x10065bd0
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x10065096
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x10065128
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x10065128
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x100650f1
cmp al, 0x4d
jne 0x10065115
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1006ee40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1006eeb1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x1006eeb1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1006ee9a
jmp 0x1006eeb1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x401edc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.kernel32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x401f1f
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x401f49
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x401f7d
push 6
call fcn.00441d4c
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x401f85
mov esp, ebp
pop ebp
ret 4
Function at 0x402de2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00443c80
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402e27
push ebx
call fcn.00441d46
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402e55
push 6
call fcn.00441d4c
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x402e71
push eax
mov ebx, eax
call fcn.00401010
inc eax
push eax
call fcn.00441d40
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x402e76
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402e87
push ebx
call fcn.00441d46
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x402e8e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x402ead
mov dword [ebp + 0x14], 0
jmp 0x402eca
cmp dword [ebp + 0x14], 2
jne 0x402ec3
mov dword [ebp + 0x14], 7
jmp 0x402eca
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0x44b226
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x44b2d5
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x402f05
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x402f21
mov eax, 0
jmp 0x402f2b
mov eax, 1
jmp 0x402f2b
mov esp, ebp
pop ebp
ret 0x14

Function at 0x402f31
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x402f4c
call fcn.00402fbc
mov dword [ebp + 8], eax
mov dword [ebp - 4], esp
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.kernel32.dll_OpenProcess]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x402f78
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_TerminateProcess]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402fa2
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
mov eax, 0
sete al
jmp 0x402fb6
mov esp, ebp
pop ebp
ret 8
Function at 0x411828
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x44b226
push 0x44b226
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x44b2d5
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x41186e
push 6
call fcn.00441d4c
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x412c95
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.00443c80
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412cda
push ebx
call fcn.00441d46
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x100
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x412d05
push 6
call fcn.00441d4c
add esp, 4
push 0x44b29e
push dword [ebp - 4]
mov ecx, 2
call fcn.0040107b
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x412d25
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x412d36
push ebx
call fcn.00441d46
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x413f18
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 2
jne 0x414060
mov dword [ebp - 8], esp
push 0x451c7a
push dword [ebp + 8]
call dword [0x454ee0]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413f59
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413faf
mov dword [ebp - 8], esp
push 0
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413f8d
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413faf
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 8], esp
push 0x451c87
push dword [ebp + 8]
call dword [0x454ee0]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x413fd6
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x414005
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x414005
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 8], esp
push 0x451c93
push dword [ebp + 8]
call dword [0x454ee0]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41402c
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41405b
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_GlobalFree]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41405b
push 6
call fcn.00441d4c
add esp, 4
jmp 0x414127
cmp dword [ebp + 0xc], 0x201
jne 0x414127
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x454ee4]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x414098
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x451ca0
push dword [ebp + 8]
call dword [0x454ee0]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4140c2
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x41411f
mov dword [ebp - 8], esp
call dword [0x454ee8]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4140ee
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 8], esp
push 0
push 2
push 0xa1
push dword [ebp + 8]
call dword [0x454eec]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x41411f
push 6
call fcn.00441d4c
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x414157
mov dword [ebp - 8], esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x454ee4]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x414152
push 6
call fcn.00441d4c
add esp, 4
jmp 0x414157
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d288
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42d2ce
push 6
call fcn.00441d4c
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x44b48d]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00402559
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00443c80
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42d321
push ebx
call fcn.00441d46
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x42d35a
push 6
call fcn.00441d4c
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x42d376
push eax
mov ebx, eax
call fcn.00401010
inc eax
push eax
call fcn.00441d40
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x42d37b
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x42d38c
push ebx
call fcn.00441d46
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x443b30
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x443b99
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00443710
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x444ec0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00447e60
mov esi, dword [esp + 0x38]
mov ebx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ebp
test ebx, ebx
je 0x445010
test ecx, ecx
je 0x445010
inc ecx
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.msvcrt.dll_strrchr
mov edi, eax
add esp, 0xc
test edi, edi
je 0x444f39
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x444ffd
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x444fc1
cmp eax, 0xea
jne 0x444fe9
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x18]
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x444f8c
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x444fcf
cmp eax, 2
jne 0x444fe9
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call fcn.00447830
add esp, 8
mov dword [esp + 0x10], eax
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x44503e
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x44504a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x44504a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00447830
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x445260
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4452f2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x4452e4
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4452dc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x4452a5
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x445300
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x44536a
push esi
lea edi, [eax + 0x400]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x44533a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x445386
push ecx
push esi
call fcn.00447830
add esp, 8
mov ebx, eax
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4453e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4453fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4453f3
pop esi
ret
Function at 0x402634
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
call esi
cmp eax, 0xffffffff
je 0x402655
push dword [ebp + 8]
call esi
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
pop esi
jne 0x402682
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402682
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x402682
push 4
push eax
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402689
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
and dword [ebp - 4], 0
imul edx, edx, 0x9e3779b9
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
je 0x4026fe
mov esi, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, ecx
sub dword [ebp - 4], 0x61c88647
add ebx, eax
lea eax, [ebx + edi]
mov edi, eax
mov ebx, eax
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, dword [ebp - 4]
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, dword [ebp - 4]
xor ebx, eax
add ebx, ecx
cmp dword [ebp - 4], edx
lea ecx, [ebx + edi]
jne 0x4026ac
mov esi, dword [ebp + 0xc]
pop edi
pop ebx
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
leave
ret

Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x54ef49bc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x72017f25
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40103c
Capabilities:
Create thread

Disassembly:
call sub.comctl32.dll_InitCommonControls
call sub.kernel32.dll_GetProcessHeap
mov dword [0x4050d4], eax
push str.riched20.dll
call sub.kernel32.dll_LoadLibraryA
mov dword [0x416a28], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
push 0
push 0x40103c
push 0
push 0x65
push eax
call sub.user32.dll_DialogBoxParamA
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
push edi
push esi
push ebx
cmp dword [ebp + 0xc], 0x111
jne 0x401102
mov eax, dword [ebp + 0x10]
mov edx, eax
shr edx, 0x10
cmp dword [ebp + 0x14], 0
jne 0x401062
jmp 0x40115e
cmp ax, 0x7d1
jb 0x401100
or dx, dx
je 0x40107b
cmp dx, 5
jne 0x401100
cmp ax, 0x7d1
jne 0x401088
call fcn.00402bf5
jmp 0x4010ef
cmp ax, 0x7d2
jne 0x401095
call fcn.00402b08
jmp 0x4010ef
cmp ax, 0x7d3
jne 0x4010e4
cmp dword [0x4050b8], 0
jne 0x4010c2
push 0x4015c8
pop ebx
push 0
push 0
push 0
push ebx
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4010ef
cmp dword [0x4050b8], 1
jne 0x4010ef
push 0
push dword [0x40502c]
call sub.user32.dll_EnableWindow
mov dword [0x4050b8], 2
jmp 0x4010ef
cmp ax, 0x7d5
jne 0x4010ef
call fcn.00402d14
push 1
push 0
push 0xf4
push dword [ebp + 0x14]
call sub.user32.dll_SendMessageA
jmp 0x40115e
cmp dword [ebp + 0xc], 0x110
jne 0x40111c
mov eax, dword [ebp + 8]
mov dword [0x416a24], eax
call fcn.00401238
jb 0x401162
jmp 0x40115e
cmp dword [ebp + 0xc], 0x10
jne 0x401126
jmp 0x401162
cmp dword [ebp + 0xc], 5
jne 0x401133
call fcn.00401566
jmp 0x40115e
cmp dword [ebp + 0xc], 6
jne 0x40115e
mov eax, dword [ebp + 0x10]
cmp ax, 1
je 0x401148
cmp ax, 2
jne 0x40115e
push 0
push 0x403
push 0x111
push dword [ebp + 8]
call sub.user32.dll_PostMessageA
jmp 0x40115e
xor eax, eax
jmp 0x401179
call fcn.0040298e
call fcn.004015b0
push 0
push dword [0x416a24]
call sub.user32.dll_EndDialog
pop ebx
pop esi
pop edi
leave
ret 0x10
Function at 0x4021c4
Capabilities:
Get graphical window text

Disassembly:
push 0x416a30
push 0x1f4
push 0xd
push dword [0x405004]
call sub.user32.dll_SendMessageA
or eax, eax
je 0x40224c
mov esi, 0x416a30
mov edi, 0x416c30
lodsb al, byte [esi]
cmp al, 0x20
je 0x4021e9
or al, al
je 0x40224c
stosb byte es:[edi], al
lodsb al, byte [esi]
cmp al, 0
jne 0x4021f2
dec edi
cmp byte [edi], 0x20
je 0x4021f8
cmp byte [edi], 0x5c
je 0x402207
inc edi
mov byte [edi], 0x5c
mov dword [edi + 1], 0x2a2e2a
push 0x416e3c
push 0x416ee4
push 0x104
push 0x416c30
call sub.kernel32.dll_GetFullPathNameA
push 0x41705c
push 0x416ee4
call sub.kernel32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x40224c
push eax
call sub.kernel32.dll_FindClose
mov edi, dword [0x416e3c]
mov byte [edi], 0
jmp 0x40226e
pushal
push 0
push str.Find_All
push str.Please_enter_a_valid_starting_Folder
push 0
call sub.user32.dll_MessageBoxA
popal
push dword [0x405004]
call sub.user32.dll_SetFocus
stc
ret
clc
ret