joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp esi, edx
je 0x1000961a
push 0xffffffffffffffff
push 0
push edx
mov ecx, esi
call fcn.10001930
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x10], 0x57ec8b55
mov dword [ebp - 0xc], 0xcc743a7c
mov dword [ebp - 8], 0x5cc36790
mov dword [ebp - 4], 0x5ef47a69
jb 0x10009640
mov eax, dword [esi]
jmp 0x10009642
mov eax, esi
xor edx, edx
cmp dword [esi + 0x10], edx
jbe 0x10009665
nop dword [eax]
mov ecx, edx
lea eax, [eax + 1]
and ecx, 0xf
inc edx
mov cl, byte [ebp + ecx - 0x10]
xor byte [eax - 1], cl
cmp edx, dword [esi + 0x10]
jb 0x10009650
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10009670
Capabilities:
Delete file

Disassembly:
cmp dword [0x1005baa8], 0x10
push ebx
mov ebx, 0x1005ba94
push edi
mov eax, ebx
cmovae eax, dword [0x1005ba94]
push 0x1004408c
push eax
call fcn.10025d7d
mov edi, eax
add esp, 8
test edi, edi
je 0x100096d5
push esi
push 2
push 0
push edi
call fcn.10026144
push edi
call fcn.10025cb1
push edi
mov esi, eax
call fcn.10025e0a
add esp, 0x14
cmp esi, 0xa00000
pop esi
jbe 0x100096d5
cmp dword [0x1005baa8], 0x10
cmovae ebx, dword [0x1005ba94]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop ebx
ret
Function at 0x100096e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003959c
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10021780
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x118]
push str.___u:_u_:
push eax
call fcn.100048e0
lea ecx, [ebp - 0x378]
call fcn.100091b0
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.10009bb0
add esp, 0x1c
push esi
push eax
lea eax, [ebp - 0x348]
mov byte [ebp - 4], 1
push eax
call fcn.10009bb0
add esp, 0xc
mov eax, dword [ebp - 0x34c]
cmp eax, 0x10
jb 0x1000979f
inc eax
lea ecx, [ebp - 0x360]
push eax
push dword [ebp - 0x360]
call fcn.10001b80
mov dword [ebp - 0x34c], 0xf
mov dword [ebp - 0x350], 0
mov byte [ebp - 0x360], 0
mov eax, dword [ebp - 0x364]
cmp eax, 0x10
jb 0x100097d8
inc eax
lea ecx, [ebp - 0x378]
push eax
push dword [ebp - 0x378]
call fcn.10001b80
mov dword [ebp - 0x31c], 0xf
mov dword [ebp - 0x320], 0
mov byte [ebp - 0x330], 0
lea eax, [ebp - 0x330]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x348]
call fcn.10009600
lea ecx, [ebp - 0x330]
add esp, 4
cmp ecx, eax
je 0x10009820
push 0xffffffffffffffff
push 0
push eax
call fcn.10001930
push 2
push 0x100440dc
lea ecx, [ebp - 0x348]
call fcn.10009a50
push 0x1005bac4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 2
push 0x100440dc
lea ecx, [ebp - 0x330]
call fcn.10009a50
call fcn.10009670
push ecx
lea edx, [ebp - 0x330]
call fcn.100090c0
add esp, 4
test al, al
jne 0x100098c0
push 0x200
lea eax, [ebp - 0x318]
push 0
push eax
call fcn.10021780
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x1005baa8], 0x10
mov ecx, 0x1005ba94
cmovae ecx, dword [0x1005ba94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x318]
push str.pid__u__write_log_error:_d__path_s
push eax
call fcn.100048e0
add esp, 0x14
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1005bac4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x31c]
cmp eax, 0x10
jb 0x100098e9
inc eax
lea ecx, [ebp - 0x330]
push eax
push dword [ebp - 0x330]
call fcn.10001b80
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x31c], 0xf
mov dword [ebp - 0x320], 0
mov byte [ebp - 0x330], 0
cmp eax, 0x10
jb 0x10009922
inc eax
lea ecx, [ebp - 0x348]
push eax
push dword [ebp - 0x348]
call fcn.10001b80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret
Function at 0x10009fb0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov byte [ebp - 9], 0
push edi
mov ebx, edx
cmp dword [esi + 0x14], 0x10
jb 0x10009fd5
mov eax, dword [esi]
jmp 0x10009fd7
mov eax, esi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a03a
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x14], 0x10
jb 0x1000a01e
mov esi, dword [esi]
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 9]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret

Function at 0x1000aab0
Capabilities:
Initialize winhttp library

Disassembly:
push esi
mov esi, ecx
xorps xmm0, xmm0
push 0
push 0
push 0
mov dword [esi], vtable.GWinHttp.0
mov byte [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x1388
mov dword [esi + 0x18], 0x1388
mov dword [esi + 0x1c], 0x1388
push 0
movq qword [esi + 0x20], xmm0
push str.Microsoft_Internet_Explorer
mov dword [esi + 0x28], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 8], eax
test eax, eax
jne 0x1000ab2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpen_error:_d_r_n
call fcn.1000a4a0
add esp, 8
mov dword [esi + 0x28], 1
mov eax, esi
pop esi
ret
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov eax, esi
pop esi
ret

Function at 0x1000ac00
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, ecx
cmp edx, 3
ja case.default.0x1000ac10
jmp dword [edx*4 + 0x1000ac70]
mov eax, 0x100441b8
jmp case.default.0x1000ac10
mov eax, str.POST
jmp case.default.0x1000ac10
mov eax, 0x100441cc
jmp case.default.0x1000ac10
mov eax, str.HEAD
push dword [ebp + 0x10]
push 0
push 0
push 0
push dword [ebp + 8]
push eax
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x1000ac62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinHttpOpenRequest_error:_d_r_n
call fcn.1000a4a0
add esp, 8
cmp dword [esi + 0x10], 0
pop esi
setne al
pop ebp
ret 0xc
Function at 0x1000b730
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038f98
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push eax
push edx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push esi
call fcn.1000baf0
test al, al
jne 0x1000b7b6
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10001610
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1000b87e
inc ecx
push ecx
jmp 0x1000b873
push 0x1000
call fcn.100226c0
add esp, 4
mov byte [ebp - 0x31], 0
mov esi, eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000b83a
nop word [eax + eax]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1000b836
cmp eax, 0x1000
jbe 0x1000b804
push esi
call fcn.100226bb
push dword [ebp - 0x30]
call fcn.100226c0
mov esi, eax
add esp, 8
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1000b83a
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push esi
call fcn.10009a50
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x1000b7e0
jmp 0x1000b83a
mov byte [ebp - 0x31], 1
push esi
call fcn.100226bb
add esp, 4
cmp byte [ebp - 0x31], 0
jne 0x1000b85e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.10001610
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1000b87e
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10001b80
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000b8a0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0
mov dword [ebp - 0xc], eax
mov edi, ecx
lea eax, [ebp - 8]
xor bl, bl
push eax
push 0
push 0
push 0x15
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000b936
push esi
push dword [ebp - 8]
call fcn.100226c0
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
push 0
push 0x15
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1000b92c
cmp word [esi], 0
jne 0x1000b90c
xor ecx, ecx
jmp 0x1000b920
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b911
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xc]
push esi
call fcn.10003420
mov bl, 1
push esi
call fcn.100226bb
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 4

Function at 0x1000b950
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
xor bl, bl
mov ecx, dword [ebp + 8]
push 0
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0x16
push dword [eax + 0x10]
mov dword [ebp - 0xc], eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
jne 0x1000ba23
push dword [ebp - 8]
call fcn.100226c0
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp - 0xc]
push esi
push 0
push 0x16
push dword [eax + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1000ba08
cmp word [esi], 0
jne 0x1000b9dd
xor ecx, ecx
push ecx
mov ecx, dword [ebp - 0x10]
push esi
call fcn.10003420
push esi
mov bl, 1
call fcn.100226bb
add esp, 4
jmp 0x1000ba33
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b9e2
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10]
push esi
call fcn.10003420
push esi
mov bl, 1
call fcn.100226bb
add esp, 4
jmp 0x1000ba33
call edi
push eax
push str.WinHttpQueryHeaders_error2:_d_r_n
call fcn.1000a4a0
add esp, 8
push esi
call fcn.100226bb
add esp, 4
jmp 0x1000ba33
call edi
push eax
push str.WinHttpQueryHeaders_error1:_d_r_n
call fcn.1000a4a0
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ba50
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push 0x3c
push 0
push eax
mov esi, ecx
xor bl, bl
call fcn.10021780
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 5
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1000bacc
push 0xa
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100230a6
add esp, 0xc
mov dword [edi], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 4
Function at 0x10019f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1004b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x100
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
push 0
push eax
movlpd qword [ebp - 0x110], xmm0
mov dword [ebp - 0x114], 8
call fcn.10021780
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x10019f84
mov esi, dword [esi]
cmp dword [0x1005bb54], 0x10
mov eax, 0x1005bb40
push esi
push dword [ebp + 8]
cmovae eax, dword [0x1005bb40]
push eax
lea eax, [ebp - 0x108]
push str._s__d__s
push eax
call fcn.100048e0
add esp, 0x14
cmp byte [0x1005bb60], 0
je 0x1001a051
cmp dword [0x1005bb3c], 0x10
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x110]
mov esi, 0x1005bb28
push ecx
lea ecx, [ebp - 0x118]
mov eax, esi
cmovae eax, dword [0x1005bb28]
push ecx
lea ecx, [ebp - 0x108]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x1001a034
cmp dword [0x1005bb3c], 0x10
lea eax, [ebp - 0x114]
push eax
cmovae esi, dword [0x1005bb28]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov eax, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp - 0x108], 0
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jne 0x1001a079
xor ecx, ecx
jmp 0x1001a08b
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a082
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x130]
call fcn.10001830
lea eax, [ebp - 0x130]
mov ecx, 0x1005bb64
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.1000d960
mov esi, dword [eax]
mov eax, dword [ebp - 0x11c]
cmp eax, 0x10
jb 0x1001a0d6
inc eax
lea ecx, [ebp - 0x130]
push eax
push dword [ebp - 0x130]
call fcn.10001b80
cmp esi, dword [0x1005bb64]
je 0x1001a034
mov eax, dword [esi + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x110], eax
xor ecx, ebp
mov edx, dword [esi + 0x2c]
pop esi
call fcn.1001e3e5
mov esp, ebp
pop ebp
ret 8
Function at 0x1001cde0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1001cf74
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1001cf74
cdq
idiv dword [esi + 0x3cc]
mov ecx, eax
test edx, edx
jne 0x1001cf74
mov eax, dword [ebp + 0x14]
push ebx
push edi
cmp eax, 1
jne 0x1001ceab
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], edx
mov dword [ebp - 4], edi
mov dword [ebp + 8], eax
test ecx, ecx
jle 0x1001cf72
lea ebx, [esi + 0x3f4]
cmp byte [esi + 4], 0
mov ecx, ebx
je 0x1001ce68
xor edx, edx
cmp dword [esi + 0x3cc], edx
jle 0x1001ce68
sub edi, ebx
nop dword [eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
inc edx
cmp edx, dword [esi + 0x3cc]
jl 0x1001ce50
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
push eax
push ebx
mov ecx, esi
call fcn.1001c760
push dword [esi + 0x3cc]
push dword [ebp + 8]
push ebx
call fcn.10021200
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [esi + 0x3cc]
add edi, ecx
cdq
idiv ecx
add dword [ebp + 8], ecx
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], edi
jl 0x1001ce38
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 2
jne 0x1001cf3f
mov edi, dword [ebp + 8]
xor edx, edx
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x14], edx
test ecx, ecx
jle 0x1001cf72
lea eax, [esi + 0x3f4]
nop dword [eax]
push ebx
push eax
mov ecx, esi
call fcn.1001c760
cmp byte [esi + 4], 0
mov edx, ebx
je 0x1001cf02
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
jle 0x1001cf02
nop dword [eax + eax]
mov al, byte [ecx + edi]
lea edx, [edx + 1]
xor byte [edx - 1], al
inc ecx
cmp ecx, dword [esi + 0x3cc]
jl 0x1001cef0
push dword [esi + 0x3cc]
lea eax, [esi + 0x3f4]
push ebx
push eax
call fcn.10021200
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, dword [esi + 0x3cc]
add edi, ecx
cdq
add ebx, ecx
idiv ecx
inc dword [ebp + 0x14]
cmp dword [ebp + 0x14], eax
lea eax, [esi + 0x3f4]
jl 0x1001ced0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp + 8]
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
test ecx, ecx
jle 0x1001cf72
nop
push eax
push ebx
mov ecx, esi
call fcn.1001c760
mov eax, dword [ebp + 0x10]
inc edi
mov ecx, dword [esi + 0x3cc]
add ebx, ecx
cdq
idiv ecx
add dword [ebp + 8], ecx
cmp edi, eax
mov eax, dword [ebp + 8]
jl 0x1001cf50
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001dff0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ad13
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1004b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.GSSPCoreService.0
mov dword [esi + 0x5c], vtable.GSSPCoreService.1.0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 2
call fcn.1001e140
jmp 0x1001e05c
mov edi, dword [esi + 0x64]
mov dword [ebp - 4], 1
test edi, edi
je 0x1001e083
mov ecx, edi
call fcn.1001e290
push 8
push edi
call fcn.1001e95d
add esp, 8
mov dword [esi + 0x64], 0
mov ecx, dword [esi + 0x60]
test ecx, ecx
je 0x1001e0a9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [esi + 0x44]
mov dword [esi + 0x60], 0
cmp dword [eax + 0x14], 0x10
jb 0x1001e0a2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, esi
mov dword [esi + 0x5c], vtable.IGSSPCorePlugin.0
call fcn.1001d130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4029b1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
xor esi, esi
push dword [0x40e460]
push esi
call dword [0x40b06c]
push esi
push esi
push dword [0x40e464]
mov edi, eax
mov dword [ebp - 4], edi
push dword [0x40e450]
call dword [0x40b058]
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push edi
push dword [0x40e450]
call dword [0x40b054]
xor eax, eax
cmp dword [0x40e460], esi
jbe 0x402a14
xor byte [eax + edi], 0x17
inc eax
cmp eax, dword [0x40e460]
jb 0x402a07
push 0x100
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00404a00
mov edi, 0x200
lea eax, [ebp - 0x308]
push edi
push esi
push eax
call fcn.00404a00
add esp, 0x18
lea eax, [ebp - 0x308]
push edi
push eax
push esi
call dword [0x40b050]
test eax, eax
je 0x402b70
lea eax, [ebp - 0x108]
push 0x40d100
push eax
call fcn.00404f60
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
add esp, 0xc
mov ebx, eax
dec ebx
je 0x402abe
cmp byte [ebp + ebx - 0x308], 0x5c
jne 0x402a75
lea eax, [ebp - 0x308]
push eax
call fcn.00404da0
push 0xfffffffffffffffd
pop ecx
sub ecx, ebx
add eax, ecx
push eax
lea eax, [ebp + ebx - 0x308]
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.00404a60
lea eax, [ebp - 0x108]
push 0x40d0fc
push eax
call fcn.00404f60
add esp, 0x18
push esi
push 0x80
push 2
push esi
push 1
lea eax, [ebp - 0x108]
push 0xc0000000
push eax
call dword [0x40b04c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402b70
lea eax, [ebp - 8]
push esi
push eax
push dword [0x40e460]
push dword [ebp - 4]
push ebx
call dword [0x40b068]
test eax, eax
je 0x402b70
push ebx
call dword [0x40b064]
push dword [ebp - 4]
call dword [0x40b060]
push edi
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.00404a00
lea eax, [ebp - 0x508]
push 0x40d0f0
push eax
call fcn.00404f60
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00404da0
pop ecx
lea eax, [ebp + eax - 0x508]
push eax
call fcn.00404f60
pop ecx
lea eax, [ebp - 0x508]
pop ecx
push 5
push eax
call dword [0x40b098]
lea eax, [ebp - 0x108]
push eax
call dword [0x40b094]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x10]
push ebp
push esi
xor ebp, ebp
lea eax, [esp + 8]
push eax
push ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
je 0x401097
push edi
push esi
call fcn.004929e2
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x40108e
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
invalid
push edi
push esi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401085
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4c1d98
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401085
cmp dword [esp + 0x10], ebp
jbe 0x401080
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx], edx
mov ebp, 1
push edi
call fcn.004935c5
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0xc
ret
pop esi
mov eax, ebp
pop ebp
add esp, 0xc
ret

Function at 0x401540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401557
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401588
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401584
cmp esi, eax
jae 0x401588
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401574
cmp esi, eax
jb 0x40158e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4072a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b42a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00492b04
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x4072f1
mov eax, dword [esi + 0x1c]
push eax
call fcn.004935b1
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret