joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409df0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43b978
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.00408690
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409e46
sub eax, edx
sar eax, 1
push eax
push ebx
lea eax, [esp + 0x14]
call fcn.00406e60
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.00408690
cmp dword [esp + 0x24], 8
jb 0x409e8e
mov edx, dword [esp + 0x10]
push edx
call fcn.004258ad
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40a1e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43b06c
mov eax, dword fs:[0]
push eax
sub esp, 0xc8c
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0xc88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0xca0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xcb0]
xor eax, eax
mov word [esp + 0x54], ax
mov ebx, 7
xor edi, edi
push 9
mov eax, 0x441038
lea esi, [esp + 0x54]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
call fcn.004085a0
mov dword [esp + 0xca8], edi
xor ecx, ecx
push 1
mov eax, 0x441034
lea esi, [esp + 0x38]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], cx
call fcn.004085a0
mov byte [esp + 0xca8], 1
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x40a285
lea eax, [esp + 0x54]
mov ebx, dword [esp + 0x64]
lea edx, [ebp + 0x18]
push eax
xor eax, eax
mov dword [esp + 0x18], edx
call fcn.0040ab30
mov edi, eax
cmp edi, 0xffffffff
je 0x40a389
lea edx, [esp + 0x6c]
push edx
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a3e1
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a2c2
sub eax, edx
sar eax, 1
add ebp, 0x54
push eax
lea eax, [esp + 0x70]
mov esi, ebp
call fcn.004085a0
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x40a2ef
lea eax, [esp + 0x38]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x48]
push eax
mov eax, edi
mov edx, esi
call fcn.0040ab30
push esi
lea esi, [esp + 0x1c]
cmp eax, 0xffffffff
je 0x40a34f
mov ecx, eax
mov eax, dword [esp + 0x68]
sub ecx, eax
sub ecx, edi
lea edx, [eax + edi]
call fcn.0040ab00
push 0
push eax
or eax, 0xffffffff
mov esi, ebp
mov byte [esp + 0xcb0], 2
call fcn.00407210
cmp dword [esp + 0x30], 8
jb 0x40a3e1
mov eax, dword [esp + 0x1c]
push eax
call fcn.004258ad
add esp, 4
jmp 0x40a3e1
mov ecx, dword [esp + 0x68]
lea edx, [ecx + edi]
or ecx, 0xffffffff
call fcn.0040ab00
push 0
push eax
or eax, 0xffffffff
mov esi, ebp
mov byte [esp + 0xcb0], 3
call fcn.00407210
cmp dword [esp + 0x30], 8
jb 0x40a3e1
mov edx, dword [esp + 0x1c]
push edx
call fcn.004258ad
add esp, 4
jmp 0x40a3e1
lea eax, [esp + 0x684]
push eax
push 0x30c
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40a3e1
lea ecx, [esp + 0x6c]
push ecx
push 0
push 0x44104c
lea edx, [esp + 0x690]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40a3e1
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a3c5
sub eax, edx
sar eax, 1
push eax
lea esi, [ebp + 0x54]
lea eax, [esp + 0x70]
call fcn.004085a0
mov esi, 8
cmp dword [esp + 0x4c], esi
jb 0x40a3f9
mov eax, dword [esp + 0x38]
push eax
call fcn.004258ad
add esp, 4
xor ecx, ecx
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], cx
cmp dword [esp + 0x68], esi
jb 0x40a423
mov edx, dword [esp + 0x54]
push edx
call fcn.004258ad
add esp, 4
mov ecx, dword [esp + 0xca0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc88]
xor ecx, esp
call fcn.00425821
add esp, 0xc98
ret 4
Function at 0x40acf0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esi + 8]
sub esp, 0x20
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 8]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [esi + 0x3c], 0
jne 0x40ad8e
push ebp
mov ebp, dword [sym.imp.USER32.dll_EnumChildWindows]
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
lea esp, [esp]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40ad8c
cmp dword [esp + 0x10], 0x100
jne 0x40ad5d
mov eax, dword [esp + 0x14]
cmp eax, 0xd
je 0x40ad9e
cmp eax, 0x1b
je 0x40ad7b
mov edx, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x40ad86
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [esi + 0x3c], 0
je 0x40ad30
pop edi
pop ebp
mov edx, dword [esi + 8]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0x20
ret
mov ecx, dword [esi + 8]
lea eax, [esp + 8]
push eax
push 0x4088a0
push ecx
mov dword [esp + 0x14], 0
call ebp
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40ad5d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40ad5d
mov eax, dword [eax + 0xc]
push 0
movzx edx, cx
push edx
push 0x111
push eax
call edi
jmp 0x40ad7b

Function at 0x40af60
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 4], 0
je 0x40af76
mov eax, dword [eax + 8]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
mov ecx, dword [eax + 8]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4

Function at 0x40aff0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xbc0
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0xbbc], eax
push edi
push 0x3b8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0042ad60
mov edi, dword [esi + 8]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x3d6]
push edx
mov dword [esp + 0x1c], 0x3bc
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 7
mov dword [esp + 0x2c], 0x401
mov word [esp + 0x3d8], cx
call fcn.0042ad60
add esp, 0x18
push 0x400
lea eax, [esp + 0x3c4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea ecx, [esp + 0x3c4]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
lea edx, [esp + 4]
push edx
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [esp + 0xbc0]
pop edi
xor ecx, esp
call fcn.00425821
add esp, 0xbc0
ret
Function at 0x40b0c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xbc0
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0xbbc], eax
push edi
push 0x3b8
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0042ad60
mov edi, dword [esi + 8]
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x3d6]
push edx
mov dword [esp + 0x1c], 0x3bc
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 6
mov word [esp + 0x3d8], cx
call fcn.0042ad60
add esp, 0x18
push 0x400
lea eax, [esp + 0x3c4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x80
lea ecx, [esp + 0x3c4]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
movzx ecx, word [esi + 0x18]
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
lea edx, [esp + 4]
push edx
push 1
mov dword [esp + 0x20], eax
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov ecx, dword [esp + 0xbc0]
pop edi
xor ecx, esp
call fcn.00425821
add esp, 0xbc0
ret

Function at 0x40b750
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
test al, 1
je 0x40b764
mov edi, 0x80000000
mov ebx, eax
and ebx, 2
je 0x40b78a
cmp dword [esi + 0x40], 8
jb 0x40b776
mov eax, dword [esi + 0x2c]
jmp 0x40b779
lea eax, [esi + 0x2c]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
or edi, 0x40000000
cmp dword [esi + 0x5c], 8
jb 0x40b795
mov eax, dword [esi + 0x48]
jmp 0x40b798
lea eax, [esi + 0x48]
push 0
push 0x80
push ebx
push 0
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
mov dword [esi + 0x24], eax
setne cl
pop esi
mov al, cl
pop ebx
ret 4

Function at 0x40b7e0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x24]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8
Function at 0x40cc20
Capabilities:
Receive http response

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push esi
xor bl, bl
call fcn.0040dff0
test al, al
je 0x40ccd4
cmp dword [esi + 0x10c], 8
jb 0x40cc48
mov ecx, dword [esi + 0xf8]
jmp 0x40cc4e
lea ecx, [esi + 0xf8]
mov edx, dword [esi + 0xc]
push edx
push esi
call fcn.0040ce20
cmp byte [esp + 0x14], 0
je 0x40cc8a
mov eax, dword [esi + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x3f
push eax
mov dword [esp + 0x24], 2
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x40cc8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
mov edx, dword [esi + 0xc]
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push esi
push 0
push 0
push 0
push 0
push 0
push edx
call ebp
test eax, eax
jne 0x40ccf8
mov edi, dword [esi + 0xc]
mov eax, esi
call fcn.0040cff0
test al, al
je 0x40ccd4
mov eax, dword [esi + 0xc]
push esi
push 0
push 0
push 0
push 0
push 0
push eax
call ebp
test eax, eax
jne 0x40ccf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x40ccef
mov edx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [esi + 0x110]
push edx
call eax
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
cmp dword [esi + 0xd0], 0
je 0x40cd0a
call fcn.0040d090
test al, al
je 0x40ccd4
mov ecx, dword [esi + 0xc]
push 0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40ccc8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov edi, dword [esi + 0xc]
push edx
push eax
mov eax, esi
call fcn.0040dc10
mov bl, al
test bl, bl
je 0x40ccd4
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x40ccef
mov edx, dword [ecx]
mov eax, dword [esi]
mov edx, dword [edx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0xc

Function at 0x40d0d0
Capabilities:
Read http header

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
xor ebx, ebx
push ebx
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push 0x16
push esi
mov dword [esp + 0x24], ebx
call ebp
cmp eax, ebx
jne 0x40d102
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40d181
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00424be9
mov edi, eax
add esp, 4
test edi, edi
je 0x40d177
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax]
push ecx
push 0
push edi
call fcn.0042ad60
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push edi
push 0
push 0x16
push esi
call ebp
test eax, eax
je 0x40d16e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d151
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004085a0
mov bl, 1
push edi
call fcn.00425fc3
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret 4
Function at 0x40d190
Capabilities:
Read http header

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x13
push edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0
call ebp
test eax, eax
jne 0x40d1c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40d240
mov eax, dword [esp + 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.00424be9
mov esi, eax
add esp, 4
test esi, esi
je 0x40d236
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0042ad60
add esp, 0xc
push 0
lea edx, [esp + 0x10]
push edx
push esi
push 0
push 0x13
push edi
call ebp
test eax, eax
je 0x40d22d
lea eax, [esp + 8]
push eax
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
test eax, eax
jne 0x40d22d
mov dword [esp + 8], 0xffffffff
push esi
call fcn.00425fc3
add esp, 4
mov eax, dword [esp + 8]
pop esi
pop ebp
add esp, 8
ret
mov eax, dword [esp + 4]
pop ebp
add esp, 8
ret

Function at 0x40d980
Capabilities:
Receive http response

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x84]
xor ebp, ebp
push edi
cmp eax, ebp
je 0x40d9a4
push eax
call fcn.00425fc3
add esp, 4
mov dword [esi + 0x84], ebp
mov dword [esi + 0x88], ebp
lea ebx, [ebx]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x18], ebp
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40daca
mov ecx, dword [esi + 0x90]
cmp ecx, ebp
je 0x40d9fa
mov edi, dword [esi + 0x94]
cmp edi, ebp
jbe 0x40d9fa
mov eax, dword [esi + 0x88]
mov edx, dword [esi]
imul eax, eax, 0x3e8
push edx
xor edx, edx
div edi
mov ebx, dword [ecx]
push eax
mov eax, dword [ebx]
call eax
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.00424be9
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x40da74
mov edx, dword [esp + 0x10]
inc edx
push edx
push ebp
push edi
call fcn.0042ad60
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40da6b
mov eax, dword [esp + 0x14]
mov bl, byte [esp + 0x20]
push eax
push edi
call fcn.0040d880
test al, al
je 0x40dad6
mov ecx, dword [esi + 0x1a0]
cmp dword [ecx + 0x20], ebp
je 0x40dad6
mov eax, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
push edi
call edx
push edi
call fcn.00425fc3
add esp, 4
cmp dword [esp + 0x10], ebp
ja 0x40d9b0
mov ecx, dword [esi + 0x90]
cmp ecx, ebp
je 0x40daac
mov edi, dword [esi + 0x94]
cmp edi, ebp
jbe 0x40daac
mov eax, dword [esi]
push eax
mov eax, dword [esi + 0x88]
imul eax, eax, 0x3e8
xor edx, edx
div edi
mov ebx, dword [ecx]
mov edx, dword [ebx]
push eax
call edx
mov esi, dword [esi + 0x1a0]
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
pop edi
mov dword [esi + 0x20], ebp
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret 8
Function at 0x40dcc0
Capabilities:
Set http header

Disassembly:
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40dd00
cmp dword [eax + 0x18], 8
jb 0x40dcd2
mov eax, dword [eax + 4]
jmp 0x40dcd5
add eax, 4
push 0x1000000
push ecx
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40dd00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 4]
mov dword [ecx + 0x110], eax
xor al, al
ret 8
mov al, 1
ret 8

Function at 0x40dd10
Capabilities:
Set http header

Disassembly:
push 0xffffffffffffffff
push 0x43b428
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
xor eax, eax
mov word [esp + 0x14], ax
push 8
mov eax, str.Cookie:
lea esi, [esp + 0x14]
mov ebx, ecx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.004085a0
push 0
push edi
or eax, 0xffffffff
mov dword [esp + 0x40], 0
call fcn.00407210
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40ddba
cmp dword [esp + 0x28], 8
mov ecx, dword [esp + 0x14]
jae 0x40dd98
lea ecx, [esp + 0x14]
push 0x1000000
push eax
push ecx
push ebp
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40ddba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x110], eax
xor bl, bl
jmp 0x40ddbc
mov bl, 1
cmp dword [esp + 0x28], 8
jb 0x40ddd0
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004258ad
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00425821
add esp, 0x2c
ret 4
Function at 0x40de00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43b008
mov eax, dword fs:[0]
push eax
sub esp, 0xc84
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0xc80], eax
push ebp
push esi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0xc90]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xcbc]
mov esi, ecx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x66]
mov dword [esp + 0xca0], 0
push ecx
mov word [esp + 0x68], ax
call fcn.0042ad60
xor edx, edx
push 0xa26
push edx
lea eax, [esp + 0x27a]
push eax
mov word [esp + 0x27c], dx
call fcn.0042ad60
xor eax, eax
push 0x38
push eax
lea edx, [esp + 0x30]
xor ecx, ecx
push edx
mov word [esp + 0x6c], cx
mov dword [esp + 0x6e], eax
mov dword [esp + 0x72], eax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov word [esp + 0x7e], ax
call fcn.0042ad60
lea eax, [esp + 0x80]
add esp, 0x24
cmp dword [esp + 0xcb8], 8
lea ecx, [esp + 0x264]
lea edx, [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xca4]
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], 0x514
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0xa
jae 0x40df05
lea eax, [esp + 0xca4]
mov edx, dword [esp + 0xcb4]
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x40dfa2
lea eax, [esp + 0x5c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40df30
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x60]
call fcn.004085a0
lea eax, [esp + 0x264]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40df53
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x268]
mov esi, edi
call fcn.004085a0
cmp dword [esp + 0x18], 2
mov ax, word [esp + 0x24]
sete cl
cmp dword [esp + 0xcb8], 8
mov word [ebx], ax
mov byte [ebp], cl
jb 0x40df9e
mov edx, dword [esp + 0xca4]
push edx
call fcn.004258ad
add esp, 4
mov al, 1
jmp 0x40dfbe
cmp dword [esp + 0xcb8], 8
jb 0x40dfbc
mov eax, dword [esp + 0xca4]
push eax
call fcn.004258ad
add esp, 4
xor al, al
mov ecx, dword [esp + 0xc90]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0xc80]
xor ecx, esp
call fcn.00425821
add esp, 0xc90
ret 0x20
Function at 0x411910
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x43cffd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a5d0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
xor ebx, ebx
mov dword [esp + 0x64], ebx
cmp dword [ebp + 0x2c], ebx
je 0x411ac9
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x4c
mov dword [esp + 0x18], eax
call fcn.004258d3
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x5c], ebx
cmp edi, ebx
je 0x411a01
cmp dword [ebp + 0x68], ebx
jne 0x411980
push ebp
call fcn.0040a1e0
mov esi, ebp
call fcn.0040a170
cmp dword [ebp + 0x6c], 8
jb 0x411992
mov eax, dword [ebp + 0x58]
jmp 0x411995
lea eax, [ebp + 0x58]
xor ebx, ebx
xor ecx, ecx
mov word [esp + 0x3c], cx
mov ecx, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4119b0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x3c]
call fcn.004085a0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
mov ecx, dword [esp + 0x68]
mov edx, esi
push edx
lea eax, [ebp + 0x18]
mov dword [esp + 0x60], 2
mov ebx, 3
push eax
lea edx, [esp + 0x24]
mov dword [esp + 0x6c], ebx
call fcn.00410ab0
jmp 0x411a03
xor eax, eax
mov dword [ebp + 0x50], eax
test bl, 2
je 0x411a37
and ebx, 0xfffffffd
cmp dword [esp + 0x34], 0x10
jb 0x411a22
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004258ad
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
test bl, 1
je 0x411a50
cmp dword [esp + 0x50], 8
jb 0x411a50
mov edx, dword [esp + 0x3c]
push edx
call fcn.004258ad
add esp, 4
mov edi, dword [ebp + 0x50]
test edi, edi
je 0x411ac9
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea esi, [edi + 0x2c]
push esi
call ebx
push esi
mov dword [edi + 0x20], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 0x50]
lea edi, [esi + 0x2c]
push edi
call ebx
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x14]
push edi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp + 0x50]
mov al, byte [esp + 0x6c]
mov byte [edx + 0xf], al
mov edi, dword [ebp + 0x50]
call fcn.004111c0
push 0
push 0
push edi
push 0x411380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x18], eax
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x411ae0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [esi + 0x2c], 0
push ebx
push edi
jne 0x411b5e
mov ecx, dword [esi + 0x10]
test ecx, ecx
jle 0x411b5e
mov eax, dword [esi + 0x14]
test eax, eax
jle 0x411b5e
push 0
push 1
push eax
call fcn.00407ea0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x411b58
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, esi
call fcn.0040a140
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x411b4f
mov ecx, dword [esi + 0x10]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x4c], 1
push ebx
call fcn.00425fc3
add esp, 4
mov al, 1
pop edi
pop ebx
pop ecx
ret
pop edi
xor al, al
pop ebx
pop ecx
ret

Function at 0x411fb0
Capabilities:
Create thread

Disassembly:
push edi
lea eax, [esi + 0x24]
push eax
call fcn.0041a620
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x1c], eax
call edi
push 0
push 0
push esi
push 0x412470
push 0
push 0
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x190
lea ecx, [esi + 4]
push ecx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov eax, esi
pop edi
ret