joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53c110
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x53c270
mov ebx, eax
xor eax, eax
mov dword [esp + 4], 0
mov word [ebp - 0x28], ax
mov eax, dword [esi]
lea edi, [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], edi
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00616a30
mov eax, dword [esi]
sub esp, 8
mov edx, dword [eax + 4]
add eax, dword [eax + 0xc]
add edx, edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00616a30
mov eax, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 8], 0xf003f
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov eax, dword [ebp - 0x30]
sub esp, 0xc
cmp eax, edi
je 0x53c1d8
mov dword [esp], eax
call fcn.0063efa0
test esi, esi
je 0x53c283
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0xea60
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xea60
mov dword [ebp - 0x44], 0x15180
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 3
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov edi, eax
mov dword [esp], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
test edi, edi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
test esi, esi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x53cb90
Capabilities:
Get file version info

Disassembly:
push edi
push esi
xor eax, eax
push ebx
mov esi, ecx
mov ecx, 0x200
sub esp, 0x820
lea ebx, [esp + 0x20]
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x830]
mov eax, dword [eax]
mov edx, dword [eax + 4]
add eax, dword [eax + 0xc]
mov dword [esp], ebx
add edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
lea eax, [esp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
sub esp, 8
xor eax, eax
test edi, edi
jne 0x53cbf2
add esp, 0x820
pop ebx
pop esi
pop edi
ret 4
mov dword [esp], edi
call fcn.0063efc0
mov dword [esi], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
sub esp, 0x10
test eax, eax
jne 0x53cc44
mov eax, dword [esi]
test eax, eax
je 0x53cc29
mov dword [esp], eax
call fcn.0063ef90
mov dword [esi], 0
mov dword [esi + 4], 0
add esp, 0x820
pop ebx
xor eax, eax
pop esi
pop edi
ret 4
lea eax, [esp + 0x18]
mov dword [esp + 4], str.VarFileInfoTranslation
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.VERSION.dll_VerQueryValueW
sub esp, 0x10
test eax, eax
je 0x53cc1b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
rol eax, 0x10
mov dword [esi + 4], eax
mov eax, 1
jmp 0x53cbe6

Function at 0x53d970
Capabilities:
Check os version

Disassembly:
sub esp, 0x13c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
sub esp, 4
cmp dword [esp + 0x20], 5
seta al
add esp, 0x13c
ret
Function at 0x541390
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x220]
sub esp, 0x24c
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x230], 0x104
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [ebp - 0x23c], eax
call eax
sub esp, 8
cmp eax, 0x104
mov ebx, eax
mov edi, dword [ebp - 0x228]
jbe 0x54149f
cmp dword [ebp - 0x22c], eax
cmovle eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x240], eax
jge 0x541481
cmp ebx, 0x104
jg 0x5414d0
mov dword [ebp - 0x228], esi
lea esi, [ebp - 0x220]
mov dword [ebp - 0x230], 0x104
mov dword [ebp - 0x244], esi
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov dword [esp + 4], edi
mov dword [ebp - 0x22c], 0
add eax, eax
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x240]
cmp edi, esi
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
je 0x541500
cmp edi, eax
je 0x541481
mov dword [esp], edi
call fcn.00566118
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [ebp - 0x23c]
call eax
mov edi, dword [ebp - 0x228]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x5414c5
mov dword [esp], eax
call fcn.00566118
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x244], eax
je 0x541507
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], eax
jmp 0x54142d
mov edi, eax
jmp 0x541481
call dword [sym.imp.Qt5Core.dll_qBadAlloc__]
jmp 0x5414e5
Function at 0x5506e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x7639c0]
test esi, esi
jle 0x5507f0
mov edi, dword [0x7639c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x550714
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x550795
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x550700
mov dword [esp], eax
mov ebx, eax
call fcn.00550fd0
test eax, eax
mov edi, eax
je 0x550817
mov eax, dword [0x7639c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.005510d0
add eax, dword [edi + 0xc]
mov edx, dword [0x7639c4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x5507f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x55078e
sub eax, 4
and eax, 0xfffffffb
jne 0x5507a0
add dword [0x7639c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x7639c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x55078e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00643ae0
lea esi, [esi]
xor esi, esi
jmp 0x55071e
mov eax, dword [0x7639c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00643ae0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00643ae0
mov esi, esi
lea edi, [edi]

Function at 0x550c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7639d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7639d0]
sub esp, 4
test ebx, ebx
je 0x550ca5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x550c9e
test esi, esi
je 0x550c9e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x550c80
mov dword [esp], 0x7639d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x551230
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5513bc
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x20000000
mov eax, 0xffffffff
cmovb eax, edx
mov dword [esp], eax
call fcn.0063efc0
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
je 0x55134c
xor ebx, ebx
nop
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call fcn.0063efc0
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jne 0x5512a0
lea eax, [edi + ebx*4]
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004e0530
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5513a8
mov eax, dword [edi]
test eax, eax
je 0x5513a8
xor ebx, ebx
jmp 0x551397
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x5513a8
mov dword [esp], eax
add ebx, 1
call fcn.0063ef90
cmp dword [esp + 0x3c], ebx
jne 0x551390
mov dword [esp], edi
call fcn.0063ef90
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov esi, 0xffffffff
jmp 0x5513b0
Function at 0x561150
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x5611a3
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x561190
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x561220
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.00560a00
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.005605d0
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00560e40
mov eax, dword [0x662124]
cmp eax, 0xffffffff
je 0x561255
test eax, eax
je 0x561245
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x5611ab
mov dword [0x662124], 0
call fcn.00566310
test al, 1
mov edx, 3
jne 0x56122e
jmp 0x561233
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x56123b
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x56123b
mov dword [0x662124], 1
jmp 0x56122e
Function at 0x58b340
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e2320
mov dword [esp], 0x40
mov ecx, edi
call fcn.005807f0
sub esp, 4
mov byte [ebx + 0x24], 0
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e318c
mov dword [ebx + 4], 0x6e31c4
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 0x10
mov ecx, esi
call fcn.0057ff60
sub esp, 4
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.00478890
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x48], eax
mov dword [esp], 4
call fcn.0057ff60
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040e640

Function at 0x58e0d0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e2320
mov dword [esp], 0x40
mov ecx, edi
call fcn.005807f0
sub esp, 4
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e3b44
mov dword [ebx + 4], 0x6e3b7c
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 5
mov ecx, esi
call fcn.0057ff60
sub esp, 4
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.00478890
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x48], eax
mov dword [esp], 0x50
call fcn.0057ff60
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040e820

Function at 0x58e3a0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ecx + 8]
mov ebx, ecx
lea edi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e2320
mov dword [esp], 0x40
mov ecx, esi
call fcn.005807f0
sub esp, 4
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e3be4
mov dword [ebx + 4], 0x6e3c1c
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 8
mov ecx, edi
call fcn.0057ff60
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040d930
Function at 0x58ead0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp esi, 7
jbe 0x58eb28
lea edx, [esi - 8]
mov ecx, dword [esp + 0x1c]
shr edx, 3
lea ebp, [edx*8 + 8]
mov edx, dword [esp + 0x18]
lea edi, [eax + ebp]
lea esi, [esi]
mov ebx, dword [edx]
xor ebx, dword [ecx]
add eax, 8
add edx, 8
add ecx, 8
mov dword [eax - 8], ebx
mov ebx, dword [edx - 4]
xor ebx, dword [ecx - 4]
mov dword [eax - 4], ebx
cmp eax, edi
jne 0x58eb00
add dword [esp + 0x18], ebp
add dword [esp + 0x1c], ebp
and esi, 7
test esi, esi
je 0x58eb56
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add esi, edx
lea esi, [esi]
lea edi, [edi]
movzx ecx, byte [edx]
add edx, 1
add ebx, 1
xor cl, byte [ebx - 1]
add eax, 1
mov byte [eax - 1], cl
cmp edx, esi
jne 0x58eb40
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x58eb60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebx, 7
jbe 0x58eba9
lea edx, [ebx - 8]
shr edx, 3
lea ebp, [edx*8 + 8]
mov edx, esi
lea edi, [eax + ebp]
mov esi, esi
lea edi, [edi]
mov ecx, dword [edx]
xor dword [eax], ecx
add edx, 8
mov ecx, dword [edx - 4]
xor dword [eax + 4], ecx
add eax, 8
cmp eax, edi
jne 0x58eb90
add esi, ebp
and ebx, 7
test ebx, ebx
je 0x58ebbe
xor edx, edx
nop
movzx ecx, byte [esi + edx]
xor byte [eax + edx], cl
add edx, 1
cmp edx, ebx
jne 0x58ebb0
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x59cef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x80]
mov esi, 0x6d161d
sub esp, 0x9c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ebp - 0x8c], eax
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6d1681]
mov dword [ebp - 0x1c], eax
lea eax, [edx + 0x87]
rep movsd dword es:[edi], dword [esi]
and eax, 0xfffffff0
call fcn.0055aaf8
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x67], 0
mov dword [esp], ebx
call fcn.006312b0
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x663b90], 0
jne 0x59cfdd
mov byte [0x663b90], 1
call fcn.0063f420
test eax, eax
je 0x59d021
mov ebx, dword [eax + 4]
cmp byte [ebx], 0x2a
je 0x59d00f
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
call fcn.0055a8e0
mov dword [esp], 2
mov edi, eax
mov esi, dword [fcn.00566220]
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp], 2
je 0x59cfcd
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6d0711
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
je 0x59d017
call fcn.0063f900
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x59cf98
mov dword [esp], 2
call dword [0x662144]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
add ebx, 1
jmp 0x59cf23
mov dword [esp], edi
call fcn.00566118
jmp 0x59cfc8
mov dword [esp], 2
call dword [0x662144]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
sub edx, 1
mov dword [esp], eax
jne 0x59d0c7
call fcn.0063f290
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [esp], 2
mov ebx, eax
call esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
call fcn.0063f480
jmp 0x59d04e
call fcn.0063f290
call fcn.0063f480
jmp 0x59d04e
Function at 0x643ae0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00566220
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00566220
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x6623c4
call sub.libwinpthread_1.dll_pthread_mutex_init
mov dword [esp], 0x4a00
mov dword [0x6623d0], 0x4a00
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [0x6623cc], eax
je 0x643b98
mov dword [0x6623c8], eax
mov dword [eax], 0x4a00
mov dword [eax + 4], 0
mov dword [esp], 0x640160
call fcn.004014c0
add esp, 0x1c
ret
mov dword [0x6623d0], 0
mov dword [0x6623c8], 0
jmp 0x643b88

Function at 0x402910
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x402969
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x402953
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x402953
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402933
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x402967
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x40297f
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jle 0x40297f
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402969
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
je 0x40299f
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jg 0x40299f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x40297f
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402a40
push 0x404004
push section..data
call fcn.00402a10
add esp, 8
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x4029d8
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x4029df
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x50], eax
call fcn.00402ab0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x81b370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x81b38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x844074
push ecx
mov edi, eax
call fcn.0082f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x81b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0082f02e
push esi
call fcn.0082efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret