joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4467a2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4467d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4467ee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044670c
jmp 0x4467ee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4467ee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044670c
test edi, edi
mov eax, edi
jne 0x4467d8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4714cc]
test ecx, ecx
je 0x4468a1
jmp 0x4467a1
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x6ba46a9a
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x7b0b0214
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x44540f
Capabilities:
Encode data using xor

Disassembly:
mov ah, cl
out 0xa2, eax
cmp eax, 0x13de6443
inc ebx
ficom word fs:[ebx]
ficom word fs:[ebx]
test dword [edi - 0x2b], esi
adc al, 0xf7
sub byte [esi], dh
movsd dword es:[edi], dword [esi]
push esp
test dword [edx + esi*8 + 0x1c], ebx
sbb al, 0xc7
arpl word [eax - 0x36], sp
inc ebp
sub edx, dword [ebp + 0x65]
jae 0x4453d8
retf 0x2b45
push 0xf843e107
test al, 0x4c
xchg ecx, eax
je 0x4453d2
jl 0x445411
popal
cmp byte [esi], cl
xor al, 0x1e
and ah, 0x95
xor bl, dh
jae 0x445473
xchg esi, eax
out dx, eax
xor dword [eax + 0x7f], 0xffffffec
invalid
sbb byte [edx - 0x55c00545], ah
inc edx

Function at 0x473143
Capabilities:
Encode data using xor

Disassembly:
pop ecx
push cs
test dword [esi + 0x12], eax
mul dword [edi + 0x38b3fe05]
adc ebx, ebx
jno 0x473124
pushfd
mov ch, 0x93
fld st(1)
mov bh, byte [esi]
jno 0x473130
push ebx
pop esi
adc byte [ebx + eax*4 + 0x592d710e], ah
pop ecx
sahf
xor dword [eax], edx
cmp edx, dword [eax - 0x6f565b72]
or eax, dword [ecx + 0x40]
rcl byte [edx + ebp*2], cl
jb 0x4731e6
leave
in eax, dx
or eax, 0x77081b89
imul ebp, dword [ebx + 0x60191edc], 0x53
sahf
stc
or esi, dword [edx]
mov ecx, 0x4a53eea5
sbb bl, cl
rol dword [esi - 0x79c1a503], cl
stosd dword es:[edi], eax
std
pop edx
xchg byte ds:[ebx + 0x1b19a533], ch
retf 0xaf49
xor esp, dword [ebp + 0x49ca1b19]
scasd eax, dword es:[edi]
invalid
pop ebx
aam 0x17
dec edx
jnp 0x4731e2
mov byte [0xf3813e6], al
cmpsd dword [esi], dword es:[edi]
mov cs, word [esi]
and dword [ebp + 0x79], ecx
dec eax
add cl, dh
out dx, al
adc eax, 0xc23b5330
xor ch, bl
je 0x473213
aad 0xb7
nop
sbb al, 0xf9
mov ah, 0xe3
inc ebx
mov byte [ebx], al
jl 0x47320c
jp 0x473197
jnp 0x473192
xchg edx, eax
dec esi
lea eax, [ebx]
push esi
lodsd eax, dword [esi]
add edx, dword [esi - 0x53]
aas
mov eax, 0x35247571
add ebx, dword [0xddc5f1d0]
pop edi
sbb byte [edx], al
add esi, dword [eax]
adc ah, byte [ebx + edi*4 - 0x60]
salc
iretd
Function at 0x47dd9f
Capabilities:
Encode data using xor

Disassembly:
add byte [eax - 0x398b3af3], bl
cwde
or eax, 0x67c674c5
stc
stc
cmp ch, byte [edi - 0x7a4f66d9]
jecxz 0x47dd9d
mov byte [0x61908813], al
sbb dh, byte [edx - 0x5de3aafe]
sbb al, byte [esi + 8]
cdq
cmp dword [edx], ebp
mov ecx, 0xb2fb45d7
xor bl, dl
js 0x47ddbe
mov esp, 0xed583586
cdq
and ch, 0x3d
fldenv [ecx]
rcr dword [edi + ecx*8 - 0x59], 0x18
jne 0x47ddec
jp 0x47de18
cmpsd dword [esi], dword es:[edi]
test al, 0x5e
aam 0xb1
inc eax
lahf
pop ss
outsd dx, dword [esi]
push ebx
mov dword [ebp + 0x37271f14], eax
je 0x47de2b
mov dh, 0xfb
mov dh, 0xfb
mov ebx, 0x763bfee9
jge 0x47dd9e
xchg ecx, eax
mov esi, 0x96b1fd76
xchg esi, eax
xchg dword [edx - 0x62a87f18], edx
jle 0x47de5c
pop ecx
popal
mov esp, 0x2e1b2998
and cl, 0xac
xor al, 0xbb
outsb dx, byte [esi]
invalid
das
popfd
xor bh, byte [ecx]
xchg esi, eax
mov edi, 0x94baf999
xor ah, byte [ebx + 4]
dec ecx
lds ebp, [ecx - 0x488924f7]
jbe 0x47dde4
mov byte [0x33899d7a], al
int3
ja 0x47de60
stosb byte es:[edi], al
push ss
aas
mov bh, 0xb9
arpl word [edi], di
jno 0x47ddef
sbb eax, 0x5e463d52
out dx, eax
inc ecx
div byte [ecx]
cmp byte [ebp + 0x5b], bh
pop esi
out dx, al
xlatb
cmp ebp, dword [ebx + 0x19]
cmpsb byte [esi], byte es:[edi]
rcr dh, 1
xchg ebx, eax
jns 0x47dec9
mov ah, 0x9a
push es
cli
test byte [esi + ebp + 0x201b0f9d], ch
and dh, bl
scasb al, byte es:[edi]
in al, 0x77
inc esp
outsd dx, dword [esi]
cmp esp, dword [ecx - 0x10]
cdq
jg 0x47dea2
les edx, [esi - 0x78]
pop ecx
mov bh, 0x3a
and dword [ecx], ebp
mov eax, 0x7f132691
sub dword [eax + 0x7f132691], edi
je 0x47ded2
and eax, 0xe14366d6
mov dl, 0x87
push edi
clc
test eax, 0x296ea5f1
adc edi, edi
mov cl, 0xca
xor eax, 0x73ceb6e0
mov cl, 0x72
mov byte [0x45de78fc], al
push ss
cmp eax, 0xf9e5d574
add dword [edx + eax*8 - 0x3f], ebx
in al, 0x3b
shl esp, 0x3b
xor byte [edx + 0x74], al
inc edx
rol bh, 0x3c
cwde
std
fnsave dword [esi + 0x2b]
xchg esp, eax
inc ecx
xchg esp, eax
or eax, 0x8fd11167
dec edi
aas
sar dword [esi - 0xc], 1
iretd

Function at 0x4ae367
Capabilities:
Encode data using xor

Disassembly:
sub byte [ebx - 0xf], ah
add eax, dword [edx + 0x15]
adc eax, dword [edi - 0x5a1a6b79]
salc
inc esp
mov ecx, edi
test eax, 0xb4802a25
sbb byte [esi + 0xb00be2d], dl
xchg esp, eax
adc byte [ecx - 0x53d090e9], al
shl byte [eax + 0x2ccba8b4], 0xf4
in eax, dx
xchg edi, eax
frstor dword [esp + ebp*2]
js 0x4ae332
retf 0x8a9b
Function at 0x4ba929
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33d0
cmp edx, dword [eax]
je 0x4ba94b
add eax, 8
inc ecx
cmp eax, 0x4c3460
jl 0x4ba93c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33d0]
jne 0x4baa79
mov eax, dword [0x4c7d84]
cmp eax, 1
je 0x4baa53
test eax, eax
jne 0x4ba97c
cmp dword [0x4c32fc], 1
je 0x4baa53
cmp edx, 0xfc
je 0x4baa79
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba9b3
lea eax, [ebp - 0x1a4]
push 0x4bfb70
push eax
call fcn.004bb310
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb7a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba9f6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb7a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfb6c
push edi
call fcn.004bd670
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfb50
push eax
call fcn.004bb310
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb320
lea eax, [ebp - 0xa0]
push 0x4bfb4c
push eax
call fcn.004bb320
push dword [esi + 0x4c33d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb320
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfb24
push eax
call fcn.004bd5e4
add esp, 0x2c
pop edi
jmp 0x4baa79
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33d4]
push 0
push eax
push dword [esi]
call fcn.004bb7a0
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 0x402014
Capabilities:
Create process on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, dword [ebp + 8]
mov dword [0x401024], eax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x401020
push 0x401010
push 1
push 0
push section..data
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [0x401020]
mov eax, dword [eax]
push dword [0x401020]
call dword [eax + 0xc]
mov eax, dword [0x401020]
mov eax, dword [eax]
push dword [ebp + 8]
push dword [0x401020]
call dword [eax + 0x14]
mov eax, dword [0x401020]
mov eax, dword [eax]
push dword [0x401020]
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x80001
push 0xffffffffffffffec
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetWindowLongA]
push 2
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetLayeredWindowAttributes]
push 0xa4
push 0
push 0
push 0
push 0
push 0
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetWindowPos]
push 0x104
push 0x40102c
push dword [0x401028]
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
push 0x40102c
call dword [sym.imp.kernel32.dll_lstrlenA]
mov esi, 0x40102c
add esi, eax
dec esi
cmp byte [esi], 0x2f
je 0x4020e6
cmp byte [esi], 0x5c
jne 0x4020db
mov byte [esi], 0
push dword [ebp + 0xc]
push 0x40102c
push 0x40213c
push 0x401130
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x14
push 5
push 0x401130
call dword [sym.imp.kernel32.dll_WinExec]
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
xor eax, eax
push eax
push esp
push 0
push 0
push 0x40215f
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
pop eax
popal
mov eax, dword [ebp + 8]
leave
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x72de544d
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x708e6240
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406492
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4064b6
xor eax, eax
test eax, eax
je 0x4064c8
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4064c8
xor ecx, ecx
jmp 0x4064cb
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x42ce24], 0
push esi
jne 0x4065ee
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 0x4065c8
mov dword [ecx*4 + 0x42ce20], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
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 + 0x42ce20]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc

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 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 0x402800
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40284b
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 0x402844
test esi, esi
je 0x402844
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402820
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402a30
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 0x402a80
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 0x402b58
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402abe
cmp eax, 4
jne 0x402ae0
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 0x402ace
cmp edx, 4
je 0x402ace
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.00402a30
Function at 0x44508b
Capabilities:
Encode data using xor

Disassembly:
sub dl, cl
jge 0x4450db
sbb esp, 0x72
inc edi
pushfd
or eax, 0x23a70ddc
js 0x44504d
mov ebx, 0xbbd86598
pop ecx
sub byte [ebx - 0x41ad2aa6], ah
and ebx, dword [edx - 0x2b]
push edx
mov esi, 0xe3ed90de
jecxz 0x4450a9
push edx
fucomp st(4)
int3
invalid

Function at 0x44feab
Capabilities:
Encode data using xor

Disassembly:
sbb dl, byte [eax + 0x74]
lcall 0x1a8c, 0xd623349e
inc ecx
fiadd dword [0x9fe1b7ac]
pop edx
sub al, 0xd6
sahf
and byte [ebx], al
or dword [ebx + 0x7d], ebx
stosb byte es:[edi], al
inc eax
xor dword [esi - 0x5dfda5cd], ebp
scasd eax, dword es:[edi]
fsincos
das
jae 0x44fe91
and al, 0x2e
insb byte es:[edi], dx
mov al, 0xea
mov edx, 0x96add16c
rep stosb byte es:[edi], al
mov dl, 0x9f
pop es
dec ebp
adc eax, 0x9a373662
daa
or esi, esi
pop edx
jb 0x44fef8
cmpsb byte [esi], byte es:[edi]
dec eax
or ebx, ebp
mov esi, 0x42aea200
scasb al, byte es:[edi]
inc ebx

Function at 0x45bca7
Capabilities:
Encode data using xor

Disassembly:
lodsd eax, dword [esi]
or byte [eax + 0x52fcd8cb], ah
push eax
mov eax, dword [0x56012de4]
pop edi
imul ebp, dword [eax - 0x12e1406d], 0xb6e6d261
test al, 0x93
mov edi, 0xd261ed1e
out 0xb6, al
push ecx
dec esi
pop ebp
xor ecx, eax
mov dl, 0x1a
mov eax, 0x38044a36
mov ebp, 0x26d91e3c
jns 0x45bca0
cmp dword [eax - 0x34b86138], edx
sbb bh, bh
mov cl, 0xaa
adc al, 0x95
or dword [esi], ecx
and eax, 0xaf86c24a
inc ecx
and dl, byte [edx + edi*4]
adc eax, 0x65fd2b5c
invalid

Function at 0x4b94a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c1428
cmp edx, dword [eax]
je 0x4b94c3
add eax, 8
inc ecx
cmp eax, 0x4c14b8
jl 0x4b94b4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c1428]
jne 0x4b95f1
mov eax, dword [0x4c5dac]
cmp eax, 1
je 0x4b95cb
test eax, eax
jne 0x4b94f4
cmp dword [0x4c1354], 1
je 0x4b95cb
cmp edx, 0xfc
je 0x4b95f1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b952b
lea eax, [ebp - 0x1a4]
push 0x4be960
push eax
call fcn.004b9e80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004ba310
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4b956e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004ba310
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4be95c
push edi
call fcn.004bc1e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4be940
push eax
call fcn.004b9e80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b9e90
lea eax, [ebp - 0xa0]
push 0x4be93c
push eax
call fcn.004b9e90
push dword [esi + 0x4c142c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b9e90
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4be914
push eax
call fcn.004bc154
add esp, 0x2c
pop edi
jmp 0x4b95f1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c142c]
push 0
push eax
push dword [esi]
call fcn.004ba310
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 0x401b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4063a0]
test esi, esi
jle 0x401c40
mov edi, dword [0x4063a4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401b64
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401be5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x401b50
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401c67
mov eax, dword [0x4063a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x4063a4]
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 0x401c47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401bde
sub eax, 4
and eax, 0xfffffffb
jne 0x401bf0
add dword [0x4063a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x4063a4]
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 0x401bde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
xor esi, esi
jmp 0x401b6e
mov eax, dword [0x4063a4]
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 sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4063b0]
sub esp, 4
test ebx, ebx
je 0x4020f5
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 0x4020ee
test esi, esi
je 0x4020ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020d0
mov dword [esp], 0x4063b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4027b0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x63a037d8
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x7cba23fd
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219