joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa29d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa29d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa29d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa29d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa29d94
push eax
push esi
call fcn.00a2c20b
add esp, 8
pop esi
ret 0x10

Function at 0xa29da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa29e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa29e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa42320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a2bdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa29dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa29e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa29ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa29eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa42320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a2bdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa29eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa29e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa2a000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa2a131
push esi
call fcn.00a2d145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a1c080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa2a131
push 0
push ebp
call fcn.00a1c3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a1c260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa2a08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a1c2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa2a121
push 0xa42918
push edi
call fcn.00a2b3f0
push eax
push ebx
push esi
call fcn.00a29f60
push 0xa428f8
push edi
call fcn.00a2b3f0
push eax
push ebx
push esi
call fcn.00a29f60
push 0xa428d8
push edi
call fcn.00a2b3f0
push eax
push ebx
push esi
call fcn.00a29f60
push 0xa428c0
push edi
call fcn.00a2b3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a29f60
push 0xa428a0
push edi
call fcn.00a2b3f0
push eax
push ebx
push esi
call fcn.00a29f60
push 0xa42888
push edi
call fcn.00a2b3f0
push eax
push ebx
push esi
call fcn.00a29f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa2b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a2b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a2b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a2b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a2b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa2bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa2bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa3d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa2bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa2bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401afa
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004152c0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401bac
push edi
mov edi, 0x42b854
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401b45
sub eax, edx
sar eax, 1
je 0x401bab
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ee9
push 0x42b870
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041343b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401bab
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041372e
push dword [ebp - 0x78]
call fcn.004137c2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412eda
add ebp, 0x198
leave
ret

Function at 0x401bc5
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004152c0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401ca0
push edi
mov edi, 0x42b79c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401c14
sub eax, edx
sar eax, 1
je 0x401c9f
cmp dword [reloc.crtdll.dll_vsprintf], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x401c51
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42b878
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ee9
add esp, 0xc
jmp 0x401c59
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ee9
push 0x42b870
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041343b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401c9f
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041372e
push dword [ebp - 0x78]
call fcn.004137c2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412eda
add ebp, 0x198
leave
ret
Function at 0x401cb9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.crtdll.dll_sscanf], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004152c0
add esp, 0xc
cmp dword [reloc.crtdll.dll_vsprintf], 3
lea eax, [ebp - 0x20c]
jne 0x401d1f
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42b878
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412ee9
add esp, 0xc
pop esi
jmp 0x401d2b
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x42b87c
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00412eda
leave
ret

Function at 0x401eaf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x254], eax
xor eax, eax
push 0x206
mov word [ebp - reloc.crtdll.dll_sscanf], ax
xor ebx, ebx
lea eax, [ebp - 0x24a]
push ebx
push eax
call fcn.004152c0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x250], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x250]
push eax
movzx eax, word [ebp - reloc.crtdll.dll_sscanf]
sub eax, 0x41
push eax
call fcn.004020ad
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 0x250], ebx
push 9
pop ecx
mov esi, 0x42b898
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jl 0x401f87
push 0xa
push 0xa
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x250]
call fcn.00414548
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x44]
push 0x14
push eax
call fcn.00412ee9
add esp, 0x1c
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401f8b
xor eax, eax
jmp 0x401f97
push dword [ebp - 0x254]
call fcn.00401de9
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412eda
leave
ret
Function at 0x40265f
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - reloc.crtdll.dll_sscanf], ax
xor esi, esi
lea eax, [ebp - 0x246]
push esi
push eax
call fcn.004152c0
add esp, 0xc
lea eax, [ebp - 0x3d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x436480
call fcn.00401a6e
pop ecx
push 2
pop ebx
test eax, eax
jne 0x40277a
push 0x3a
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
call fcn.004152c0
add esp, 0xc
lea edi, [ebp - 0x40]
call fcn.0040280c
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x436628], cx
add eax, ebx
cmp cx, si
jne 0x4026dc
push 0x42b908
push reloc.shlwapi.dll_PathAppendA
push 0x436484
call fcn.00412f66
add esp, 0xc
push 0x51
pop eax
push 0x42b7d0
push 0x10
push 0x436506
mov word [0x436504], ax
call fcn.00412f66
add esp, 0xc
push 0x42b780
push reloc.shlwapi.dll_PathAppendA
push 0x436526
call fcn.00412f66
mov eax, 0x2b66
add esp, 0xc
mov word [0x4365a6], ax
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x436608], cx
add eax, ebx
cmp cx, si
jne 0x402741
mov edi, 0x436608
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x40275b
mov esi, 0x42b924
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x436648], 5
xor esi, esi
call fcn.0040289a
lea edi, [ebp - 0x248]
call fcn.0040280c
xor eax, eax
movzx ecx, word [ebp + eax - reloc.crtdll.dll_sscanf]
mov word [eax + 0x4368b8], cx
add eax, ebx
cmp cx, si
jne 0x40278c
mov edi, 0x4368b8
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x4027c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4027fd
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4027bf
mov ebx, 0x436938
call fcn.00402a81
mov eax, dword [0x43664c]
push esi
push esi
push esi
push 0x402ef7
push esi
push esi
mov dword [0x436940], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x432fc4], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412eda
leave
ret
Function at 0x40310f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 8]
mov dword [ebp - 0x430], ecx
call fcn.00403280
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x403274
push ebx
push esi
push edi
mov esi, 0x206
push esi
push eax
mov word [ebp - reloc.crtdll.dll_sscanf], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.004152c0
xor eax, eax
push esi
push eax
mov word [ebp - reloc.crtdll.dll_sscanf], ax
lea eax, [ebp - 0x426]
push eax
call fcn.004152c0
lea edi, [ebp - 0x220]
call fcn.00402ff6
push 0x42b878
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00412ee9
mov byte [ebp - 0x18], 0
add esp, 0x24
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x435b68
cmp word [ebx], 0
je 0x403201
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00412f66
push ebx
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00412ee9
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405519
add esp, 0x1c
test eax, eax
je 0x403201
push 5
pop ecx
lea edi, [ebx + 0x104]
lea esi, [ebp - 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, 0x104
jne 0x403201
mov word [ebx], ax
add ebx, 0x118
cmp ebx, 0x4360e0
jl 0x4031a9
mov edi, 0x435b68
cmp word [edi], 0
je 0x40322c
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x430]
call fcn.00403a04
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x4360e0
jl 0x403214
push 0x436b38
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00412ee9
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x40326e
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412eda
leave
ret
Function at 0x403457
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9a8
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x804]
cmp ecx, ebx
je 0x403479
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9a4]
push eax
push 0x101
mov dword [ebp - 0x9a8], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4034a1
xor eax, eax
jmp 0x403533
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40349a
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4034e1
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9a8], eax
push 4
lea eax, [ebp - 0x9a8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403522
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x810], eax
pop eax
push dword [ebp + 8]
mov word [ebp - reloc.crtdll.dll_sscanf], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - reloc.crtdll.dll_sscanf], ax
push 0x10
lea eax, [ebp - 0x814]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403522
xor ebx, ebx
inc ebx
jmp 0x403531
mov eax, dword [esi]
test eax, eax
je 0x403531
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412eda
leave
ret

Function at 0x40366c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x4036e9
push esi
mov esi, dword [ebp + 0x10]
cmp esi, ecx
push edi
jle 0x403693
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, esi
jl 0x403687
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.00408aaa
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, 0x433040
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00419d90
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x4036ec
cmp eax, dword [ebp - 4]
jne 0x4036ec
mov dword [ebp - 8], 1
jmp 0x4036ec
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4036f7
push ebx
call fcn.00408a9f
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret
Function at 0x4041f9
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x431c20]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
movzx ecx, word [eax + reloc.crtdll.dll_sscanf]
mov word [eax + 0x4361a8], cx
inc eax
inc eax
cmp cx, si
jne 0x40421d
xor eax, eax
movzx ecx, word [eax + reloc.crtdll.dll_sscanf]
mov word [eax + 0x4360e0], cx
inc eax
inc eax
cmp cx, si
jne 0x404234
mov eax, edi
call fcn.004043c3
mov eax, dword [ebp + 0x10]
mov edx, 0x436278
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, si
jne 0x40425a
call section..text
push 0x7d0
mov dword [reloc.crtdll.dll_vsprintf], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040109c
test eax, eax
je 0x404292
call fcn.004024e6
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
push edi
push esi
push esi
push esi
mov eax, closesocket
push eax
push esi
push eax
push 0xcf0000
push 0x4361a8
push 0x4360e0
push esi
mov dword [0x436270], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x4042c8
call fcn.0040265f
cmp eax, esi
jne 0x4042e1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00412eda
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push esi
push eax
call fcn.004152c0
mov ecx, dword [0x436780]
add esp, 0xc
cmp ecx, esi
jbe 0x404324
cmp word [0x436784], si
jbe 0x404324
mov esi, 0x432fa4
call fcn.00402f92
mov ax, word [0x436784]
mov word [0x432fb4], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x436b38
div ecx
push edx
push 0x42b9bc
push ebx
call fcn.004044a5
add esp, 0xc
call fcn.00403050
lea edi, [esp + 0x10]
call fcn.00402ff6
push 0x42b878
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00412ee9
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00412ee9
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4043ac
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x42b998
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403ce2
push 0
jmp 0x40428c

Function at 0x405385
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x4081f9
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40829f
cmp dword [ebx + 4], 0xffffffff
jne 0x40829f
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408226
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + reloc.crtdll.dll_sscanf]
cmp ax, 0x5c
je 0x40825d
cmp ax, 0x2f
je 0x40825d
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x40824a
mov edi, esi
mov esi, 0x42b878
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.00408a70
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.00407773
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x4082a4
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x412eda
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431c20]
jne 0x412ee4
repz ret
jmp fcn.004177ab

Function at 0x4222bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00417a80
and dword [ebp - 4], 0
cmp dword [0x435abc], 0
mov ebx, eax
jne 0x422370
push 0x42a664
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422421
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a658
push edi
call esi
test eax, eax
je 0x422421
push eax
call fcn.00417a0e
mov dword [esp], 0x42a648
push edi
mov dword [0x435abc], eax
call esi
push eax
call fcn.00417a0e
mov dword [esp], 0x42a634
push edi
mov dword [0x435ac0], eax
call esi
push eax
call fcn.00417a0e
mov dword [esp], 0x42a618
push edi
mov dword [0x435ac4], eax
call esi
push eax
call fcn.00417a0e
pop ecx
mov dword [0x435acc], eax
test eax, eax
je 0x422370
push 0x42a600
push edi
call esi
push eax
call fcn.00417a0e
pop ecx
mov dword [0x435ac8], eax
mov eax, dword [0x435ac8]
cmp eax, ebx
je 0x4223c8
cmp dword [0x435acc], ebx
je 0x4223c8
push eax
call fcn.00417a89
push dword [0x435acc]
mov esi, eax
call fcn.00417a89
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4223c8
test edi, edi
je 0x4223c8
call esi
test eax, eax
je 0x4223bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4223bf
test byte [ebp - 0xc], 1
jne 0x4223c8
or dword [ebp + 0x10], 0x200000
jmp 0x422401
mov eax, dword [0x435ac0]
cmp eax, ebx
je 0x422401
push eax
call fcn.00417a89
pop ecx
test eax, eax
je 0x422401
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422401
mov eax, dword [0x435ac4]
cmp eax, ebx
je 0x422401
push eax
call fcn.00417a89
pop ecx
test eax, eax
je 0x422401
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435abc]
call fcn.00417a89
pop ecx
test eax, eax
je 0x422421
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422423
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret