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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x1002b018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
push edi
push esi
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 0x110], 0x2a5c7325
mov word [ebp - 0x10c], 0x2a2e
mov byte [ebp - 0x10a], 0
call ebx
add esp, 0xc
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
nop
lea ecx, [ebp - 0x224]
push ecx
push esi
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x110], 0x255c7325
mov word [ebp - 0x10c], 0x73
call ebx
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0x108]
push ecx
mov dword [ebp - 0x110], eax
mov word [ebp - 0x10c], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x250]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016be0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1001d4c5
mov esp, ebp
pop ebp
ret

Function at 0x10016c60
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x1002b018]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10016ce3
push 0x1015df60
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, 0x1015df60
call fcn.10016b80
mov esi, str.C:Windowsprefetch
call fcn.10016b80
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x742e4d47
mov word [esp + 0xc], 0x7478
mov byte [esp + 0xe], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov dword [esp + 4], eax
mov word [esp + 8], ax
mov byte [esp + 0xa], al
call fcn.1001d2a0
mov ecx, eax
call fcn.1001d1d0
mov ecx, dword [esp + 0xc]
pop esi
xor ecx, esp
mov eax, 1
call fcn.1001d4c5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10018bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fb58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x10018d08
cmp byte [edi + 0x49], 0
je 0x10018d08
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x10018cfc
lea esi, [ebp - 0x2c]
call fcn.100188a0
mov dword [ebp - 4], 0
mov ebx, 0x10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
cmp eax, ebx
jae 0x10018c5b
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x10018c60
dec eax
je 0x10018c64
sub eax, 2
lea esi, [ebp - 0x2c]
je 0x10018d03
call fcn.100013c0
xor al, al
jmp 0x10018d0a
mov eax, dword [ebp - 0x2c]
jmp 0x10018c25
mov byte [edi + 0x49], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, edx
cmp ecx, ebx
jae 0x10018c73
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x10018c98
mov eax, edx
cmp ecx, ebx
jae 0x10018c83
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x10018cf4
cmp byte [edi + 0x49], 0
je 0x10018d00
test esi, esi
jne 0x10018c16
mov eax, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, eax
cmp edx, 8
jbe 0x10018d25
lea esi, [eax + 8]
lea eax, [ebp - 0x2c]
call fcn.10001640
test al, al
je 0x10018c16
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x10018cd1
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x18], ebx
jae 0x10018ceb
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x10018c16
lea esi, [ebp - 0x2c]
call fcn.100013c0
xor al, al
jmp 0x10018d0a
lea esi, [ebp - 0x2c]
call fcn.100013c0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d4c5
mov esp, ebp
pop ebp
ret
push 0x10022a24
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
int3

Function at 0x10019dc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0xf1
xor ecx, ecx
jmp 0x10019dd0
mov al, byte [edi + ecx - 0x210f19]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x10019ded
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x10019dd0
mov byte [esi + 0xc], 0
mov eax, esi
ret
Function at 0x1001a490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x1001a4a0
mov al, byte [edi + ecx - 0x321a2a]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001a4bd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0x26
jl 0x1001a4a0
mov byte [esi + 0x26], 0
mov eax, esi
ret

Function at 0x1001a4d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x1001a4e0
mov al, byte [edi + ecx - 0x321a2a]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001a4fd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0x20
jl 0x1001a4e0
mov byte [esi + 0x20], 0
mov eax, esi
ret

Function at 0x1001a9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x29
xor ecx, ecx
jmp 0x1001a9f0
mov al, byte [edi + ecx + 0x1e7b41dd]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001aa0d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001a9f0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x1001aa20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x6c
xor ecx, ecx
jmp 0x1001aa30
mov al, byte [edi + ecx + 0x6fad512a]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001aa4d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001aa30
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x1001aa60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x49
xor ecx, ecx
jmp 0x1001aa70
mov al, byte [edi + ecx + 0x16440e0f]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001aa8d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001aa70
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x1001b0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0xfa
xor ecx, ecx
jmp 0x1001b0c0
mov al, byte [edi + ecx - 0x2b3158]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001b0dd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001b0c0
mov byte [esi + 0xc], 0
mov eax, esi
ret

Function at 0x1001b2a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, 0x1f
xor ecx, ecx
jmp 0x1001b2b0
mov al, byte [edi + ecx - 0x97d5a03]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ecx + esi], al
jns 0x1001b2cd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xc
jl 0x1001b2b0
mov byte [esi + 0xc], 0
mov eax, esi
ret
Function at 0x1001cc00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fd88
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1002b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x1001cc63
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [ebp - 0x7c]
call fcn.1001c9c0
mov ecx, esi
call fcn.1001ca70
mov ecx, edi
mov ebx, esi
call fcn.1001cb50
cmp dword [ebp + 0x1c], 0x10
jb 0x1001cc92
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d4c5
mov esp, ebp
pop ebp
ret
Function at 0x1001cf40
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001f5b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1002b018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
xor edx, edx
mov ecx, 0x49
xor eax, eax
lea esp, [esp]
mov bl, byte [eax + 0x100264c4]
xor bl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x20], bl
jns 0x1001cf9d
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xc
jl 0x1001cf80
mov byte [ebp - 0x14], dl
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], edx
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0x2c], ebx
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push ecx
push edx
call fcn.1001cd00
add esp, 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x30]
call dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x1001cff1
xor eax, eax
jmp 0x1001d028
push esi
push eax
call fcn.1001cd00
add esp, 8
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1001cfed
test edi, edi
jle 0x1001d01f
lea eax, [ebp + 0xc]
mov ecx, edi
jmp 0x1001d010
mov edx, dword [eax + 4]
add eax, 4
mov dword [ebp - 0x30], edx
push dword [ebp - 0x30]
dec ecx
jne 0x1001d010
call dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001d4c5
mov esp, ebp
pop ebp
ret

Function at 0x1001d4c5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b018]
jne 0x1001d4cf
repz ret
jmp fcn.1001d98d
Function at 0x401db0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x401000
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x4058
call fcn.00402a58
sub esp, eax
lea esi, [ebp - 0x4018]
lea edi, [ebp - 0x401c]
mov eax, dword [esp + eax]
mov dword [ebp - 0x402c], edx
lea edx, [ebp - 0x402c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0x2000
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_FormatMessageW]
mov ebx, eax
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 0x1c
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x4030], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x4010b0
mov edx, dword [ebp - 0x401c]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetConsoleOutputCP]
mov dword [ebp - 0x403c], eax
mov dword [ebp - 0x4048], ecx
call ecx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [ebp - 0x4040], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x4034], eax
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x4044], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x403c]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x4038], eax
je 0x4010a5
mov ecx, dword [ebp - 0x4048]
call ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [ebp - 0x4034]
mov dword [esp + 0x14], edx
mov ecx, dword [ebp - 0x4038]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
mov ebx, dword [ebp - 0x4040]
call ebx
sub esp, 0x20
mov dword [esp], 0xfffffff5
mov ebx, dword [ebp - 0x4030]
call ebx
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x4034]
mov dword [esp + 8], edx
mov edi, dword [ebp - 0x4038]
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0x4044]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40109f
Function at 0x401270
Capabilities:
Enumerate process modules
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x3c
mov dword [ebp - 0x2c], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x401327
mov edi, eax
mov ebx, 0x1000
jmp 0x4012e9
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x401338
add ebx, ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x401350
mov edi, eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._K32EnumProcesses_12
sub esp, 0xc
test eax, eax
jne 0x4012b8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x2c]
shr eax, 2
mov dword [edx], eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x401327

Function at 0x4013f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
push ebx
sub esp, 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x410
call dword [sym.imp.kernel32.dll_OpenProcess]
sub esp, 0xc
test eax, eax
je 0x40148c
mov ebx, eax
lea eax, [ebp - 0xc]
mov dword [esp + 8], 4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._K32EnumProcessModules_16
sub esp, 0x10
test eax, eax
je 0x401480
mov dword [esp + 0xc], 0x104
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._K32GetModuleBaseNameW_16
sub esp, 0x10
test eax, eax
je 0x401480
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x402070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x4020cb
cmp byte [esi + ebx - 1], 0xa
je 0x40209f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4050a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x4050b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4027e0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4050b4]
movzx eax, al
bt eax, esi
jae 0x402840
mov ecx, dword [0x4050a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x4026e6
test byte [0x40301c], 8
jne 0x402780
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x40302c], 8
jne 0x402730
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4026b5
cmp esi, 3
jbe 0x4026f0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4040f0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x4026b5
mov ecx, dword [0x4050b4]
test ecx, ecx
je 0x402820
mov dword [esp], 0x40302c
call dword [0x4050b4]
test al, 8
je 0x40268c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40268c
mov ebx, dword [0x4050b4]
test ebx, ebx
je 0x402800
mov dword [esp], 0x40301c
call dword [0x4050b4]
test al, 8
je 0x402679
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40267f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x402640
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x40278a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4050b4
call sym._load_func.part.0
jmp 0x40273e
mov eax, 0xffffffff
jmp 0x4026e6
Function at 0x4029a0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sub.ucrtbase.dll_exit
Function at 0x401050
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 8], 0
mov edi, ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
je 0x4011a1
push 0
push 0x50
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
je 0x4011a1
push 0
push 0
push 0
push 0
push esi
push 0x4031d8
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x4011a1
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4011a1
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x401184
push 0
push 0x80
push 2
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4011a1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
or esi, 0xffffffff
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4011a1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40117d
add eax, 1
push 1
cmovb eax, esi
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x40119a
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40119a
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [ebp - 8], 0
je 0x40117d
cmp dword [ebp - 0x10], 0
ja 0x40110b
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004015df
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004015df
mov esp, ebp
pop ebp
ret
Function at 0x401e0a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x401e49
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401e49
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401e49
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401e49
cmp dword [ecx + 0x74], 0xe
jbe 0x401e49
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret