joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b2880
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c6458
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100fe39c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x100fff90]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push 0x80000002
call fcn.100b2470
test eax, eax
je 0x100b29a8
mov esi, dword [ebp - 0x18]
mov edi, dword [0x100fff90]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x100b2953
cmp dword [esi], 0
je 0x100b2946
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x100b2913
mov eax, 1
jmp 0x100b2974
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100b294c
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call eax
jmp 0x100b2974
cmp dword [esi + 4], 0
jne 0x100b2953
mov eax, 1
jmp 0x100b2974
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100b299e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x100b2986
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x100b29ab
xor ebx, ebx
jmp 0x100b2a4f
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x100b2a4f
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x100b2a08
mov ecx, dword [ebx]
test ecx, ecx
je 0x100b2a6e
push ecx
push eax
call fcn.1009542f
add esp, 8
test eax, eax
je 0x100b2a08
mov edx, dword [edi]
test edx, edx
je 0x100b2a08
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b29e0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x100b2a13
lea eax, [edx + 0xd]
jmp 0x100b2a48
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b2a20
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x100e69d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x100b2a5a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000ae20
int3
Function at 0x100b4070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b40e1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x100b40af
cmp eax, 2
jne 0x100b40cb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x100b40db
test ecx, ecx
je 0x100b40d6
test cl, 1
jne 0x100b40cb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x100b40db
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100b5a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c674b
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x100fe39c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x14]
push 0x20000
push 0
push esi
mov dword [ebp - 0x14], edi
call fcn.10087da0
add esp, 0xc
lea eax, [ebx + 0x20014]
push 0
push eax
push 0x20000
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b5bbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
call fcn.1004e090
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x100b5b9d
push 0x61
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x44], cl
lea ecx, [ebp - 0x44]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x30], 0xf
call fcn.10008e70
push 3
push 0x100c8144
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10008e70
mov byte [ebp - 4], 1
call fcn.1004e090
mov edi, eax
lea ecx, [ebp - 0xdc]
push 0x58
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10004210
mov esi, eax
push str.RecvData_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.10006300
add esp, 8
mov ecx, esi
push dword [ebp - 0x10]
call fcn.10017240
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xdc]
call fcn.100067d0
lea ecx, [ebp - 0x2c]
call fcn.100053b0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
call fcn.100053b0
mov edi, dword [ebp - 0x14]
lea esi, [ebx + 0x14]
cmp dword [ebp - 0x10], 0xe8
mov dword [ebx + 0xc], 6
jne 0x100b5bbb
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov dword [edi + 0x10], 0
mov eax, dword [ebx + 0x20014]
add eax, esi
push eax
push esi
push dword [ecx + 4]
call fcn.10061870
mov dword [edi + 0x10], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b5c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c678b
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x100fe39c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp + 8]
jne 0x100b5c45
mov dword [ebx + 0xc], 8
jmp 0x100b5db2
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
inc eax
push eax
mov dword [ebp - 0x18], eax
call fcn.1004f776
mov esi, eax
mov dword [ebp - 0x1c], eax
add esp, 4
test esi, esi
je 0x100b5c74
push dword [ebp - 0x18]
push 0
push esi
call fcn.10087da0
add esp, 0xc
mov byte [esi], 0
jmp 0x100b5c79
xor esi, esi
mov dword [ebp - 0x1c], esi
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
sub eax, ecx
mov dword [ebp - 0x14], 0
push eax
push ecx
push esi
call fcn.100872a0
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x14]
sub eax, dword [edi + 4]
add esp, 0xc
inc eax
push 0
push ecx
push eax
push esi
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100b5da0
mov dword [ebx + 0xc], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
call fcn.1004e090
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x100b5d87
push 0x61
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x4c], cl
lea ecx, [ebp - 0x4c]
push str.d:jenkins.jenkinsworkspacelib_commonlds_rpclds_rpc_src_rpc_instance_rpc_client_instance.cpp
mov dword [ebp - 0x38], 0xf
call fcn.10008e70
push 3
push 0x100c8144
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.10008e70
mov byte [ebp - 4], 1
call fcn.1004e090
mov edi, eax
lea ecx, [ebp - 0xe4]
push 0x48
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.10004210
mov esi, eax
push str.send_failed__error_code_:
push esi
mov byte [ebp - 4], 2
call fcn.10006300
add esp, 8
mov ecx, esi
push dword [ebp - 0x18]
call fcn.10017240
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xe4]
call fcn.100067d0
lea ecx, [ebp - 0x34]
call fcn.100053b0
lea ecx, [ebp - 0x4c]
call fcn.100053b0
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0xe8
jne 0x100b5da7
mov dword [ebx + 0xc], 7
mov dword [ebx + 0x10], 0
jmp 0x100b5da7
mov dword [ebx + 0xc], 0
push 1
push esi
call fcn.1004f19d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004f51c
mov esp, ebp
pop ebp
ret 4
Function at 0x401081
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 [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x424628
push 0x67
push edi
call esi
push 0x64
push 0x424560
push 0x6d
push edi
call esi
mov eax, edi
call fcn.0040121a
push ebx
mov esi, 0x425130
push esi
call fcn.00408da4
call fcn.00402e79
push 0x41dc68
push esi
mov dword [reloc.ole32.dll_CoInitialize], eax
call fcn.00408dc3
add esp, 0x10
test eax, eax
je 0x401107
call fcn.00401955
test eax, eax
je 0x401107
call fcn.00403141
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
push edi
call fcn.0040128b
pop ecx
test eax, eax
jne 0x401129
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408cba
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00408cd0
mov ecx, dword [0x424d78]
add esp, 0xc
test ecx, ecx
jbe 0x401176
cmp word [0x424d7c], 0
jbe 0x401176
mov esi, 0x4235dc
call fcn.00402e15
mov ax, word [0x424d7c]
mov word [0x4235ec], ax
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edx, edx
mov esi, 0x3e8
mov ecx, esi
div ecx
xor edx, edx
mov ebx, 0x425340
div ecx
push edx
push 0x41dc70
push ebx
call fcn.004028a3
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_Sleep]
call fcn.00402655
lea edi, [esp + 0x10]
call fcn.004083c4
push 0x41dc88
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408dfa
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00408dfa
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401205
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41de30
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.00402432
jmp 0x4010fa
Function at 0x402432
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - reloc.ole32.dll_CoDisconnectObject], ax
xor esi, esi
lea eax, [ebp - 0x236]
push esi
push eax
call fcn.00408cd0
add esp, 0xc
xor eax, eax
push 9
mov word [ebp - 0x2c], ax
pop ecx
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x425018
mov ebx, 0x104
push edi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
call fcn.00409dc5
pop ecx
test eax, eax
je 0x4024ae
push edi
push esi
push 0x20000
call dword [sym.imp.kernel32.dll_OpenEventW]
test eax, eax
jne 0x402644
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x23c]
push eax
push 0xf003f
push esi
push 0x41dd60
push 0x80000001
call edi
test eax, eax
jne 0x40252a
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x248]
push eax
push esi
push 0x41dddc
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40251e
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x20000
call dword [sym.imp.kernel32.dll_OpenEventW]
test eax, eax
je 0x40251e
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402644
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
push ebx
mov dword [ebp - 0x240], esi
call dword [sym.imp.kernel32.dll_GetTempPathW]
push 0x425038
call fcn.00409dc5
test eax, eax
pop ecx
lea eax, [ebp - 0x238]
jne 0x402569
push 0x41ddec
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
push 0x41ddec
jmp 0x40257d
push 0x425038
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
push 0x425038
lea eax, [ebp - 0x2c]
push eax
call fcn.00408da4
pop ecx
pop ecx
push 0x41dd08
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00408dfa
lea eax, [ebp - 0x240]
add esp, 0xc
push eax
call fcn.00402974
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x402644
push dword [ebp - 0x240]
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.00402278
add esp, 0xc
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
push 1
push esi
push 0x41de30
lea eax, [ebp - 0x238]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x23c]
push eax
push 3
push esi
push 0x41dd60
push 0x80000001
call edi
test eax, eax
jne 0x40263d
lea eax, [ebp - 0x2c]
push eax
call fcn.00409dc5
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2c]
push eax
push 1
push esi
push 0x41dddc
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40263d
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0040b579
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00408cba
leave
ret
Function at 0x402719
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
push eax
call fcn.0040841e
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x402894
mov esi, 0x206
push esi
push eax
mov word [ebp - reloc.ole32.dll_CoDisconnectObject], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00408cd0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - reloc.ole32.dll_CoDisconnectObject], ax
lea eax, [ebp - 0x426]
push eax
call fcn.00408cd0
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.004083c4
push 0x41dc88
mov ebx, 0x104
mov eax, edi
push ebx
push eax
call fcn.00408dfa
mov byte [ebp - 0x18], 0
add esp, 0xc
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
mov esi, 0x424700
stosb byte es:[edi], al
mov edi, esi
cmp word [edi], 0
je 0x40281e
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00409215
add esp, 0xc
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00408dfa
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.004046f8
pop ecx
test eax, eax
je 0x40281e
push 0x14
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409e6b
add esp, 0xc
test eax, eax
jne 0x40281e
mov word [edi], ax
add edi, 0x118
cmp edi, 0x424c78
jl 0x4027c0
cmp word [esi], 0
je 0x40284f
push dword [ebp + 0xc]
mov eax, dword [esi + 0x100]
push dword [ebp - 0x430]
mov ecx, esi
mov dword [0x4246f4], eax
call fcn.00408656
pop ecx
pop ecx
add esi, 0x118
cmp esi, 0x424c78
jl 0x40282c
push 0x425340
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408dfa
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40288e
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408cba
leave
ret

Function at 0x402974
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0x41ddf8
mov ebx, eax
push 0x83
push ebx
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x4029e1
push esi
push ebp
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.kernel32.dll_SetHandleCount]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b79e
push esi
mov edi, eax
push 0
push edi
call fcn.00408cd0
push esi
push ebp
push edi
call fcn.00408eb0
add esp, 0x1c
push ebx
call dword [sym.imp.kernel32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x402f15
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0x80000000
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x402f44
mov edx, esi
jmp 0x402f63
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x402f5a
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40303a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ole32.dll_CoDisconnectObject], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00408cd0
add esp, 0xc
cmp dword [reloc.ole32.dll_CoInitialize], 3
lea eax, [ebp - 0x20c]
jne 0x4030a0
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
push 0x41dc88
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408dfa
add esp, 0xc
pop esi
jmp 0x4030ac
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41dca8
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408cba
leave
ret
Function at 0x403471
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x40351a
mov ebx, 0xc00
push ebx
call fcn.0040b79e
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x40350b
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x4034ed
jg 0x4034e1
cmp ecx, dword [ebp - 0x18]
jbe 0x4034ed
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x4034d0
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.004172e0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x40351a
push dword [ebp - 4]
call fcn.0040b579
pop ecx
push 0x64
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403612
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - reloc.ole32.dll_CoDisconnectObject], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408cd0
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - reloc.ole32.dll_CoDisconnectObject]
sub eax, 0x41
push eax
call fcn.00403384
push dword [ebp - 0x214]
call fcn.004032f2
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40368a
xor eax, eax
jmp 0x403693
push esi
push eax
call fcn.00403542
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408cba
leave
ret

Function at 0x404564
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 0x404808
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x9b0], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - reloc.ole32.dll_CoDisconnectObject], ax
lea eax, [ebp - 0x806]
push eax
mov esi, ecx
call fcn.00408cd0
add esp, 0xc
lea edi, [ebp - 0x808]
test esi, esi
je 0x404852
mov edi, esi
xor eax, eax
and dword [ebp - 0x9b4], eax
and dword [ebp - 0x9ac], eax
mov word [edi], ax
lea eax, [ebp - 0x9a8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4048ac
push 0x41deb8
mov esi, 0x3ff
push esi
push edi
call fcn.00409215
push 0x41ded8
push esi
push edi
call fcn.00408dfa
push 0x41dedc
push esi
push edi
call fcn.00408dfa
add esp, 0x24
xor eax, eax
jmp 0x40493a
push 6
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x404879
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404948
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b4], eax
push 4
lea eax, [ebp - 0x9b4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x404948
push 0x41deb8
mov esi, 0x3ff
push esi
push edi
call fcn.00409215
push 0x41ded8
push esi
push edi
call fcn.00408dfa
push 0x41dedc
push esi
push edi
call fcn.00408dfa
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x404934
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [ebx], 0
mov eax, dword [ebp - 0x9ac]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408cba
leave
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x814], eax
pop eax
push dword [ebp + 0xc]
mov word [ebp - reloc.ole32.dll_CoDisconnectObject], ax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - reloc.ole32.dll_CoDisconnectObject], ax
push 0x10
lea eax, [ebp - 0x818]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40498e
push 0x41df1c
jmp 0x4048fd
mov dword [ebp - 0x9ac], esi
jmp 0x404934

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov dword [ebp - 4], ecx
cmp dword [eax], ecx
je 0x404a25
cmp edi, ecx
jle 0x4049d3
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, edi
jl 0x4049c7
lea ebx, [edi + 7]
push ebx
call fcn.0040b79e
mov esi, eax
lea eax, [edi + 5]
push 5
mov word [esi], ax
lea eax, [esi + 2]
push 0x4230c0
push eax
call fcn.00408eb0
push edi
push dword [ebp + 0xc]
lea eax, [esi + 7]
push eax
call fcn.00408eb0
mov eax, dword [ebp + 8]
add esp, 0x1c
push 0
push ebx
push esi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404a28
cmp eax, ebx
jne 0x404a28
mov dword [ebp - 4], 1
jmp 0x404a28
mov esi, dword [ebp + 8]
test esi, esi
je 0x404a33
push esi
call fcn.0040b579
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret