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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x45fc48]
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 ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x407795
cmp byte [ebx + 0x45], 0
je 0x407795
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4076c4
xor al, al
jmp 0x407797
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40772e
dec eax
je 0x407732
sub eax, 2
je 0x40777e
xor bl, bl
jmp 0x407780
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edx
sub esi, eax
je 0x407764
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x28]
cmovae eax, edx
push 1
push eax
call fcn.0041a9b0
add esp, 0x10
cmp esi, eax
jne 0x40772a
cmp byte [ebx + 0x45], 0
je 0x40777e
test esi, esi
jne 0x4076f4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00407c10
jmp 0x4076f4
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x407791
push dword [ebp - 0x28]
call fcn.00418b1b
add esp, 4
mov al, bl
jmp 0x407797
mov al, 1
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.004192a9
mov esp, ebp
pop ebp
ret
Function at 0x4085c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x45fc48]
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 ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x4085fc
xor eax, eax
jmp 0x40878c
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x40862a
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x40862a
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
mov edx, dword [ecx]
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
jmp 0x40878c
cmp dword [ebx + 0x50], 0
jne 0x408638
or eax, 0xffffffff
jmp 0x40878c
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x408659
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x40867e
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.0041a5ec
or ecx, 0xffffffff
add esp, 8
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
mov eax, ecx
jmp 0x40878c
mov byte [ebp - 0x2c], cl
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 8
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 0x30]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2b]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x408776
cmp eax, 1
jg 0x408756
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
cmp edi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, ecx
sub esi, eax
je 0x408727
push dword [ebx + 0x50]
lea eax, [ebp - 0x28]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0041a9b0
add esp, 0x10
cmp esi, eax
jne 0x408776
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0x34], eax
jne 0x408751
test esi, esi
jne 0x4086b1
cmp dword [ebp - 0x18], 0x20
jae 0x408776
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00407c10
jmp 0x4086b1
mov ebx, dword [ebp + 8]
jmp 0x408779
cmp eax, 3
jne 0x408776
push dword [ebx + 0x50]
push dword [ebp - 0x2c]
call fcn.00406540
or ecx, 0xffffffff
add esp, 8
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x408779
or ebx, 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x40878a
push dword [ebp - 0x28]
call fcn.00418b1b
add esp, 4
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.004192a9
mov esp, ebp
pop ebp
ret 4
Function at 0x40b260
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x45fc48]
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 eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebx], ax
jne 0x40b2cc
xor ecx, ecx
jmp 0x40b2e0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b2d1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004026a0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0
call fcn.0040a1b0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40b309
mov eax, dword [eax]
lea ecx, [ebp - 0x80]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp dword [ebp - 0x2c], 0x10
mov edi, eax
jb 0x40b326
push dword [ebp - 0x40]
call fcn.00418b1b
add esp, 4
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
jb 0x40b350
push dword [ebp - 0x28]
call fcn.00418b1b
add esp, 4
test edi, edi
je 0x40b43f
push edi
call fcn.0041b350
mov esi, eax
add esp, 4
test esi, esi
je 0x40b43f
push ebx
lea ecx, [ebp - 0x70]
call fcn.00401690
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 4], 1
call fcn.0040a1b0
add esp, 8
cmp dword [eax + 0x14], 0x10
jb 0x40b393
mov eax, dword [eax]
push esi
push edi
push dword [ebp - 0x80]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
sete bl
cmp dword [ebp - 0x44], 0x10
jb 0x40b3b4
push dword [ebp - 0x58]
call fcn.00418b1b
add esp, 4
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jb 0x40b3d7
push dword [ebp - 0x70]
call fcn.00418b1b
add esp, 4
test bl, bl
jne 0x40b436
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x44da5c
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40b436
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
movzx eax, word [ecx + 0xa]
mov word [edx], ax
movzx eax, word [ecx + 8]
mov edx, dword [ebp - 0x88]
push esi
mov word [edx], ax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x84]
mov word [edx], ax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x74]
mov word [ecx], ax
call fcn.00419e56
add esp, 4
mov eax, 1
jmp 0x40b441
push esi
call fcn.00419e56
add esp, 4
xor eax, eax
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.004192a9
mov esp, ebp
pop ebp
ret
Function at 0x40b460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 0xc]
push ecx
movzx ecx, word [ebp + 8]
mov ebx, eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret

Function at 0x40b760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45fc48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x40b7c1
lea eax, [ebp - 0x20c]
push eax
push 0x104
push ebx
call fcn.0041b0c2
add esp, 0xc
test edi, edi
je 0x40b7bf
push edi
push 0x104
push ebx
call fcn.0041b056
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192a9
mov esp, ebp
pop ebp
ret
Function at 0x40bb60
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a8b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x45fc48]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], esi
push 0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0x16
push dword [eax]
xor bl, bl
mov dword [ebp - 4], esi
mov byte [ebp - 0x2d], bl
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x40bc1d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x40bc1a
call edi
mov ecx, dword [ebp - 0x34]
push str.Header___failed
mov dword [ecx + 0x28], eax
lea ecx, [ebp - 0x2c]
call fcn.00401590
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.0040cb70
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x40bc09
push dword [ebp - 0x2c]
call fcn.00418b1b
add esp, 4
push 0
call fcn.004192a4
add esp, 4
xor al, al
jmp 0x40bcaa
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 2
neg ecx
or ecx, eax
push ecx
call fcn.004175d3
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40bc54
push 0
call fcn.004192a4
mov esi, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x3c], esi
push 0
call fcn.004192a4
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
je 0x40bc9f
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x40]
push esi
push 0
push 0x16
push dword [eax]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40bc8f
push esi
mov ecx, edi
call fcn.0040cc00
mov bl, 1
jmp 0x40bc9f
xor bl, bl
jmp 0x40bc9f
push esi
call fcn.004192a4
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004192a9
mov esp, ebp
pop ebp
ret
Function at 0x40bcd0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45fc48]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
mov edi, edi
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40bd30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x28], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0
jbe 0x40be4b
xor esi, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 4], esi
push eax
mov byte [ebp - 4], 1
call fcn.004175d3
mov edi, eax
add esp, 4
test edi, edi
je 0x40bd64
push esi
call fcn.004192a4
add esp, 4
mov esi, edi
push 0
call fcn.004192a4
add esp, 4
mov dword [ebp - 4], 0
test esi, esi
je 0x40be31
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0
push esi
call fcn.0041a0c0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
push esi
push dword [ebx]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x40bdd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [ecx + 0x28], eax
call fcn.004192a4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40bde8
push esi
call fcn.004192a4
add esp, 4
xor esi, esi
jmp 0x40be31
push dword [ebp + 0x14]
push eax
push ecx
mov ecx, esp
push dword [ebp + 0xc]
mov eax, esi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ecx], eax
call fcn.0040c570
add esp, 0x10
test al, al
jne 0x40be31
push 0
call fcn.004192a4
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004192a4
add esp, 4
cmp dword [ebp - 0x14], 0
ja 0x40bd00
mov al, 1
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 0x40d460
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44abbb
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push esi
mov eax, dword [0x45fc48]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
test esi, esi
je 0x40d4fa
push 0x3a98
push 0x7530
push 0x2710
push 0x2710
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x40d4f8
lea ecx, [ebp - 0xcc]
call fcn.00406850
push str._PROXY_DETECT__Failed_to_set_timeouts_for_WinHttp_requests
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00408180
push eax
call fcn.004038b0
add esp, 8
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.00406ba0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411350
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x1c], 8
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411399
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
test eax, eax
jne 0x4113b9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
or edi, esi
cmp dword [ebp + 0x1c], 8
jb 0x4113af
push dword [ebp + 8]
call fcn.00418b1b
add esp, 4
mov edx, edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
jmp 0x41139e
Function at 0x413c30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x45fc48]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
xor edi, edi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x413cb9
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x413cb9
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041bdf4
add esp, 8
test eax, eax
je 0x413cb3
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x413c80
jmp 0x413cb9
mov edi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 8
jb 0x413cd1
push dword [ebp + 8]
call fcn.00418b1b
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004192a9
mov esp, ebp
pop ebp
ret

Function at 0x413f20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45fc48]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x462230
push dword [0x45f730]
call fcn.0040b760
add esp, 8
test eax, eax
jne 0x413f7a
push eax
push 0x462230
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x413f7a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004192a9
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x413fbe
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0041b2aa
lea ecx, [ebp - 0x20c]
sub eax, ecx
sar eax, 1
push eax
push ecx
push 0x104
push 0x462230
call fcn.0041b1ec
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004192a9
mov esp, ebp
pop ebp
ret

Function at 0x414b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0x24], 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x44
lea eax, [ebp - 0x54]
push 0
lea edi, [ebp + 0x10]
cmovae edi, dword [ebp + 0x10]
push eax
call fcn.0041a0c0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push 0
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
push edi
push ebx
mov dword [ebp - 0x54], 0x44
movq qword [ebp - 0x10], xmm0
movq qword [ebp - 8], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x414b75
mov dword [0x462214], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x46221c], eax
cmp dword [ebp + 0x24], 8
jb 0x414b86
push dword [ebp + 0x10]
call fcn.00418b1b
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4337cc
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45fc48]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004211ae
mov dword [ebp - 0x14], eax
cmp dword [0x465634], edi
jne 0x4338bd
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43384a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43399d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x43399d
push 0x45474c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43399d
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x465634], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x465638], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46563c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465644], eax
test eax, eax
je 0x4338ba
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465640], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4338e2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4338d5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4338f7
push 4
pop eax
jmp 0x43399f
cmp dword [ebp - 0x14], edi
je 0x4338f7
push dword [0x465634]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4338dc
mov eax, dword [0x465640]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x433955
cmp dword [0x465644], esi
je 0x433955
push eax
call ebx
push dword [0x465644]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x433955
test eax, eax
je 0x433955
call ecx
test eax, eax
je 0x43394a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43394a
test byte [ebp - 8], 1
jne 0x433955
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x433985
mov eax, dword [0x465638]
cmp eax, esi
je 0x433982
push eax
call ebx
test eax, eax
je 0x433982
call eax
mov edi, eax
test edi, edi
je 0x433982
mov eax, dword [0x46563c]
cmp eax, esi
je 0x433982
push eax
call ebx
test eax, eax
je 0x433982
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x465634]
call ebx
test eax, eax
je 0x43399d
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x43399f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004192a9
leave
ret
Function at 0x437f60
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004241b1
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x437f98
xor eax, eax
jmp 0x437fc4
cmp esi, dword [ebp - 4]
je 0x437fc1
cmp dword [ebp + 0xc], 0
je 0x437fc1
push dword [edi + 0x9c]
call fcn.00437b6e
push dword [edi + 0x9c]
mov esi, eax
call fcn.004224e0
pop ecx
pop ecx
cmp esi, eax
je 0x437f94
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x6f8412b5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
jmp 0x6f841337
mov eax, dword [ebp - 4]
shl eax, 2
add eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [esp], eax
call sym.inject.dll_CalcHash
cmp eax, dword [ebp + 0xc]
jne 0x6f841334
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x14]
mov ax, word [eax]
cwde
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
add eax, dword [ebp + 8]
jmp 0x6f841347
inc dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 4]
ja 0x6f841300
mov eax, 0
leave
ret

Function at 0x6f8415b8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0xa4], 0x9c
lea eax, [ebp - 0xa4]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
sub esp, 4
mov eax, dword [ebp - 0xa0]
cmp eax, 5
jbe 0x6f8415f3
mov dword [sym.inject.dll_hGlobalKey], 0x80000001
jmp 0x6f8415fd
mov dword [sym.inject.dll_hGlobalKey], 0x80000002
leave
ret