joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405392
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc88
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 0x40
lea eax, [ebp - 0xc84]
push edi
push eax
mov dword [ebp - 0xc44], ebx
mov dword [ebp - 0xc40], edi
mov dword [ebp - 0xc88], edi
call fcn.00422240
mov dword [ebp - 0xc3c], edi
xor eax, eax
push str.YYExplorerUpliveTrigger.exe
lea edi, [ebp - 0xc38]
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
push ebx
push str._s_s_S
stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004220cc
xor eax, eax
add esp, 0x24
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.00401081
lea eax, [ebp - 0xc2c]
push eax
call fcn.004098c3
mov bl, al
pop ecx
neg bl
sbb bl, bl
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0xc2c]
call fcn.0040206d
inc bl
je 0x4054b7
push str.YYExplorerUpliveTrigger.exe
push dword [ebp - 0xc44]
lea eax, [ebp - 0x414]
push str._s_S
push 0x104
push eax
call fcn.004220cc
xor eax, eax
add esp, 0x14
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.00401081
lea eax, [ebp - 0xc2c]
push eax
call fcn.004098c3
pop ecx
push esi
push edi
lea ecx, [ebp - 0xc2c]
mov bl, al
call fcn.0040206d
test bl, bl
je 0x4054b7
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xc2c]
call fcn.00401081
lea eax, [ebp - 0xc2c]
push eax
call fcn.004098c3
pop ecx
mov bl, al
push esi
neg bl
push edi
lea ecx, [ebp - 0xc2c]
sbb bl, bl
call fcn.0040206d
inc bl
je 0x4054f4
mov eax, edi
jmp 0x4055b4
xor eax, eax
mov word [ebp - 0xc58], ax
push str.uninstall_task
lea eax, [ebp - 0x20c]
push eax
push str.__s_____S
lea eax, [ebp - 0xc14]
push 0x400
push eax
mov dword [ebp - 0xc5c], edi
call fcn.004220cc
add esp, 0x14
xor eax, eax
mov word [ebp - 0x416], ax
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0xc88]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x405583
push 0x2710
push dword [ebp - 0xc3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x405583
lea eax, [ebp - 0xc40]
push eax
push dword [ebp - 0xc3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, eax
cmp dword [ebp - 0xc38], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4055a1
push dword [ebp - 0xc38]
call edi
and dword [ebp - 0xc38], 0
cmp dword [ebp - 0xc3c], 0
je 0x4055b2
push dword [ebp - 0xc3c]
call edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421734
leave
ret
Function at 0x4065d6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov esi, ecx
push 0x3ee
push dword [esi + 4]
call ebx
push eax
lea ecx, [esi + 0x2c]
call fcn.00406d2d
push 0
push 0xb
push 0x18c
push 0xd1
push 0x1b
push 1
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x3f2
push dword [esi + 4]
call ebx
lea ebx, [esi + 0x68]
push eax
mov ecx, ebx
call fcn.0040ede0
mov edi, dword [esi + 0x8c]
mov ecx, esi
mov ecx, dword [ecx + 0x28]
call fcn.004025da
push eax
mov eax, esi
lea ecx, [esi + 0x8c]
push dword [eax + 4]
call dword [edi]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 9
push 9
push 0xd
push 0x1ad
push 1
push dword [esi + 0x6c]
call edi
push 0
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x44c068]
lea ecx, [ebp - 0x1c]
call fcn.00401081
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
mov dword [ebp - 0x24], 0x406868
mov dword [ebp - 0x28], esi
call fcn.0040d9db
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040206d
mov ebx, esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f0
push dword [ebx + 4]
call esi
push 0
push 0x17
push 0xe1
push 0x28
push 0x19
push 1
push eax
mov dword [ebx + 0xf4], eax
call edi
push 0
push dword [ebx + 0xf4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3f1
push dword [ebx + 4]
call esi
push 0
push 0x10
push 0xb4
push 0xbb
push 0x1b
push 1
push eax
mov dword [ebx + 0xf8], eax
call edi
push 0x3ef
push dword [ebx + 4]
call esi
lea ecx, [ebx + 0xfc]
push eax
call fcn.0040ede0
mov ecx, dword [ebx + 0x28]
lea esi, [ebx + 0x120]
mov edi, dword [esi]
call fcn.004025da
push eax
push dword [ebx + 4]
mov ecx, esi
call dword [edi]
call fcn.0040fd05
lea esi, [ebx + 0xfc]
mov ecx, esi
test eax, eax
je 0x406754
push 0x14
push 0x3d3d3d
push str.Microsoft_YaHei
jmp 0x406760
push 0xe
push 0x3d3d3d
push str.Simsun
call fcn.0040d84a
xor edi, edi
push edi
push 0x32
push 0xa2
push 0xfe
push 0x90
push 1
push dword [ebx + 0x100]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x43d658
push 0x3ef
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [0x44c068]
lea ecx, [ebp - 0x1c]
call fcn.00401081
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov dword [ebp - 0x24], 0x406868
mov dword [ebp - 0x28], ebx
call fcn.0040d9db
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040206d
push edi
push dword [ebx + 0x100]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00421734
leave
ret
Function at 0x406c13
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x5d4]
call fcn.00402994
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x10]
add ecx, 0xffffff95
xor eax, eax
test ecx, ecx
cmovg eax, ecx
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x5d4]
call fcn.004034c7
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x5d4]
call fcn.004067eb
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x5d4]
call fcn.00402a8c
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00421734
leave
ret 0x10

Function at 0x408f87
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
and dword [ebp - 0x43c], 0
xor esi, esi
push 0
inc esi
push 2
mov ebx, esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x409067
lea eax, [ebp - 0x438]
push eax
push edi
mov dword [ebp - 0x438], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40904f
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x409042
push dword [ebp - 0x430]
mov dword [ebp - 0x43c], esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
and ebx, eax
lea eax, [ebp - 0x438]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x408ff9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x43c], 0
je 0x409067
test ebx, ebx
jne 0x409069
xor esi, esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421734
leave
ret
Function at 0x40907a
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40909e
xor eax, eax
inc eax
jmp 0x409100
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401081
mov edi, str._yytmp
push edi
call fcn.004024ed
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.004057ff
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
pop edi
test eax, eax
je 0x4090f0
cmp dword [ebp - 8], 8
push 4
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
call esi
mov esi, eax
jmp 0x4090f2
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040206d
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00421734
leave
ret

Function at 0x40910d
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00409752
pop ecx
test eax, eax
je 0x40913b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x409253
push ebx
push edi
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
xor ebx, ebx
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.00422240
push ebx
push esi
push str._s_c
push 0x20a
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004220ad
add esp, 0x24
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x248]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x14
pop eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], 3
mov dword [ebp - 0x23c], ebx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x4091cc
inc eax
jmp 0x409251
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401081
mov esi, str._yytmp
push esi
call fcn.004024ed
pop ecx
push eax
push esi
lea ecx, [ebp - 0x228]
call fcn.004057ff
cmp dword [ebp - 0x214], 8
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push 1
push eax
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
je 0x40923f
cmp dword [ebp - 0x214], 8
push 4
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push ebx
push eax
call esi
mov esi, eax
jmp 0x409241
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x228]
call fcn.0040206d
mov eax, esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00421734
leave
ret
Function at 0x409260
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00422240
xor eax, eax
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push edi
push eax
call fcn.00422240
add esp, 0x18
lea eax, [ebp - 0x41c]
push edi
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push eax
push 0x44288c
push 1
push edi
push 0x44289c
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4093c3
mov eax, dword [ebp - 0x420]
lea edx, [ebp - 0x424]
mov ecx, dword [eax]
push edx
push 0x4428bc
push eax
call dword [ecx]
test eax, eax
js 0x4093c3
lea edi, [ebp - 0x41c]
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, cx
jne 0x409320
cmp dword [ebp + 0x1c], 8
mov eax, dword [0x43e1f8]
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
mov dword [edi], eax
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x409340
lea edi, [ebp - 0x41c]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x409356
mov eax, dword [ebp - 0x424]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
xor edi, edi
push edi
lea edx, [ebp - 0x41c]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x4093c3
mov eax, dword [ebp - 0x420]
push 1
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x4093c3
mov eax, dword [ebp - 0x420]
lea edx, [ebp - 0x428]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x10]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x428]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x79
pop eax
cmp word [ebp - 0x20e], ax
jne 0x4093f0
cmp word [ebp - 0x20c], 0x3a
jne 0x4093f0
cmp word [ebp - 0x20a], 0x2f
jne 0x4093f0
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
call fcn.004024ed
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, ebx
call fcn.00402253
mov esi, 0x43d658
push esi
call fcn.004024ed
pop ecx
push eax
push esi
push dword [ebx + 0x10]
mov ecx, ebx
push edi
call fcn.00409aa1
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x420]
neg esi
test eax, eax
je 0x40943b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x40944b
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040206d
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421734
leave
ret
Function at 0x409467
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
xor esi, esi
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40950c
lea eax, [ebp - 0x438]
push eax
push edi
mov dword [ebp - 0x438], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x409501
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4094f4
inc esi
lea eax, [ebp - 0x438]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4094c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421734
leave
ret

Function at 0x40951c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
je 0x409584
cmp dword [ebp + 0x10], 0
je 0x409584
cmp dword [ebp + 0x18], 0
je 0x409584
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x409584
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409584
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x409587
or eax, 0xffffffff
pop esi
leave
ret
Function at 0x40958a
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x113c
call fcn.004228b0
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0x10]
mov dword [ebp - 0x1124], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1138], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x112c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1134], eax
xor eax, eax
push eax
push eax
push eax
push eax
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], eax
push str.User_Agent
mov byte [edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x1128], esi
test esi, esi
je 0x40970c
xor eax, eax
push eax
push eax
push 3
push str.HTTP_1.1
push eax
push dword [ebp - 0x1124]
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1130], eax
test eax, eax
je 0x409705
xor ecx, ecx
push ecx
push SysReAllocString
push ecx
push ecx
push str.HTTP_1.1
push dword [ebp - 0x1138]
push dword [ebp - 0x112c]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x4096f9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push dword [ebp + 0x20]
push dword [ebp - 0x1134]
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
call esi
push 0
lea eax, [ebp - 0x113c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x13
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x4096d2
mov eax, dword [ebp - 0x1124]
test eax, eax
je 0x4096ec
cmp eax, 0x1000
jae 0x40971d
mov byte [ebp + eax - 0x1108], 0
lea eax, [ebp - 0x1108]
push eax
lea eax, [ebp - 0x1120]
push edi
push eax
call fcn.00408ed9
add esp, 0xc
mov ecx, edi
push eax
call fcn.00408f4f
lea ecx, [ebp - 0x1120]
call fcn.00401180
lea eax, [ebp - 0x1124]
push eax
push 0xfff
lea eax, [ebp - 0x1108]
push eax
push ebx
call esi
test eax, eax
jne 0x40968f
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, dword [ebp - 0x1128]
push dword [ebp - 0x1130]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421734
leave
ret
call fcn.00422719
int3

Function at 0x409723
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004098c3
pop ecx
test al, al
je 0x40974d
cmp dword [esi + 0x14], 8
jb 0x40973d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x40974d
xor eax, eax
inc eax
jmp 0x40974f
xor eax, eax
pop esi
pop ebp
ret
Function at 0x409752
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401081
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40979f
mov esi, 0x43e1f8
push esi
call fcn.004024ed
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004057ff
mov esi, 0x43e29c
push esi
call fcn.004024ed
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004057ff
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x26c]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409862
push 4
pop esi
mov ecx, 0x43ea10
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40980b
test dx, dx
je 0x409807
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40980b
add eax, esi
add ecx, esi
test dx, dx
jne 0x4097e7
xor eax, eax
jmp 0x409810
sbb eax, eax
or eax, 1
test eax, eax
je 0x40984c
mov ecx, 0x43ea14
lea eax, [ebp - 0x240]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409843
test dx, dx
je 0x40983f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409843
add eax, esi
add ecx, esi
test dx, dx
jne 0x40981f
xor eax, eax
jmp 0x409848
sbb eax, eax
or eax, 1
test eax, eax
jne 0x409888
lea eax, [ebp - 0x26c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4097dc
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040206d
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421734
leave
ret
xor esi, esi
jmp 0x409865

Function at 0x40988c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4098be
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x4098be
cmp eax, 0xb7
je 0x4098be
cmp eax, 0x50
je 0x4098be
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret
Function at 0x4098e2
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc88
mov eax, dword [0x44c5a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0xc84]
push esi
push eax
xor ebx, ebx
call fcn.00422240
and dword [ebp - 0xc44], ebx
xor eax, eax
lea edi, [ebp - 0xc40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
mov dword [ebp - 0xc88], 0x44
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409a06
lea eax, [ebp - 0x61c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x409a06
lea eax, [ebp - 0x414]
push eax
push edi
push 0x43ea28
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x409a06
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x409a06
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
xor eax, eax
inc eax
push eax
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409a06
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc34]
push str._s__d__d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc88]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0xc34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
push 1
pop eax
cmovne ebx, eax
cmp dword [ebp - 0xc40], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x409a23
push dword [ebp - 0xc40]
call edi
and dword [ebp - 0xc40], 0
cmp dword [ebp - 0xc44], 0
je 0x409a3b
push dword [ebp - 0xc44]
call edi
and dword [ebp - 0xc44], 0
test esi, esi
je 0x409a42
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00421734
leave
ret