joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a9b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x210]
mov byte [ebp - 1], 1
call fcn.004097a9
xor ebx, ebx
mov esi, 0xc0000000
jmp 0x409ae1
cmp byte [ebp - 1], bl
je 0x409bf8
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeW]
mov byte [ebp - 1], bl
push ebx
push ebx
push 3
push ebx
push 3
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409ac6
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp + 8], 2
call dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x409bf1
push ebx
lea eax, [ebp + 8]
push eax
push 4
pop esi
push esi
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x409bf1
push ebx
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + 0x1c]
push eax
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x409bf1
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x409bf1
push ebx
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x409bf1
cmp dword [ebp + 8], esi
jne 0x409bf1
push ebx
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + 0x18]
push eax
push edi
mov dword [ebp + 0x18], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x409bed
cmp dword [ebp + 8], esi
jne 0x409bed
mov eax, dword [ebp + 0x18]
cmp eax, ebx
jbe 0x409bf1
call fcn.0040d29c
mov esi, eax
cmp esi, ebx
je 0x409be1
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x18]
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x409be1
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 8]
jne 0x409be1
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x409be5
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x409be5
mov dword [ecx], esi
mov dword [eax], edx
jmp 0x409bf1
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0040d2af
jmp 0x409bf1
or dword [ebp - 8], 0xffffffff
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x409cae
Capabilities:
Acquire debug privileges
Get session user name
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and dword [0x411b70], 0
sub esp, 0x210
call fcn.00409253
test al, al
jne 0x409cc9
leave
ret
or dword [0x411a68], 0xffffffff
push ebx
mov ebx, fcn.00409c02
call fcn.0040a121
xor ebx, ebx
push ebx
push 0x80000
push ebx
mov dword [0x411c20], eax
call dword [sym.imp.kernel32.dll_HeapCreate]
mov dword [0x412ec8], eax
cmp eax, ebx
jne 0x409d0b
call dword [sym.imp.kernel32.dll_GetProcessHeap]
mov dword [0x412ec8], eax
mov byte [0x411767], bl
jmp 0x409d12
mov byte [0x411767], 1
call fcn.00410255
mov eax, 0x190
mov dword [0x411ecc], ebx
mov byte [0x41178e], bl
call fcn.0040d29c
mov dword [0x411a6c], eax
cmp eax, ebx
jne 0x409d3d
xor al, al
jmp 0x409e85
push esi
mov dword [ebp - 8], ebx
push edi
movzx edi, word [ebp - 8]
shl edi, 2
mov eax, dword [edi + 0x411020]
movzx eax, byte [eax]
inc eax
je 0x409d5e
call fcn.0040d29c
mov esi, eax
jmp 0x409d60
xor esi, esi
cmp esi, ebx
je 0x409dc8
mov edx, dword [edi + 0x411020]
cmp byte [edx], bl
mov byte [ebp - 1], bl
jle 0x409d90
xor ecx, ecx
mov al, 0xba
mov bl, byte [ecx + edx + 1]
add bl, al
inc byte [ebp - 1]
mov byte [ecx + esi], bl
movzx ecx, byte [ebp - 1]
movsx ebx, byte [edx]
add al, 2
cmp ecx, ebx
jl 0x409d75
xor ebx, ebx
movzx eax, byte [ebp - 1]
mov byte [eax + esi], bl
cmp byte [esi], 0x57
jne 0x409dcf
mov eax, dword [edi + 0x411020]
movzx eax, byte [eax]
lea ecx, [esi + 1]
dec eax
push ecx
call fcn.0040d667
mov ecx, dword [0x411a6c]
push esi
mov dword [edi + ecx], eax
call fcn.0040d2af
mov eax, dword [0x411a6c]
cmp dword [edi + eax], ebx
jne 0x409dd8
xor al, al
jmp 0x409e83
mov eax, dword [0x411a6c]
inc esi
mov dword [edi + eax], esi
inc dword [ebp - 8]
cmp word [ebp - 8], 0x64
jb 0x409d42
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov edx, dword [0x411c20]
mov dword [0x411c14], eax
mov eax, dword [edx + 0x3c]
add eax, edx
movzx esi, word [eax + 6]
xor ecx, ecx
cmp si, bx
jbe 0x409e19
movzx ecx, si
movzx esi, word [eax + 0x14]
imul ecx, ecx, 0x28
add ecx, eax
mov ecx, dword [esi + ecx - 4]
add ecx, edx
mov dword [0x411b04], ecx
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
push 0x4035dc
mov word [0x411af0], ax
call fcn.0040f4f4
test al, al
jne 0x409e40
or dword [0x411b70], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 8], 0x103
call dword [sym.imp.advapi32.dll_GetUserNameW]
test eax, eax
je 0x409e77
mov eax, dword [ebp - 8]
add eax, eax
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040d302
mov dword [0x411a64], eax
cmp eax, ebx
jne 0x409e81
mov dword [0x411a64], 0x403600
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409f3e
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x411b70]
push esi
and al, 1
movzx esi, al
push 0x208
neg esi
push 0
lea eax, [ebp - 0x274]
sbb esi, esi
push eax
mov dword [ebp - 4], 0x206
add esi, 0x80000002
call fcn.0040d36d
cmp edx, 0xffffffff
je 0x409fe3
test edx, edx
je 0x409fb1
cmp word [edx], 0
je 0x409fb1
mov ecx, edx
call fcn.0040d6c6
add eax, eax
mov ecx, 0x204
cmp eax, ecx
mov dword [ebp - 4], eax
cmovae eax, ecx
push eax
push edx
lea eax, [ebp - 0x274]
push eax
call fcn.0040d2eb
mov eax, dword [ebp - 4]
jmp 0x40a035
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x411a6c]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push esi
call fcn.0040765c
test al, al
je 0x409fe3
cmp dword [ebp - 8], 1
jne 0x409fe3
mov eax, dword [ebp - 4]
cmp eax, 4
ja 0x40a058
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 4], 0x31
call dword [sym.imp.kernel32.dll_GetComputerNameW]
test eax, eax
jne 0x40a00b
push 0x401c88
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
call dword [sym.imp.kernel32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [0x411a6c]
push dword [eax + 0x5c]
lea eax, [ebp - 0x274]
push 0x103
push eax
call dword [0x411bec]
add esp, 0x14
add eax, eax
inc eax
inc eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x274]
push eax
mov eax, dword [0x411a6c]
push 1
push dword [eax + 0x3c]
push dword [eax + 0x38]
push esi
call fcn.004076a5
mov eax, dword [ebp - 4]
shr eax, 1
lea ecx, [ebp - 0x274]
dec eax
push ecx
mov dword [ebp - 4], eax
call fcn.0040d600
push dword [ebp - 4]
mov esi, eax
push esi
call dword [0x411a0c]
xor ecx, ecx
cmp dword [ebp - 4], ecx
jbe 0x40a09a
mov al, byte [ecx + esi]
cmp al, 0x61
jl 0x40a088
cmp al, 0x7a
jle 0x40a094
cmp al, 0x30
jl 0x40a090
cmp al, 0x39
jle 0x40a094
mov byte [ecx + esi], 0x5f
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x40a07d
mov dword [0x411c8c], esi
pop esi
leave
ret

Function at 0x40a121
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ebx
and esi, 0xffff0000
push edi
je 0x40a177
push 0x40
push esi
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x40a16f
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x40a16f
mov eax, dword [esi + 0x3c]
lea edi, [eax + esi]
cmp edi, ebx
jae 0x40a16f
push 0xf8
push edi
call dword [sym.imp.kernel32.dll_IsBadReadPtr]
test eax, eax
jne 0x40a16f
cmp dword [edi], 0x4550
jne 0x40a16f
mov eax, dword [edi + 0x50]
add eax, esi
cmp eax, ebx
ja 0x40a17c
sub esi, 0x10000
jne 0x40a12d
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
jmp 0x40a179
Function at 0x40a180
Capabilities:
Enumerate processes
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc58
push ebx
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40a1a4
xor eax, eax
jmp 0x40a33b
test byte [0x411b70], 1
mov dword [ebp - 4], 0x103
je 0x40a1d2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.advapi32.dll_GetUserNameW]
test eax, eax
jne 0x40a1e7
mov word [ebp - 0x640], ax
jmp 0x40a1e7
mov eax, dword [0x411a6c]
push dword [eax + 0x1c]
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov eax, dword [0x411b70]
not eax
push esi
and eax, 1
push 1
or eax, 0x24
push eax
lea eax, [ebp - 0xc58]
push eax
push edi
mov dword [ebp - 4], edi
call dword [0x411ae8]
lea eax, [ebp - 0x438]
push eax
push ebx
mov dword [ebp - 0x438], 0x22c
call dword [sym.imp.kernel32.dll_Process32FirstW]
jmp 0x40a328
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
jne 0x40a31a
push dword [ebp - 0x430]
push edi
push 0x410
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x40a31a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call dword [0x411c1c]
test eax, eax
je 0x40a313
push dword [ebp + 8]
lea eax, [ebp - 0xc58]
push eax
lea eax, [ebp - 0x848]
push eax
call dword [0x411bf4]
cmp word [ebp - 0x20c], 0x5c
jne 0x40a2c4
cmp word [ebp - 0x20a], 0x3f
jne 0x40a2c4
cmp word [ebp - 0x208], 0x3f
jne 0x40a2c4
cmp word [ebp - 0x206], 0x5c
jne 0x40a2c4
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x204]
jmp 0x40a2d1
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
cmp eax, edi
jne 0x40a313
cmp dword [ebp - 4], edi
jne 0x40a2ea
mov eax, dword [ebp - 0x430]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa50]
push eax
push esi
call fcn.0040a6f5
test al, al
je 0x40a313
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0xa50]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x40a341
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.kernel32.dll_Process32NextW]
test eax, eax
jne 0x40a226
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x430]
jmp 0x40a33a

Function at 0x40a357
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
call fcn.00409e88
mov eax, dword [0x411a6c]
push dword [eax]
lea eax, [ebp - 0x208]
push eax
push eax
call dword [0x411bf4]
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
push 6
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
leave
ret
Function at 0x40a3a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor bl, bl
call fcn.0040d6c6
xor esi, esi
push esi
mov edi, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [0x411a6c]
push esi
push 3
push esi
push esi
push esi
push dword [eax + 0x40]
mov dword [ebp - 0xc], edi
push 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a4e7
lea eax, [ebp - 4]
push eax
mov eax, dword [0x411a6c]
push esi
push esi
push esi
push dword [eax + 0x48]
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2 + 0xa]
mov dword [ebp - 4], eax
cmp eax, esi
jbe 0x40a412
call fcn.0040d29c
mov edi, eax
jmp 0x40a414
xor edi, edi
cmp edi, esi
je 0x40a4d7
lea eax, [ebp - 4]
push eax
mov eax, dword [0x411a6c]
push edi
push esi
push esi
push dword [eax + 0x48]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov ebx, edi
mov ecx, edi
movzx eax, word [ebx]
cmp ax, si
je 0x40a446
cmp ax, 0x2c
jne 0x40a465
mov eax, ebx
sub eax, ecx
sar eax, 1
cmp eax, dword [ebp - 0xc]
jne 0x40a462
push dword [ebp - 0xc]
push dword [ebp + 8]
push ecx
call dword [0x411be0]
test eax, eax
je 0x40a46e
lea ecx, [ebx + 2]
cmp word [ebx], si
je 0x40a472
inc ebx
inc ebx
jmp 0x40a438
mov bl, 1
jmp 0x40a4d1
mov ecx, edi
call fcn.0040d6c6
mov esi, eax
test esi, esi
jbe 0x40a48f
cmp word [edi + esi*2 - 2], 0x2c
je 0x40a48f
push 0x2c
pop eax
mov word [edi + esi*2], ax
inc esi
push dword [ebp + 8]
lea eax, [edi + esi*2]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
add esi, dword [ebp - 0xc]
push 0x403608
lea eax, [edi + esi*2]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
lea eax, [esi + esi + 4]
push eax
mov eax, dword [0x411a6c]
push edi
push 1
push 0
push dword [eax + 0x48]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push edi
call fcn.0040d2af
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
test bl, bl
jne 0x40a508
mov edi, dword [ebp - 0xc]
lea eax, [edi + edi + 2]
push eax
push dword [ebp + 8]
mov eax, dword [0x411a6c]
push 1
push dword [eax + 0x48]
push dword [eax + 0x44]
push 0x80000001
call fcn.004076a5
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
Function at 0x40a511
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
xor ebx, ebx
xor eax, eax
push esi
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x58], ebx
cmp byte [ebp + 8], bl
je 0x40a5e4
call fcn.0040a623
test al, al
je 0x40a5e4
lea eax, [ebp - 4]
push eax
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
call dword [0x411a34]
push eax
call dword [0x411a30]
push dword [ebp - 4]
push ebx
push 0x400
call dword [sym.imp.kernel32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40a5b5
lea eax, [ebp - 8]
push eax
push 0xb
push esi
call dword [sym.imp.advapi32.dll_OpenProcessToken]
test eax, eax
je 0x40a5ae
lea eax, [ebp + 8]
push eax
push 1
push 2
push ebx
push 0xb
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40a5a5
mov dword [ebp + 8], ebx
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp + 8], ebx
je 0x40a61b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_CreateProcessAsUserW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x40a600
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov esi, eax
cmp esi, ebx
je 0x40a61b
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x40a61d
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a799
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.kernel32.dll_CreateThread]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x40a7c3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
push 0x401034
mov esi, ecx
push esi
lea eax, [ebp - 0x460]
push eax
mov dword [ebp - 8], edx
call dword [0x411bf4]
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
and dword [ebp - 4], 0
mov edi, eax
cmp edi, 0xffffffff
je 0x40a8b0
cmp word [ebp - 0x22c], 0x2e
jne 0x40a832
cmp word [ebp - 0x22a], 0
je 0x40a893
cmp word [ebp - 0x22a], 0x2e
jne 0x40a832
cmp word [ebp - 0x228], 0
je 0x40a893
mov ebx, dword [ebp - 0x258]
shr ebx, 4
and bl, 1
jne 0x40a854
push dword [ebp - 8]
lea eax, [ebp - 0x22c]
push eax
call dword [0x411c0c]
test eax, eax
je 0x40a893
lea eax, [ebp - 0x22c]
push eax
push esi
lea eax, [ebp - 0x460]
push eax
call dword [0x411bf4]
test bl, bl
je 0x40a880
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0x460]
call fcn.0040a7c3
add dword [ebp - 4], eax
jmp 0x40a893
lea eax, [ebp - 0x460]
push eax
call fcn.0040df8d
test al, al
je 0x40a893
inc dword [ebp - 4]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x40a80a
push edi
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40daa8
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
test byte [ebp + 0x18], 2
mov eax, 0x8404f300
je 0x40dabb
mov eax, 0x8444f300
test byte [ebp + 0x18], 4
je 0x40dac6
or eax, 0x800000
test byte [ebp + 0x18], 1
mov ecx, 0x4038b0
jne 0x40dad6
mov ecx, 0x4038b8
push esi
push edi
xor esi, esi
push esi
push eax
push section..data
push esi
push 0x4038a4
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
call dword [0x411a88]
mov edi, eax
cmp edi, esi
je 0x40db44
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
push edi
call dword [0x411a8c]
test eax, eax
je 0x40db3d
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000013
push edi
mov dword [ebp + 0x18], esi
mov dword [ebp + 0xc], 4
call dword [0x411a9c]
test eax, eax
je 0x40db3d
cmp dword [ebp + 0x18], 0xc8
jne 0x40db3d
mov eax, edi
jmp 0x40db46
push edi
call dword [0x411a7c]
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x40dbec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40dcb7
mov eax, 0x1000
call fcn.0040d29c
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x40dca3
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x14], ebx
je 0x40dc47
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40dc9b
lea eax, [ebp - 8]
push eax
push 0x1000
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [0x411a90]
test eax, eax
je 0x40dc9b
cmp dword [ebp - 8], ebx
je 0x40dc90
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40dc9b
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x40dc9b
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x40dc31
jmp 0x40dc9b
push esi
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call fcn.0040d2af
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp byte [ebp - 1], bl
jne 0x40dcb7
push dword [ebp + 0xc]
call fcn.0040df8d
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x40ddef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40de4e
cmp dword [ebp + 0xc], ebx
je 0x40de38
cmp edi, ebx
je 0x40de38
push ebx
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40de3a
cmp dword [ebp + 0xc], edi
jne 0x40de3a
mov bl, 1
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp bl, 1
je 0x40de4e
push dword [ebp + 8]
call fcn.0040df8d
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x40de56
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, eax
and al, 2
push edi
movzx eax, al
xor edi, edi
push edi
neg eax
push edi
sbb eax, eax
push 3
and eax, 6
or eax, 1
push edi
push eax
mov eax, ebx
or eax, 0xfffffffe
shl eax, 0x1e
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x40df07
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x40defe
cmp dword [ebp - 4], edi
jne 0x40defe
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x40deb7
mov dword [esi + 0xc], edi
mov dword [esi], edi
mov al, 1
jmp 0x40df09
push edi
push edi
push edi
push 0
pop eax
and ebx, 1
setne al
lea eax, [eax + eax + 2]
push eax
push edi
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, edi
je 0x40defe
xor ecx, ecx
cmp ebx, edi
sete cl
push edi
push edi
push edi
lea ecx, [ecx + ecx + 2]
push ecx
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esi], eax
cmp eax, edi
jne 0x40deb3
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [esi + 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
pop edi
pop ebx
leave
ret 4

Function at 0x40df8d
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x20
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
setne al
ret 4

Function at 0x40e0c4
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xf0000040
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.advapi32.dll_CryptAcquireContextW]
test eax, eax
je 0x40e14e
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
je 0x40e144
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
je 0x40e13b
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
test eax, eax
je 0x40e13b
cmp dword [ebp - 0xc], 0x10
jne 0x40e13b
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop ebx
leave
ret 0xc