joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403400
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x26f4
call fcn.00421e40
push ebx
mov ebx, dword [esp + 0x26fc]
push ebp
push esi
test ebx, ebx
push edi
mov ebp, ecx
je 0x403598
mov ax, word [0x42e49c]
mov ecx, 0x81
mov word [esp + 0x46c], ax
xor eax, eax
lea edi, [esp + 0x46e]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
push ebx
push str._s.
lea ecx, [esp + 0x474]
push 0x103
push ecx
stosw word es:[edi], ax
call esi
add esp, 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0x46c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x403598
cmp dword [esp + 0x14], 0x20
jne 0x403545
lea ecx, [esp + 0x40]
push 0x428348
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x403545
lea edx, [esp + 0x40]
push 0x428340
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x403545
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], dx
mov word [esp + 0x674], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x823
xor eax, eax
lea edi, [esp + 0x676]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x40]
lea ecx, [esp + 0x264]
push eax
push ebx
push 0x428458
push 0x103
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0x674]
lea eax, [esp + 0x264]
mov ecx, ebp
push edx
push eax
call fcn.004035b0
test eax, eax
je 0x403541
lea ecx, [esp + 0x674]
push ecx
mov ecx, ebp
call fcn.004036a0
test eax, eax
jne 0x40355a
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x403591
jmp 0x40347f
mov ecx, dword [esp + 0x270c]
lea eax, [esp + 0x264]
push eax
push 0x103
push ecx
call esi
mov edx, dword [esp + 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x26f4
ret 8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26f4
ret 8
Function at 0x4036a0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x618
push ebx
push ebp
mov ebp, dword [esp + 0x624]
push edi
test ebp, ebp
mov ebx, ecx
je 0x403796
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
test edx, edx
je 0x403796
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push 0x103
push eax
push str._del:
push edx
call fcn.0040e1d0
add esp, 0x10
test eax, eax
je 0x403796
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x41e]
mov word [esp + 0x41c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x41c]
lea edx, [esp + 0x214]
push ecx
push edx
mov ecx, ebx
stosw word es:[edi], ax
call fcn.004037b0
test eax, eax
je 0x403796
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push str._app:
push ebp
call fcn.0040e1d0
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x41c]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x403796
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x618
ret 4
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x618
ret 4

Function at 0x4038d0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str._app:
push edx
call fcn.0040e1d0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ecx, dword [esp + 0x224]
add esp, 0x14
xor edx, edx
cmp eax, ecx
sete dl
mov eax, edx
pop edi
add esp, 0x208
ret 4

Function at 0x405fc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
test esi, esi
jle 0x405ff0
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x428784]
xor eax, edx
inc ecx
dec esi
jne 0x405fd1
pop ebx
not eax
pop esi
ret
Function at 0x406410
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x48]
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, 0x915
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 8]
lea edx, [esi + 0x48]
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x48]
mov eax, 0x800
mov dword [esp + 0x34], edx
lea ecx, [esi + 0x2148]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea edx, [esi + 0x2348]
mov eax, 0x80
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], edx
lea ecx, [esi + 0x1048]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 8]
mov dword [esp + 0x3c], ecx
push edx
lea ecx, [esi + 0x2048]
push eax
push edi
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x38], ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4064fc
mov eax, dword [esp + 0x14]
cmp eax, 3
je 0x4064ce
cmp eax, 4
je 0x4064ce
cmp eax, 1
jne 0x4064fc
xor ecx, ecx
mov dword [esi + 4], eax
mov dword [esi + 0x2448], ecx
mov dword [esi + 0x244c], ecx
mov cx, word [esp + 0x20]
mov dword [esi + 0x2450], 0xffffffff
mov word [esi], cx
pop edi
mov eax, 1
pop esi
add esp, 0x3c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x3c
ret

Function at 0x406510
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x406520
xor eax, eax
pop esi
pop ecx
ret
push edi
lea eax, [esi + 0x5d4e0]
push str.MetalinkFile
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov edi, eax
add esp, 8
test edi, edi
je 0x40655f
push str.MetalinkFile
mov word [edi], 0
call dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [edi + eax*2]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
add esp, 8
mov dword [esi + 0x2690], eax
mov ecx, esi
call fcn.0040b020
test eax, eax
pop edi
jne 0x40656e
pop esi
pop ecx
ret
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x2460], eax
je 0x4065b5
lea ecx, [esp + 4]
mov dword [esp + 4], 0
push ecx
push 0
push esi
push 0x406940
push 0
push 0
mov dword [esi + 0x5d0ac], 8
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 8], eax
mov eax, 1
pop esi
pop ecx
ret
Function at 0x407630
Capabilities:
Send data

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [edi + 0x26dc]
mov esi, dword [eax + ecx*4]
mov edx, dword [esi + 0x20]
mov dword [esi + 0x28], 2
cmp dword [edx + 4], 1
je 0x4076bd
mov eax, dword [edi + 0x247c]
test eax, eax
je 0x4076eb
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edx, dword [edi + 0x2480]
mov eax, dword [edi + 0x247c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x4076a6
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
mov eax, 1
pop esi
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4076f5
pop edi
mov eax, 1
pop esi
ret 4
cmp dword [esi], 0
jne 0x4076d6
mov eax, dword [esi + 4]
test eax, eax
je 0x4076d6
mov dword [esi + 0x18], eax
pop edi
mov eax, 1
pop esi
ret 4
push 1
push ecx
mov ecx, edi
mov dword [esi + 0x28], 0
call fcn.00408ca0
test eax, eax
je 0x4076f5
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x407e20
Capabilities:
Send data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x26dc]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x28], 6
cmp dword [ecx + 4], 1
je 0x407eb0
mov eax, dword [edi + 0x247c]
test eax, eax
je 0x407ee7
mov edx, dword [esi + 0xc]
mov dword [esp + 0x10], 0
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0x2480]
mov edx, dword [edi + 0x247c]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x407e98
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x3e5
sete dl
pop edi
pop esi
mov eax, edx
pop ebx
ret 4
cmp dword [esi], 0
jne 0x407eca
mov eax, dword [esi + 4]
test eax, eax
je 0x407eca
mov dword [esi + 0x18], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
push 1
push ebx
mov ecx, edi
mov dword [esi + 0x28], 4
call fcn.00408ca0
test eax, eax
jne 0x407ee7
push ebx
mov ecx, edi
call fcn.00408740
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x408210
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
mov eax, dword [ebx + 0x26dc]
push esi
push edi
mov esi, dword [eax + ecx*4]
mov ecx, 0xa
xor eax, eax
lea ebp, [esi + 0x8040]
lea edx, [esi + 0x3c]
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, 0x2000
mov edi, edx
mov dword [ebp], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x803c]
lea edi, [esi + 0x8058]
test eax, eax
mov dword [esi + 0x8054], edx
mov dword [edi], 0x8000
je 0x4082a0
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
sub edx, ecx
mov ecx, dword [eax + 0x14]
sbb ecx, dword [eax + 0x1c]
sub edx, dword [eax + 8]
sbb ecx, dword [eax + 0xc]
mov eax, edx
add eax, 1
adc ecx, 0
ja 0x40828b
cmp eax, 0x8000
jbe 0x40829a
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4082e1
mov dword [esp + 0x14], ecx
jmp 0x4082e1
mov eax, dword [ebx + 0x5d0b0]
mov ecx, dword [ebx + 0x5d0b4]
cmp eax, 0xffffffff
jne 0x4082b5
cmp ecx, eax
je 0x4082e3
mov edx, dword [ebx + 0x5d0c0]
sub eax, edx
mov edx, dword [ebx + 0x5d0c4]
sbb ecx, edx
ja 0x4082ce
cmp eax, 0x8000
jbe 0x4082dd
mov eax, 0x8000
mov dword [esp + 0x14], 0
jmp 0x4082e1
mov dword [esp + 0x14], ecx
mov dword [edi], eax
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x28], 9
cmp dword [ecx + 4], 1
je 0x408328
mov edx, dword [esi + 0x1c]
push esi
push 1
push ebp
push edx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
je 0x40835a
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi]
mov edx, dword [esi + 0x8054]
mov eax, dword [esi + 0x1c]
push edi
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40835a
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x408376
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov edx, dword [esp + 0x1c]
mov ecx, ebx
push edx
call fcn.00408740
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x408b00
Capabilities:
Send data
Send http request

Disassembly:
mov eax, 0x103c
call fcn.00421e40
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x247c]
push edi
test eax, eax
mov dword [esp + 0x10], ebx
mov ebp, 0x428c18
je 0x408b28
mov ebp, str.POST
mov ax, word [0x42e49c]
mov esi, dword [esp + 0x1050]
mov word [esp + 0x4c], ax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x4c]
mov dword [esp + 0x1c], 0x428c04
mov dword [esp + 0x20], 0
lea ecx, [eax + 0x1048]
add eax, 0x48
push ecx
push eax
push 0x428240
push 0x7ff
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [ebx + 0x62a5c]
add esp, 0x14
test ecx, ecx
mov eax, 0x8400c300
je 0x408b93
mov eax, 0x8408c300
mov ecx, dword [esi + 0x20]
cmp dword [ecx + 4], 4
jne 0x408ba1
or eax, 0x803000
mov ecx, dword [esi + 0x18]
push esi
lea edx, [esp + 0x20]
push eax
push edx
push 0
lea eax, [esp + 0x5c]
push str.HTTP_1.1
push eax
push ebp
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x408c85
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea edx, [esp + 0x18]
push 4
push edx
push 2
push eax
mov dword [esp + 0x28], 0x3a98
call edi
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x14]
push 4
push eax
push 0x41
push ecx
mov dword [esp + 0x24], 1
call edi
mov ebp, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
push 0xa2d0
mov dword [esp + 0x28], 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408c53
mov ecx, 0x28b4
xor eax, eax
mov edi, ebx
push ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push 0xa2cf
push ebx
push esi
call fcn.00408da0
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x1c]
push esi
push 1
lea edx, [esp + 0x2c]
push 0
push edx
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test ebx, ebx
mov esi, eax
je 0x408c76
push ebx
call fcn.00421de0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x103c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x103c
ret 4
Function at 0x4097a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x210
mov ax, word [0x42e49c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esp + 0x18], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
xor ebp, ebp
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
shl edi, 1
mov ecx, edi
push 2
neg ecx
push ebp
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
push edx
call ebp
cmp edi, dword [esp + 0x10]
jne 0x409875
lea eax, [esp + 0x18]
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x409875
mov edx, dword [esp + 0x10]
mov ecx, 0xfffffffc
push 1
sub ecx, edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call ebx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
add eax, ecx
push 1
push 0
neg eax
push eax
push edx
call ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret

Function at 0x409880
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x26ec]
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x40989d
mov dword [esp + 8], edi
jmp 0x4098ac
mov ecx, dword [esi + 0x26f0]
sub ecx, eax
sar ecx, 2
mov dword [esp + 8], ecx
mov edx, dword [esi + 4]
push 2
push edi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 8], edi
je 0x409953
mov edx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
call ebx
mov ebp, 4
mov eax, dword [esi + 0x26ec]
test eax, eax
je 0x409916
mov ecx, dword [esi + 0x26f0]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x409916
mov ecx, dword [eax + edi*4]
lea edx, [esp + 0x14]
push 0
push edx
mov edx, dword [esi + 4]
push 0x20
push ecx
push edx
call ebx
add ebp, 0x20
inc edi
jmp 0x4098e4
mov edx, dword [esi + 4]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edx
mov dword [esp + 0x24], ebp
call ebx
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, dword [esi + 4]
add esp, 4
lea ecx, [esp + 0x14]
shl eax, 1
push 0
push ecx
push eax
push str.546865576F726C64_86C36F73_2C25_4a7d_91EA_F5581018A42D
push edx
call ebx
pop ebp
pop ebx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 8
ret
Function at 0x409cf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov eax, dword [ebx + 0x20]
mov ebp, dword [ebx + 0x8058]
mov esi, ecx
push edi
cmp dword [eax + 4], 1
jne 0x409d0c
mov ebp, dword [ebx]
mov eax, dword [esi + 0x26f8]
xor edi, edi
cmp eax, edi
je 0x409deb
mov ecx, esi
call fcn.004097a0
mov edi, dword [ebx + 0x803c]
push 0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
add ecx, eax
mov eax, dword [edi + 0xc]
adc eax, edx
mov edx, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, dword [esi + 4]
sar edx, 0x1f
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x409d67
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409e42
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [ebx + 0x3c]
push ebp
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409e42
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x409e42
mov ecx, dword [edi + 0x18]
add ecx, eax
mov dword [edi + 0x18], ecx
mov ebp, dword [edi + 0x1c]
mov ecx, 0
adc ebp, ecx
mov dword [edi + 0x1c], ebp
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0x5d0c0]
push eax
add edi, eax
push ebx
mov dword [esi + 0x5d0c0], edi
mov edx, dword [esi + 0x5d0c4]
adc edx, ecx
mov ecx, esi
mov dword [esi + 0x5d0c4], edx
call fcn.00409e50
mov ecx, esi
call fcn.00409880
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push edi
push edx
lea eax, [ebx + 0x3c]
push ebp
push eax
push ecx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409e42
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x409e42
mov ebp, dword [esi + 0x5d0c0]
push eax
add ebp, eax
push ebx
mov dword [esi + 0x5d0c0], ebp
mov edx, dword [esi + 0x5d0c4]
adc edx, edi
mov ecx, esi
mov dword [esi + 0x5d0c4], edx
call fcn.00409e50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
Function at 0x40b680
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x320
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
push str.WebApp_1.0
push 0x428180
push 0x103
push 0x492c58
call esi
add esp, 0x10
push 0x428f18
push 0x428180
push 0x103
push 0x492e60
call esi
add esp, 0x10
push str.1.0.0.4
push 0x428180
push 0x103
push 0x493068
call esi
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x428180
push 0x103
push 0x493270
call esi
mov ebx, dword [esp + 0x340]
add esp, 0x10
mov eax, dword [ebx]
push eax
push str.0x_08x
push 0x103
push 0x493888
call esi
mov cx, word [0x42e49c]
xor eax, eax
mov word [esp + 0x134], cx
mov ecx, 0x81
lea edi, [esp + 0x136]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
push edx
stosw word es:[edi], ax
lea eax, [esp + 0x138]
push 0x103
push eax
push ecx
mov dword [esp + 0x2c], 0
call fcn.0040b8b0
add esp, 0x20
test eax, eax
je 0x40b7bc
push 0x103
lea edx, [esp + 0x128]
push 0x493680
push edx
call fcn.0040dcf0
add esp, 0xc
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
jne 0x40b78e
lea eax, [esp + 0x124]
push eax
push 0x428180
push 0x103
push 0x493478
call esi
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
push str.0x_08x
push 0x103
push 0x493a90
call esi
add esp, 0x10
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40b808
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
push str._d._d._d__s
push 0x103
push 0x493c98
call esi
add esp, 0x1c
push 0x104
push 0x493ea0
call fcn.00413950
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x320
ret

Function at 0x40bd20
Capabilities:
Copy file

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov word [esp + 8], 0
push str.sample.exe
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call esi
add esp, 4
cmp eax, 0x103
jbe 0x40bd5c
mov eax, 0x103
jmp 0x40bd66
push str.sample.exe
call esi
add esp, 4
push eax
lea eax, [esp + 0xc]
push str.sample.exe
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea ecx, [esp + 0x14]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 0x14
test eax, eax
pop edi
pop esi
je 0x40bd92
mov word [eax], 0
mov eax, dword [0x4946c0]
mov ecx, dword [0x4961cc]
push 0
push 0
push 0x802
lea edx, [esp + 0xc]
push 0x42906c
push edx
push str.Dump_Files_.dmp_
push 0x42af24
push eax
push ecx
call fcn.0040df60
add esp, 0x24
test eax, eax
je 0x40bdda
lea edx, [esp]
push 0
push edx
push 0x4944b8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0x208
ret
Function at 0x40bdf0
Capabilities:
Delete file

Disassembly:
mov ecx, 0x4301b8
call fcn.004068f0
mov eax, dword [0x4946c4]
test eax, eax
je 0x40be1b
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x4946c4], 0
mov eax, dword [0x48d264]
push esi
cmp eax, 7
push edi
jne 0x40be63
push 0x7da
call fcn.00412aa0
mov esi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
add esp, 4
push eax
mov eax, dword [0x4946c0]
push 2
push eax
call esi
push 0x7db
call fcn.00412aa0
mov ecx, dword [0x4946c0]
add esp, 4
push eax
push 0x421
push ecx
call esi
jmp 0x40be83
push 0x7dc
call fcn.00412aa0
mov edx, dword [0x4946c0]
add esp, 4
push eax
push 0x421
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x48d288
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x4946c0]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push 2
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call edi
mov ecx, dword [0x4946c0]
push 1
push 4
push ecx
call esi
push eax
call edi
mov ecx, 0x4301b8
call fcn.004065c0
pop edi
pop esi
ret