joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105d6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105d61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105d607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105d606a
add dl, dl
jne 0x105d6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105d60dc
xor eax, eax
add dl, dl
jne 0x105d6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105d617d
add dl, dl
jne 0x105d60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105d60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105d60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105d60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105d60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105d6075
mov eax, 1
add dl, dl
jne 0x105d60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105d60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105d60e1
sub eax, ebx
mov ebx, 1
jne 0x105d6128
mov ecx, 1
add dl, dl
jne 0x105d610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105d6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105d6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105d6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105d613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105d614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105d6136
cmp eax, 0x7d00
jae 0x105d616d
cmp eax, 0x500
jb 0x105d6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105d6075
cmp eax, 0x7f
ja 0x105d6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105d6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105d619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105d6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4024b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x405230
cmp edx, dword [eax]
je 0x4024db
add eax, 8
inc ecx
cmp eax, 0x4052c0
jl 0x4024cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x405230]
jne 0x402609
mov eax, dword [0x4054e8]
cmp eax, 1
je 0x4025e3
test eax, eax
jne 0x40250c
cmp dword [0x40508c], 1
je 0x4025e3
cmp edx, 0xfc
je 0x402609
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402543
lea eax, [ebp - 0x1a4]
push 0x4043a4
push eax
call fcn.00402af0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004014d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402586
lea eax, [ebp - 0x1a4]
push eax
call fcn.004014d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4043a0
push edi
call fcn.00403870
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x404384
push eax
call fcn.00402af0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402b00
lea eax, [ebp - 0xa0]
push 0x404380
push eax
call fcn.00402b00
push dword [esi + 0x405234]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402b00
push 0x12010
lea eax, [ebp - 0xa0]
push 0x404358
push eax
call fcn.004037de
add esp, 0x2c
pop edi
jmp 0x402609
lea eax, [ebp + 8]
lea esi, [esi + 0x405234]
push 0
push eax
push dword [esi]
call fcn.004014d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
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 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x10f9488
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10f9492
pushal
call 0x10f9498
pop ebp
sub ebp, 0x10
sub ebp, 0xcf9488
jmp 0x10f94ae
mov eax, 0xcf9488
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b0
mov edx, 0x874cc5e9
xor byte [eax], dl
inc eax
dec ecx
jne 0x10f94c5
jmp 0x10f94d8
bound esp, qword [edx]
pushal
aad 0xe9
jmp 0x1237fdcc
Function at 0x4184e8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x418515
call fcn.0040609e
mov dword [eax], esi
call fcn.0040608b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040b9a4
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418533
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004060b1
pop ecx
jmp 0x418510
test byte [esp + 0xc], 0x80
je 0x41853f
and eax, 0xfffffffe
jmp 0x418542
or eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x418524
xor eax, eax
pop esi
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x2e0010be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x2e0010cd
pop dword [ebp - 8]
mov eax, 0x2e0010cd
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x1561e98f
add dword [ebp - 0x18], 0x38f05bbc
mov dword [ebp - 0x14], 0x2e52ef38
sub dword [ebp - 0x14], 0xfc1fa2f3
mov dword [ebp - 0x10], 0x17cba06a
add dword [ebp - 0x10], 0x3480a3c4
mov dword [ebp - 0xc], 0xe60107c8
sub dword [ebp - 0xc], 0xe60107c8
lea eax, [ebp - 0x18]
push eax
mov eax, 0xc494a21e
sub eax, 0x9691f1de
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x989b0c29
add dword [ebp - 0x18], 0xdbd75d2d
mov dword [ebp - 0x14], 0xcc4f391
add dword [ebp - 0x14], 0x34a76de4
mov dword [ebp - 0x10], 0x1fea6b67
add dword [ebp - 0x10], 0x43850105
mov dword [ebp - 0xc], 0x355b5410
add dword [ebp - 0xc], 0xcaa4abf0
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xcca92b7
add eax, 0x21381d85
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3d73f
push 0
call eax
mov ecx, 0x4275
xor esi, esi
add esi, eax
mov edi, 0x2e04e800
add edi, dword [ebp - 8]
mov ebx, 0x955409c9
add ebx, 0x6c086f6c
xor dword [ebp - 4], ecx
mov edx, dword [edi]
mov dword [ebp - 4], 0x6eec05af
xor edx, ebx
add dword [ebp - 4], 0xd7a1c59f
mov dword [esi], edx
add dword [ebp - 4], ebx
add esi, 0x80bca467
add esi, 0x7f435b9d
add edi, 4
loop 0x2e0011e0
add eax, 0xe0b0fccc
sub eax, 0xe0b00025
mov ebx, eax
add eax, 0xa5844975
sub eax, 0xa5844970
mov ecx, 0x76a6bff0
add ecx, 0xb7594010
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x2e001992
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e03da4c]
jne 0x2e00199c
repz ret
jmp fcn.2e027a26

Function at 0x2e010c88
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e028d1f
call fcn.2e001440
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [ebp - 4], ebx
call fcn.2e0010be
test ax, ax
je 0x2e010d3c
lea eax, [ebp - 0x14]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e010d3c
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
mov edi, str.progid
push edi
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x2e010d30
mov eax, dword [ebp - 0x18]
inc eax
push eax
call fcn.2e0010be
pop ecx
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call esi
test eax, eax
jne 0x2e010d24
push dword [ebp - 0x10]
call sub.MSVCR100.dll_strlen
pop ecx
mov ecx, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.2e0010be
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x1c]
mov eax, esi
call fcn.2e001489
ret
Function at 0x2e010d44
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2e028d4a
call fcn.2e0276dc
mov eax, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov byte [ebp - 0x2d], 0
cmp dword [eax + 0x10], edi
jbe 0x2e010e1f
push eax
lea ecx, [ebp - 0x2c]
call fcn.2e0010be
push esi
mov dword [ebp - 4], edi
call sub.MSVCR100.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.2e0010be
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x2e010d90
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e010e0f
lea eax, [ebp - 0x38]
push eax
push edi
mov esi, 0x2e02b538
push esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e010e06
mov eax, dword [ebp - 0x38]
inc eax
push eax
call fcn.2e0010be
mov edi, eax
pop ecx
mov dword [ebp - 0x3c], edi
lea eax, [ebp - 0x38]
push eax
push edi
push 0
push 0
push esi
push dword [ebp - 0x34]
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e010dfb
push edi
call sub.MSVCR100.dll_strlen
pop ecx
push eax
push edi
mov ecx, ebx
call fcn.2e0010be
mov byte [ebp - 0x2d], 1
push edi
mov byte [ebp - 4], 0
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.2e0010be
mov al, byte [ebp - 0x2d]
call fcn.2e02774b
ret 8

Function at 0x2e010e2a
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x2e028d77
call fcn.2e001440
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
push 0x80000001
call esi
cmp eax, ebx
je 0x2e010e62
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call esi
cmp eax, ebx
jne 0x2e010ecd
lea eax, [ebp + 8]
push eax
push ebx
mov esi, 0x2e02b538
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e010ec4
mov eax, dword [ebp + 8]
cmp eax, ebx
jl 0x2e010ec4
inc eax
push eax
call fcn.2e0010be
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push ebx
push esi
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e010eb9
push edi
call sub.MSVCR100.dll_strlen
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push edi
call fcn.2e0010be
mov bl, 1
or dword [ebp - 4], 0xffffffff
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001489
ret 8
Function at 0x407e13
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [0x41a1f0], 0
push esi
jne 0x407e6a
cmp dword [ebp + 8], 0
jne 0x407e3f
call 0x409ad5
mov dword [eax], 0x16
call 0x409976
mov eax, 0x7fffffff
jmp 0x407e7d
cmp dword [ebp + 0xc], 0
je 0x407e28
mov esi, 0x7fffffff
cmp dword [ebp + 0x10], esi
jbe 0x407e63
call 0x409ad5
mov dword [eax], 0x16
call 0x409976
mov eax, esi
jmp 0x407e7d
pop esi
pop ebp
jmp 0x40a1d0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407e80
add esp, 0x10
pop esi
pop ebp
ret
Function at 0x40a0f6
Capabilities:
Parse pe header

Disassembly:
inc esi
jb 0x40a134
jp 0x40a173
outsb dx, byte [esi]
xor eax, 0x58423a64

Function at 0x410eae
Capabilities:
Get number of processors

Disassembly:
jae 0x410f15
insd dword es:[edi], dx
bound ebp, qword [ecx + edi*2 + 0x49]
dec ecx
outsb dx, byte gs:[esi]
je 0x410f23
je 0x410f35
and byte [esi + 0x61], ch
insd dword es:[edi], dx
cmp eax, 0x63694d22
jb 0x410f37
jae 0x410f39
je 0x410efa
dec edi
outsb dx, byte [esi]
inc ebx
outsd dx, dword [esi]
jb 0x410f39
sub eax, 0x78696e55
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
insd dword es:[edi], dx
popal
outsb dx, byte [esi]
dec esp
imul ebp, dword [esi + 0x65], 0x6c6f6f54
jae 0x410f17
push eax
popal
arpl word [ebx + 0x61], bp
and ah, byte gs:[bx + si]
jbe 0x410f5a
jb 0x410f6a
imul ebp, dword [edi + 0x6e], 0x3031223d
xor byte cs:[esi], ch
cmp eax, 0x2e303122
xor byte [esi], ch
xor dword [ecx], edi
xor byte [ecx + esi], dh
xor dword cs:[edx], esp
and byte [eax + 0x72], dh
outsd dx, dword [esi]
arpl word [ebp + 0x73], sp
arpl word [eax + 0x69], bp
je 0x410f7f
imul esi, dword [ebp + 0x63], 0x65727574
arpl word [ebp + esi*2 + 0x72], si
cmp eax, 0x646d6122
xor al, 0x22
outsb dx, byte [esi]
cmp eax, 0x62313322
xor di, word [eax]
xor esi, dword gs:[0x3e2f2022]
popal

Function at 0x410eb4
Capabilities:
Get number of processors

Disassembly:
jae 0x410f15
insd dword es:[edi], dx
bound ebp, qword [ecx + edi*2 + 0x49]
dec ecx
outsb dx, byte gs:[esi]
je 0x410f23
je 0x410f35
and byte [esi + 0x61], ch
insd dword es:[edi], dx
cmp eax, 0x63694d22
jb 0x410f37
jae 0x410f39
je 0x410efa
dec edi
outsb dx, byte [esi]
inc ebx
outsd dx, dword [esi]
jb 0x410f39
sub eax, 0x78696e55
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
insd dword es:[edi], dx
popal
outsb dx, byte [esi]
dec esp
imul ebp, dword [esi + 0x65], 0x6c6f6f54
jae 0x410f17
push eax
popal
arpl word [ebx + 0x61], bp
and ah, byte gs:[bx + si]
jbe 0x410f5a
jb 0x410f6a
imul ebp, dword [edi + 0x6e], 0x3031223d
xor byte cs:[esi], ch
cmp eax, 0x2e303122
xor byte [esi], ch
xor dword [ecx], edi
xor byte [ecx + esi], dh
xor dword cs:[edx], esp
and byte [eax + 0x72], dh
outsd dx, dword [esi]
arpl word [ebp + 0x73], sp
arpl word [eax + 0x69], bp
je 0x410f7f
imul esi, dword [ebp + 0x63], 0x65727574
arpl word [ebp + esi*2 + 0x72], si
cmp eax, 0x646d6122
xor al, 0x22
outsb dx, byte [esi]
cmp eax, 0x62313322
xor di, word [eax]
xor esi, dword gs:[0x3e2f2022]
popal
Function at 0x401b50
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401b9b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b94
test esi, esi
je 0x401b94
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b70
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d80
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401ea8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e0e
cmp eax, 4
jne 0x401e30
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e1e
cmp edx, 4
je 0x401e1e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d80

Function at 0x43b647
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edx
mov ecx, 0x6a98ee4
dec ecx
call fcn.0043b675
push ecx
pop esi
xor dword [ebx], edx
add esi, esi
inc ebx
and esi, esi
or esi, esi
cmp ebx, edi
jne fcn.0043b647
inc ecx
ret
Function at 0x1000104d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001064
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10001099
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10001095
cmp edi, eax
jae 0x10001099
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10001087
cmp edi, eax
jb 0x1000109d
xor eax, eax
jmp 0x100010a6
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x100010a9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x100010bd
push eax
call fcn.10001d85
pop ecx
or eax, 0xffffffff
jmp 0x100010df
movzx ecx, cl
push 7
xor eax, ecx
pop ecx
mov edx, eax
and edx, 1
neg edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec ecx
jns 0x100010ca
inc esi
mov cl, byte [esi]
test cl, cl
jne 0x100010c2
not eax
pop esi
ret

Function at 0x10001aca
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 9], 0x32
mov byte [ebp - 6], 0x6c
mov byte [ebp - 4], 0
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 5], 0x6c
mov byte [ebp - 7], 0x64
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0x10], 0x4b
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 8], 0x2e
mov byte [ebp - 0xd], 0x6e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
leave
ret

Function at 0x10001b10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 0x1c]
push eax
or esi, 0xffffffff
mov byte [ebp - 0x18], 0x74
mov byte [ebp - 7], 0x68
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1c], 0x43
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 5], 0x74
mov byte [ebp - 6], 0x6f
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 8], 0x73
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 0x13], 0x6c
mov byte [ebp - 4], 0
mov byte [ebp - 0x1a], 0x65
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x16], 0x54
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0x19], 0x61
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xf], 0x70
mov byte [ebp - 9], 0x70
mov byte [ebp - 0xb], 0x6e
call fcn.10001aca
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10001b9a
push 0
push 2
call eax
mov esi, eax
mov eax, esi
pop esi
leave
ret