joyce8/EMBER2024-capa huggingface dataset:
Function at 0x611630
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68a94e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push esi
push edi
push ecx
lea edi, [ebp - 0x5c]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x735300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
xor eax, eax
mov byte [ebp - 0x5a], al
movzx ecx, byte [ebp - 0x5a]
push ecx
lea ecx, [ebp - 0x59]
call fcn.005c2150
mov ecx, eax
call fcn.00611c30
mov dword [ebp - 0x18], eax
mov esi, esp
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.005c5010
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp esi, esp
call fcn.006500f0
test eax, eax
jne 0x6116eb
push 0x6dc4a8
lea ecx, [ebp - 0x30]
call fcn.0043c4e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00611200
push 0x70f9a4
lea edx, [ebp - 0x58]
push edx
call fcn.005688e2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0064a500
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005688a8
add esp, 0x5c
cmp ebp, esp
call fcn.006500f0
mov esp, ebp
pop ebp
ret 8
Function at 0x620e40
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68c41f
mov eax, dword fs:[0]
push eax
push ecx
mov dword [ebp - 0x10], 0xcccccccc
mov eax, dword [0x735300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.005a6650
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.005a6650
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.005a6650
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x48], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.006230d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
call fcn.00621180
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
cmp ebp, esp
call fcn.006500f0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x62b490
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
jmp 0x62b4bd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x62b54d
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + str.cw]
mov byte [ebp - 5], dl
movzx eax, byte [ebp - 5]
shl eax, 8
movzx ecx, byte [ebp - 5]
shl ecx, 0x10
or eax, ecx
movzx edx, byte [ebp - 5]
shl edx, 1
movzx ecx, byte [ebp - 5]
sar ecx, 7
and ecx, 1
imul ecx, ecx, 0x11b
xor edx, ecx
shl edx, 0x18
or eax, edx
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp - 5]
shl eax, 1
movzx edx, byte [ebp - 5]
sar edx, 7
and edx, 1
imul ecx, edx, 0x11b
xor eax, ecx
movzx edx, byte [ebp - 5]
xor eax, edx
or eax, dword [ebp - 0xc]
xor edx, edx
mov cl, 0x20
call fcn.006501e0
xor ecx, ecx
or eax, dword [ebp - 0xc]
or edx, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx*8 + 0x78af50], eax
mov dword [ecx*8 + 0x78af54], edx
jmp 0x62b4b4
mov edx, 8
imul eax, edx, 0x101
mov dword [eax + 0x78af50], 0
mov dword [eax + 0x78af54], 0
mov ecx, 8
shl ecx, 8
mov dword [ecx + 0x78af50], 0
mov dword [ecx + 0x78af54], 0
mov byte [0x78b760], 1
add esp, 0xc
cmp ebp, esp
call fcn.006500f0
mov esp, ebp
pop ebp
ret
Function at 0x62b5a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
jmp 0x62b5ce
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jge 0x62b7c1
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + 0x6e0a28]
mov byte [ebp - 5], dl
movzx eax, byte [ebp - 5]
shl eax, 3
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 1
imul edx, ecx, 0x11b
xor eax, edx
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 2
imul edx, ecx, 0x11b
xor eax, edx
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 4
imul edx, ecx, 0x11b
xor eax, edx
movzx ecx, byte [ebp - 5]
shl ecx, 2
movzx edx, byte [ebp - 5]
sar edx, 6
and edx, 1
imul edx, edx, 0x11b
xor ecx, edx
movzx edx, byte [ebp - 5]
sar edx, 6
and edx, 2
imul edx, edx, 0x11b
xor ecx, edx
xor eax, ecx
movzx ecx, byte [ebp - 5]
xor eax, ecx
shl eax, 8
movzx edx, byte [ebp - 5]
shl edx, 3
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 1
imul ecx, ecx, 0x11b
xor edx, ecx
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 2
imul ecx, ecx, 0x11b
xor edx, ecx
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 4
imul ecx, ecx, 0x11b
xor edx, ecx
movzx ecx, byte [ebp - 5]
xor edx, ecx
shl edx, 0x10
or eax, edx
movzx edx, byte [ebp - 5]
shl edx, 3
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 1
imul ecx, ecx, 0x11b
xor edx, ecx
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 2
imul ecx, ecx, 0x11b
xor edx, ecx
movzx ecx, byte [ebp - 5]
sar ecx, 5
and ecx, 4
imul ecx, ecx, 0x11b
xor edx, ecx
movzx ecx, byte [ebp - 5]
shl ecx, 2
movzx esi, byte [ebp - 5]
sar esi, 6
and esi, 1
imul esi, esi, 0x11b
xor ecx, esi
movzx esi, byte [ebp - 5]
sar esi, 6
and esi, 2
imul esi, esi, 0x11b
xor ecx, esi
xor edx, ecx
movzx ecx, byte [ebp - 5]
shl ecx, 1
movzx esi, byte [ebp - 5]
sar esi, 7
and esi, 1
imul esi, esi, 0x11b
xor ecx, esi
xor edx, ecx
shl edx, 0x18
or eax, edx
mov dword [ebp - 0xc], eax
movzx eax, byte [ebp - 5]
shl eax, 3
movzx edx, byte [ebp - 5]
sar edx, 5
and edx, 1
imul ecx, edx, 0x11b
xor eax, ecx
movzx edx, byte [ebp - 5]
sar edx, 5
and edx, 2
imul ecx, edx, 0x11b
xor eax, ecx
movzx edx, byte [ebp - 5]
sar edx, 5
and edx, 4
imul ecx, edx, 0x11b
xor eax, ecx
movzx edx, byte [ebp - 5]
shl edx, 1
movzx ecx, byte [ebp - 5]
sar ecx, 7
and ecx, 1
imul ecx, ecx, 0x11b
xor edx, ecx
xor eax, edx
movzx edx, byte [ebp - 5]
xor eax, edx
or eax, dword [ebp - 0xc]
xor edx, edx
mov cl, 0x20
call fcn.006501e0
mov ecx, eax
mov esi, edx
xor edx, edx
or ecx, dword [ebp - 0xc]
or esi, edx
movzx eax, byte [ebp - 5]
cdq
or ecx, eax
or esi, edx
mov eax, dword [ebp - 4]
mov dword [eax*8 + 0x78b768], ecx
mov dword [eax*8 + 0x78b76c], esi
jmp 0x62b5c5
mov byte [0x78b761], 1
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.006500f0
mov esp, ebp
pop ebp
ret
Function at 0x641ba0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x50
push edi
lea edi, [ebp - 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0xc]
shl eax, 2
mov ecx, dword [ebx + 8]
lea edx, [ecx + eax*4]
push edx
mov eax, dword [ebx + 8]
push eax
call fcn.00642570
add esp, 8
mov dword [ebp - 4], 4
mov ecx, dword [ebx + 0xc]
lea edx, [ecx*4 - 4]
mov dword [ebp - 8], edx
jmp 0x641c0a
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
sub ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x641c60
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 8]
aesimc xmm0, xmmword [ecx + eax*4]
movdqa xmmword [ebp - 0x30], xmm0
movdqa xmm0, xmmword [ebp - 0x30]
movdqa xmmword [ebp - 0x20], xmm0
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 8]
aesimc xmm0, xmmword [eax + edx*4]
movdqa xmmword [ebp - 0x40], xmm0
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 8]
movdqu xmm0, xmmword [ebp - 0x40]
movdqu xmmword [edx + ecx*4], xmm0
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 8]
movdqu xmm0, xmmword [ebp - 0x20]
movdqu xmmword [ecx + eax*4], xmm0
jmp 0x641bf8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 8]
aesimc xmm0, xmmword [eax + edx*4]
movdqa xmmword [ebp - 0x50], xmm0
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 8]
movdqu xmm0, xmmword [ebp - 0x50]
movdqu xmmword [edx + ecx*4], xmm0
pop edi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x644390
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68f1f3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x735300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
mov dword [ebx], 0x6ab310
mov dword [ebx + 4], 0x6ab364
mov dword [ebx + 0x1c], 0x6ab3a4
mov dword [ebx + 0x30], 0x6ab3d8
mov eax, dword [ebx + 0x38]
lea ecx, [ebx + 0x38]
cmp eax, dword [ebx + 0x3c]
lea esi, [ebx + 0x3c]
mov edx, dword [ebx + 0x40]
mov edi, edx
cmovb esi, ecx
mov byte [ebp - 4], 1
xor al, al
push edx
mov ecx, dword [esi]
rep stosb byte es:[edi], al
call fcn.0059ae20
add esp, 4
mov byte [ebp - 4], 0
mov ecx, ebx
call fcn.00500410
mov eax, dword [ebx + 0x60]
lea ecx, [ebx + 0x60]
cmp eax, dword [ebx + 0x64]
lea esi, [ebx + 0x64]
mov edx, dword [ebx + 0x68]
mov edi, edx
cmovb esi, ecx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
push edx
mov ecx, dword [esi]
rep stosd dword es:[edi], eax
call fcn.0059ae20
add esp, 4
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 0x4032fb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x409004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402256
and dword [ebp - 0x14], 0
cmp dword [0x40a744], 0
mov dword [ebp - 0x18], eax
jne 0x4033ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403456
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403456
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40a744], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40a748], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40a74c], eax
call edi
push eax
call esi
mov dword [0x40a754], eax
test eax, eax
je 0x4033ae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40a750], eax
mov eax, dword [0x40a750]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x403407
cmp dword [0x40a754], ecx
je 0x403407
push eax
call esi
push dword [0x40a754]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x403407
test ebx, ebx
je 0x403407
call edi
test eax, eax
je 0x4033fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4033fe
test byte [ebp - 8], 1
jne 0x403407
or dword [ebp + 0x10], 0x200000
jmp 0x40343a
mov eax, dword [0x40a748]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call esi
test eax, eax
je 0x40343a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40343a
mov eax, dword [0x40a74c]
cmp eax, dword [ebp - 0x18]
je 0x40343a
push eax
call esi
test eax, eax
je 0x40343a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40a744]
call esi
test eax, eax
je 0x403456
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403458
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401256
leave
ret
Function at 0x402560
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 0x4025ab
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 0x4025a4
test esi, esi
je 0x4025a4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402580
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402790
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 0x4027e0
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 0x4028b8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40281e
cmp eax, 4
jne 0x402840
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 0x40282e
cmp edx, 4
je 0x40282e
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.00402790
Function at 0x401370
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, 0x4535e0
cmp dword [esi], 0
jne 0x4013b6
push 0x644
push 0
call sub.KERNEL32.DLL_WinExec
mov ecx, eax
test ecx, ecx
jne 0x401393
xor eax, eax
pop esi
pop ebx
ret
mov eax, dword [0x4535dc]
mov dword [ecx], eax
mov dword [0x4535dc], ecx
xor edx, edx
mov eax, edx
add eax, eax
lea eax, [ecx + eax*8 + 4]
mov ebx, dword [esi]
mov dword [eax], ebx
mov dword [esi], eax
inc edx
cmp edx, 0x64
jne 0x4013a2
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esi], edx
pop esi
pop ebx
ret

Function at 0x4019fc
Capabilities:
Create process on windows
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push ebp
push 0x401ab2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4535c4
call sub.KERNEL32.DLL_LocalAlloc
cmp byte [0x453045], 0
je 0x401a2a
push 0x4535c4
call sub.KERNEL32.DLL_TlsGetValue
mov eax, 0x4535e4
call fcn.004013c0
mov eax, 0x4535f4
call fcn.004013c0
mov eax, 0x453620
call fcn.004013c0
push 0xff8
push 0
call sub.KERNEL32.DLL_WinExec
mov dword [0x45361c], eax
cmp dword [0x45361c], 0
je 0x401a91
mov eax, 3
mov edx, dword [0x45361c]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401a67
mov eax, 0x453604
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x453610], eax
mov byte [0x4535bc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ab9
cmp byte [0x453045], 0
je 0x401ab1
push 0x4535c4
call sub.KERNEL32.DLL_TlsSetValue
ret

Function at 0x401ac0
Capabilities:
Get thread local storage value
Set thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4535bc], 0
je 0x401b9d
xor edx, edx
push ebp
push 0x401b96
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x453045], 0
je 0x401af2
push 0x4535c4
call sub.KERNEL32.DLL_TlsGetValue
mov byte [0x4535bc], 0
mov eax, dword [0x45361c]
push eax
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [0x45361c], eax
mov ebx, dword [0x4535e4]
jmp 0x401b25
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, dword [ebx]
cmp ebx, 0x4535e4
jne 0x401b13
mov eax, 0x4535e4
call fcn.004013c0
mov eax, 0x4535f4
call fcn.004013c0
mov eax, 0x453620
call fcn.004013c0
mov eax, dword [0x4535dc]
test eax, eax
je 0x401b6b
mov edx, dword [eax]
mov dword [0x4535dc], edx
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [0x4535dc]
test eax, eax
jne 0x401b54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401b9d
cmp byte [0x453045], 0
je 0x401b8b
push 0x4535c4
call sub.KERNEL32.DLL_TlsSetValue
push 0x4535c4
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret
Function at 0x4020e8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4535bc], 0
jne 0x402105
call fcn.004019fc
test al, al
je 0x40210d
cmp ebx, 0x7ffffff8
jle 0x402117
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40226b
xor ecx, ecx
push ebp
push 0x402264
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x453045], 0
je 0x402138
push 0x4535c4
call sub.KERNEL32.DLL_TlsGetValue
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x402148
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x4021e7
mov eax, ebx
test eax, eax
jns 0x40215d
add eax, 3
sar eax, 2
mov edx, dword [0x45361c]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x4021e7
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x402198
mov eax, ebx
test eax, eax
jns 0x402187
add eax, 3
sar eax, 2
mov ecx, dword [0x45361c]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x4021be
mov ecx, ebx
test ecx, ecx
jns 0x4021a1
add ecx, 3
sar ecx, 2
mov edi, dword [0x45361c]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4535ac]
sub ebx, 4
add dword [0x4535b0], ebx
call fcn.004038f8
jmp 0x40226b
cmp ebx, dword [0x453614]
jg 0x402239
sub dword [0x453614], ebx
cmp dword [0x453614], 0xc
jge 0x40220b
add ebx, dword [0x453614]
xor eax, eax
mov dword [0x453614], eax
mov eax, dword [0x453618]
add dword [0x453618], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4535ac]
sub ebx, 4
add dword [0x4535b0], ebx
call fcn.004038f8
jmp 0x40226b
mov eax, ebx
call fcn.00401ff4
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40226b
cmp byte [0x453045], 0
je 0x402263
push 0x4535c4
call sub.KERNEL32.DLL_TlsSetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402278
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4535c0], eax
cmp byte [0x4535bc], 0
jne 0x4022b0
call fcn.004019fc
test al, al
jne 0x4022b0
mov dword [0x4535c0], 8
mov dword [ebp - 4], 8
jmp 0x402411
xor ecx, ecx
push ebp
push 0x40240a
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x453045], 0
je 0x4022d1
push 0x4535c4
call sub.KERNEL32.DLL_TlsGetValue
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x4022ec
mov dword [0x4535c0], 9
jmp 0x4023e1
dec dword [0x4535ac]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4535b0], eax
test bl, 1
je 0x40234c
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x40231c
test edx, 0x80000003
je 0x40232b
mov dword [0x4535c0], 0xa
jmp 0x4023e1
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x402343
mov dword [0x4535c0], 0xa
jmp 0x4023e1
add ebx, edx
mov esi, eax
call fcn.00401ba0
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x453618]
jne 0x40238c
sub dword [0x453618], ebx
add dword [0x453614], ebx
cmp dword [0x453614], 0x3c00
jle 0x40237d
call fcn.00401e90
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004038f8
jmp 0x402411
mov edx, dword [eax]
test dl, 2
je 0x4023af
and edx, 0x7ffffffc
cmp edx, 4
jge 0x4023aa
mov dword [0x4535c0], 0xb
jmp 0x4023e1
or dword [eax], 1
jmp 0x4023d8
mov eax, edi
cmp dword [eax + 4], 0
je 0x4023c2
cmp dword [eax], 0
je 0x4023c2
cmp dword [eax + 8], 0xc
jge 0x4023ce
mov dword [0x4535c0], 0xb
jmp 0x4023e1
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401ba0
mov edx, ebx
mov eax, esi
call fcn.00401e08
mov eax, dword [0x4535c0]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402411
cmp byte [0x453045], 0
je 0x402409
push 0x4535c4
call sub.KERNEL32.DLL_TlsSetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4044c8
Capabilities:
Hide graphical window

Disassembly:
test eax, eax
je 0x4044dc
push eax
push 0
call sub.user32.dll_ShowWindow
test eax, eax
je 0x4044c0
ret
Function at 0x404eb8
Capabilities:
Clear file content
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x40504c
call sub.KERNEL32.DLL_LoadResource
mov esi, eax
test esi, esi
je 0x404f20
push 0x40505c
push esi
call sub.KERNEL32.DLL_LockResource
mov ebx, eax
test ebx, ebx
je 0x404f20
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x404f20
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
jmp 0x405042
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x404f60
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x405042
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00404ea4
mov esi, eax
cmp byte [esi], 0
je 0x405042
lea eax, [esi + 1]
call fcn.00404ea4
mov esi, eax
cmp byte [esi], 0
je 0x405042
jmp 0x404f66
mov esi, dword [ebp - 4]
add esi, 2
mov ebx, esi
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
jmp 0x405025
lea eax, [esi + 1]
call fcn.00404ea4
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x405042
inc eax
push eax
push esi
lea eax, [ebp - 0x24f]
add eax, ebx
push eax
call sub.KERNEL32.DLL_SetEndOfFile
lea eax, [ebp - 0x14a]
push eax
lea eax, [ebp - 0x24f]
push eax
call sub.KERNEL32.DLL_GlobalReAlloc
mov esi, eax
cmp esi, 0xffffffff
je 0x405042
push esi
call sub.KERNEL32.DLL_GlobalHandle
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetErrorMode
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x405042
mov byte [ebp + ebx - 0x24f], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x11e]
push eax
lea eax, [ebp - 0x24f]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_SetEndOfFile
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetErrorMode
inc eax
add ebx, eax
mov esi, edi
cmp byte [esi], 0
jne 0x404f84
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret