joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000507f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [esp + 0x30]
mov ebx, edx
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push ecx
call fcn.1001878c
mov dword [esp + 0x24], 0x61cf
add esp, 0x14
imul eax, dword [esp + 0x10], 0x7d
xor edx, edx
push 0x72
pop ecx
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xffffcf05
add dword [esp + 0x10], 0xc93f
xor dword [esp + 0x10], 0x305a56
mov dword [esp + 0x1c], 0x500
add dword [esp + 0x1c], 0xffff251a
shl dword [esp + 0x1c], 0x10
xor dword [esp + 0x1c], 0x2a1a5087
mov dword [esp + 0x14], 0xbbd8
xor dword [esp + 0x14], 0x2f6cc45b
add dword [esp + 0x14], 0xd756
shl dword [esp + 0x14], 1
xor dword [esp + 0x14], 0x5edac917
mov dword [esp + 0x20], 0x31cd
add dword [esp + 0x20], 0xc56e
xor dword [esp + 0x20], 0xe596
mov dword [esp + 0x18], 0x3f9a
add dword [esp + 0x18], 0x8cfc
mov eax, dword [esp + 0x18]
div ecx
mov dword [esp + 0x18], eax
add dword [esp + 0x18], 0xd22
xor dword [esp + 0x18], 0x7acc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov edx, dword [eax + ecx*8 + 0x78]
test edx, edx
je 0x100051cf
cmp dword [eax + ecx*8 + 0x7c], 0
je 0x100051cf
lea esi, [edx + ebx]
jmp 0x100051c8
push dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ebx]
call fcn.10007cc5
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x100051da
mov edi, dword [esi]
mov ebp, dword [esi + 0x10]
add edi, ebx
add ebp, ebx
jmp 0x100051bf
jns 0x10005199
movzx edx, ax
jmp 0x1000519e
lea edx, [ebx + 2]
add edx, eax
push dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.10013813
pop ecx
pop ecx
test eax, eax
je 0x100051da
mov ecx, dword [esp + 0x10]
add edi, 4
mov dword [ebp], eax
add ebp, 4
mov eax, dword [edi]
test eax, eax
jne 0x10005192
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1000516c
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor eax, eax
jmp 0x100051d2
Function at 0x10008e03
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
push ebp
push dword [esp + 0x40]
push edx
push ecx
call fcn.1001878c
mov dword [esp + 0x38], 0xfcb7
lea edi, [esp + 0x3c]
xor eax, eax
add esp, 0x10
stosd dword es:[edi], eax
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x10], 0x9926
shr dword [esp + 0x10], 9
shl dword [esp + 0x10], 0x10
xor dword [esp + 0x10], 0xdf41477c
xor dword [esp + 0x10], 0xdf0d3412
mov dword [esp + 0x14], 0x5bab
shr dword [esp + 0x14], 6
shl dword [esp + 0x14], 5
xor dword [esp + 0x14], 0x6c1b
mov dword [esp + 0x40], 0x21e3
shl dword [esp + 0x40], 3
add dword [esp + 0x40], 0xffff19b4
or dword [esp + 0x40], 0xaf62c075
xor dword [esp + 0x40], 0xaf62e8fd
mov eax, dword [ebp + 0x3c]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov ebx, dword [eax + ebp + 0x78]
add ebx, ebp
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, ebp
mov dword [esp + 0x20], eax
add ecx, ebp
mov eax, dword [ebx + 0x24]
add eax, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x10008ee3
mov eax, dword [ecx + edi*4]
mov edx, dword [esp + 0x14]
add eax, ebp
mov ecx, dword [esp + 0x10]
push eax
call fcn.1000c39b
xor eax, 0x5f013404
pop ecx
cmp eax, dword [esp + 0x3c]
je 0x10008eea
mov ecx, dword [esp + 0x18]
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x10008ebf
jmp 0x10008f16
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
add esi, ebp
cmp esi, ebx
jb 0x10008f16
mov eax, dword [esp + 0x24]
mov eax, dword [eax + ebp + 0x7c]
add eax, ebx
cmp esi, eax
jae 0x10008f16
mov ecx, esi
call fcn.10004343
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x100098f3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
push dword [esp + 0x24]
mov edi, dword [esp + 0x24]
mov eax, 0x10001318
push edi
push eax
push edx
push ecx
call fcn.1001878c
push edi
push eax
call fcn.1001878c
mov dword [esp + 0x2c], 0x9c58
shl dword [esp + 0x2c], 0xb
shl dword [esp + 0x2c], 7
shl dword [esp + 0x2c], 6
xor dword [esp + 0x2c], 0x58006fa3
mov dword [esp + 0x28], 0x467b
shr dword [esp + 0x28], 4
add dword [esp + 0x28], 0xeae
shr dword [esp + 0x28], 1
xor dword [esp + 0x28], 0x9b8
mov eax, dword [0x10001318]
mov ebp, dword [0x1000131c]
xor ebp, eax
mov dword [esp + 0x30], eax
mov eax, ebp
mov ecx, ebp
and eax, 0xfffffffc
mov esi, ebp
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov ecx, esi
call fcn.1000acad
mov dword [esp + 0x10], eax
pop ecx
test eax, eax
je 0x100099df
shr esi, 2
mov edx, 0x10001320
push ebx
xor ebx, ebx
and dword [esp + 0x14], ebx
lea ecx, [esi*4 + 0x10001320]
mov esi, ecx
sub esi, edx
add esi, 3
shr esi, 2
cmp ecx, edx
cmovb esi, dword [esp + 0x14]
test esi, esi
je 0x100099d8
mov ecx, eax
sub ecx, edx
mov eax, dword [edx]
xor eax, dword [esp + 0x18]
inc ebx
mov dword [ecx + edx], eax
lea edx, [edx + 4]
cmp ebx, esi
jb 0x100099c3
mov eax, dword [esp + 0x10]
pop ebx
test edi, edi
je 0x100099df
mov dword [edi], ebp
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x100099e6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
push ebx
push dword [esp + 0x20]
push ebp
push edx
push ecx
call fcn.1001878c
add esp, 0x18
mov dword [esp + 0x14], 0xab5a
mov eax, dword [esp + 0x14]
xor edx, edx
push 0x25
pop ecx
div ecx
mov dword [esp + 0x14], eax
add dword [esp + 0x14], 0xffff4706
xor dword [esp + 0x14], 0xffff4ba2
mov ecx, dword [ebx + 0x3c]
mov eax, dword [esp + 0x14]
add ecx, ebx
sub ebp, dword [ecx + 0x34]
mov edx, dword [ecx + eax*8 + 0x78]
mov dword [esp + 0x14], ebp
add edx, ebx
mov ebp, dword [ecx + eax*8 + 0x7c]
add ebp, edx
mov dword [esp + 0xc], ebp
cmp edx, ebp
jae 0x10009a9c
push esi
push edi
mov edi, dword [edx + 4]
lea esi, [edx + 8]
add edi, edx
cmp esi, edi
jae 0x10009a93
mov ebp, dword [esp + 0x1c]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x10], 0x3000
and ecx, 0xfff
and eax, 0xf000
add ecx, dword [edx]
add ecx, ebx
cmp ax, word [esp + 0x10]
jne 0x10009a88
add dword [ecx], ebp
add esi, 2
cmp esi, edi
jb 0x10009a63
mov ebp, dword [esp + 0x14]
add edx, dword [edx + 4]
cmp edx, ebp
jb 0x10009a53
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x1000c39b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push ebx
push edx
push ecx
call fcn.1001878c
mov dword [ebp - 4], 0xa6b3
add esp, 0xc
shl dword [ebp - 4], 6
xor dword [ebp - 4], 0x29acc0
mov dword [ebp + 8], 0xd994
add dword [ebp + 8], 0xffff1d19
shr dword [ebp + 8], 7
or dword [ebp + 8], 0x6a235ce6
xor dword [ebp + 8], 0x6bffffe9
mov dword [ebp + 8], 0x3e49
add dword [ebp + 8], 0xed7f
add dword [ebp + 8], 0xffff4b31
xor dword [ebp + 8], 0x76e9
cmp byte [ebx], 0
je 0x1000c469
push esi
push edi
mov edi, dword [ebp - 4]
mov dword [ebp + 8], 0xd994
add dword [ebp + 8], 0xffff1d19
shr dword [ebp + 8], 7
or dword [ebp + 8], 0x6a235ce6
xor dword [ebp + 8], 0x6bffffe9
mov cl, byte [ebp + 8]
mov esi, dword [ebp - 4]
mov dword [ebp + 8], 0x3e49
add dword [ebp + 8], 0xed7f
add dword [ebp + 8], 0xffff4b31
xor dword [ebp + 8], 0x76e9
shl esi, cl
mov cl, byte [ebp + 8]
mov edx, dword [ebp - 4]
movsx eax, byte [ebx]
mov dword [ebp - 4], eax
add dword [ebp - 4], esi
shl edx, cl
add dword [ebp - 4], edx
sub dword [ebp - 4], edi
inc ebx
cmp byte [ebx], 0
jne 0x1000c403
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000c471
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edx
push ecx
call fcn.1001878c
mov dword [esp + 0x28], 0x92a2
lea edi, [ecx + 4]
or dword [esp + 0x28], 0xe114fde5
xor dword [esp + 0x28], 0xe1148c1c
mov dword [esp + 0x24], 0x6710
shl dword [esp + 0x24], 0xa
xor dword [esp + 0x24], 0x19c20f2
mov eax, dword [ecx]
mov ebp, dword [edi]
add edi, 4
xor ebp, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
lea esi, [ebp + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esi + esi]
call fcn.1000acad
mov ebx, eax
mov dword [esp + 0x18], ebx
pop ecx
test ebx, ebx
je 0x1000c563
shr esi, 2
xor eax, eax
lea ecx, [edi + esi*4]
mov esi, ebx
mov edx, ecx
sub edx, edi
add edx, 3
shr edx, 2
cmp edi, ecx
cmova edx, eax
test edx, edx
je 0x1000c55d
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp ebp, edx
jb 0x1000c520
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov word [ebx + ebp*2], ax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x10014461
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
push edx
push ecx
call fcn.1001878c
mov dword [ebp - 4], 0x28ce
add esp, 0xc
shl dword [ebp - 4], 0xd
xor dword [ebp - 4], 0x519c10b
cmp dword [ecx + 4], 0x40
jae 0x1001448e
xor eax, eax
jmp 0x100144b7
mov ecx, dword [ecx]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1001448a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001448a
movzx edx, word [eax + 0x18]
mov ecx, dword [ebp - 4]
push esi
xor esi, esi
cmp edx, ecx
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001b32a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
push dword [esp + 0x40]
mov ebp, ecx
push dword [esp + 0x40]
push edx
push ebp
call fcn.1001878c
mov dword [esp + 0x3c], 0x5f0661
xor esi, esi
mov dword [esp + 0x40], 0x3030b4
add esp, 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x10], 0xe9d0
add dword [esp + 0x10], 0xa5c0
shl dword [esp + 0x10], 9
xor dword [esp + 0x10], 0x31f4f02
mov dword [esp + 0x18], 0x902d
shr dword [esp + 0x18], 3
xor dword [esp + 0x18], 0x49d7
mov dword [esp + 0x14], 0x3568
add dword [esp + 0x14], 0xd6fe
xor dword [esp + 0x14], 0x10c66
mov eax, dword [ebp + 0x3c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov ebx, dword [eax + ebp + 0x78]
add ebx, ebp
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, ebp
mov dword [esp + 0x24], eax
add ecx, ebp
mov eax, dword [ebx + 0x24]
add eax, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
jmp 0x1001b3f5
mov eax, dword [ecx + edi*4]
mov edx, dword [esp + 0x40]
add eax, ebp
push eax
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
call fcn.1000c56d
pop ecx
pop ecx
test eax, eax
je 0x1001b3fc
mov ecx, dword [esp + 0x1c]
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x1001b3d3
jmp 0x1001b422
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
add esi, ebp
cmp esi, ebx
jb 0x1001b422
mov ecx, dword [esp + 0x28]
xor eax, eax
mov ecx, dword [ecx + ebp + 0x7c]
add ecx, ebx
cmp esi, ecx
cmovb esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x401458
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, 0x4f95e8
cmp dword [esi], 0
jne 0x40149e
push 0x644
push 0
call sub.KERNEL32.DLL_WinExec
mov ecx, eax
test ecx, ecx
jne 0x40147b
xor eax, eax
pop esi
pop ebx
ret
mov eax, dword [0x4f95e4]
mov dword [ecx], eax
mov dword [0x4f95e4], 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 0x40148a
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esi], edx
pop esi
pop ebx
ret

Function at 0x401ae4
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 0x401b9a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4f95cc
call sub.KERNEL32.DLL_LocalAlloc
cmp byte [0x4f904d], 0
je 0x401b12
push 0x4f95cc
call sub.KERNEL32.DLL_TlsGetValue
mov eax, 0x4f95ec
call fcn.004014a8
mov eax, 0x4f95fc
call fcn.004014a8
mov eax, 0x4f9628
call fcn.004014a8
push 0xff8
push 0
call sub.KERNEL32.DLL_WinExec
mov dword [0x4f9624], eax
cmp dword [0x4f9624], 0
je 0x401b79
mov eax, 3
mov edx, dword [0x4f9624]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401b4f
mov eax, 0x4f960c
mov dword [eax + 4], eax
mov dword [eax], eax
mov dword [0x4f9618], eax
mov byte [0x4f95c4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ba1
cmp byte [0x4f904d], 0
je 0x401b99
push 0x4f95cc
call sub.KERNEL32.DLL_TlsSetValue
ret

Function at 0x401ba8
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 [0x4f95c4], 0
je 0x401c85
xor edx, edx
push ebp
push 0x401c7e
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x4f904d], 0
je 0x401bda
push 0x4f95cc
call sub.KERNEL32.DLL_TlsGetValue
mov byte [0x4f95c4], 0
mov eax, dword [0x4f9624]
push eax
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
mov dword [0x4f9624], eax
mov ebx, dword [0x4f95ec]
jmp 0x401c0d
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, dword [ebx]
cmp ebx, 0x4f95ec
jne 0x401bfb
mov eax, 0x4f95ec
call fcn.004014a8
mov eax, 0x4f95fc
call fcn.004014a8
mov eax, 0x4f9628
call fcn.004014a8
mov eax, dword [0x4f95e4]
test eax, eax
je 0x401c53
mov edx, dword [eax]
mov dword [0x4f95e4], edx
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [0x4f95e4]
test eax, eax
jne 0x401c3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401c85
cmp byte [0x4f904d], 0
je 0x401c73
push 0x4f95cc
call sub.KERNEL32.DLL_TlsSetValue
push 0x4f95cc
call sub.KERNEL32.DLL_Sleep
ret
pop ebx
pop ebp
ret
Function at 0x4021d0
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 [0x4f95c4], 0
jne 0x4021ed
call fcn.00401ae4
test al, al
je 0x4021f5
cmp ebx, 0x7ffffff8
jle 0x4021ff
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x402353
xor ecx, ecx
push ebp
push 0x40234c
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x4f904d], 0
je 0x402220
push 0x4f95cc
call sub.KERNEL32.DLL_TlsGetValue
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x402230
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x4022cf
mov eax, ebx
test eax, eax
jns 0x402245
add eax, 3
sar eax, 2
mov edx, dword [0x4f9624]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x4022cf
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x402280
mov eax, ebx
test eax, eax
jns 0x40226f
add eax, 3
sar eax, 2
mov ecx, dword [0x4f9624]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x4022a6
mov ecx, ebx
test ecx, ecx
jns 0x402289
add ecx, 3
sar ecx, 2
mov edi, dword [0x4f9624]
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 [0x4f95b4]
sub ebx, 4
add dword [0x4f95b8], ebx
call fcn.00404098
jmp 0x402353
cmp ebx, dword [0x4f961c]
jg 0x402321
sub dword [0x4f961c], ebx
cmp dword [0x4f961c], 0xc
jge 0x4022f3
add ebx, dword [0x4f961c]
xor eax, eax
mov dword [0x4f961c], eax
mov eax, dword [0x4f9620]
add dword [0x4f9620], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4f95b4]
sub ebx, 4
add dword [0x4f95b8], ebx
call fcn.00404098
jmp 0x402353
mov eax, ebx
call fcn.004020dc
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402353
cmp byte [0x4f904d], 0
je 0x40234b
push 0x4f95cc
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 0x402360
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 [0x4f95c8], eax
cmp byte [0x4f95c4], 0
jne 0x402398
call fcn.00401ae4
test al, al
jne 0x402398
mov dword [0x4f95c8], 8
mov dword [ebp - 4], 8
jmp 0x4024f9
xor ecx, ecx
push ebp
push 0x4024f2
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x4f904d], 0
je 0x4023b9
push 0x4f95cc
call sub.KERNEL32.DLL_TlsGetValue
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x4023d4
mov dword [0x4f95c8], 9
jmp 0x4024c9
dec dword [0x4f95b4]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4f95b8], eax
test bl, 1
je 0x402434
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402404
test edx, 0x80000003
je 0x402413
mov dword [0x4f95c8], 0xa
jmp 0x4024c9
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x40242b
mov dword [0x4f95c8], 0xa
jmp 0x4024c9
add ebx, edx
mov esi, eax
call fcn.00401c88
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x4f9620]
jne 0x402474
sub dword [0x4f9620], ebx
add dword [0x4f961c], ebx
cmp dword [0x4f961c], 0x3c00
jle 0x402465
call fcn.00401f78
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00404098
jmp 0x4024f9
mov edx, dword [eax]
test dl, 2
je 0x402497
and edx, 0x7ffffffc
cmp edx, 4
jge 0x402492
mov dword [0x4f95c8], 0xb
jmp 0x4024c9
or dword [eax], 1
jmp 0x4024c0
mov eax, edi
cmp dword [eax + 4], 0
je 0x4024aa
cmp dword [eax], 0
je 0x4024aa
cmp dword [eax + 8], 0xc
jge 0x4024b6
mov dword [0x4f95c8], 0xb
jmp 0x4024c9
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401c88
mov edx, ebx
mov eax, esi
call fcn.00401ef0
mov eax, dword [0x4f95c8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4024f9
cmp byte [0x4f904d], 0
je 0x4024f1
push 0x4f95cc
call sub.KERNEL32.DLL_TlsSetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x402acc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404634
test esi, esi
jne 0x402b02
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_LockResource
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404724
jmp 0x402b20
call sub.KERNEL32.DLL_LeaveCriticalSection
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e0
mov edi, eax
test esi, esi
je 0x402b20
cmp dword [ebx], 0
je 0x402b20
dec esi
jmp 0x402b09
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x4036d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4f2020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403768
push 0x80000002
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x403748
xor eax, eax
push ebp
push 0x403741
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403784
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403748
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA
ret
mov ax, word [0x4f2020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4f2020], ax
mov esp, ebp
pop ebp
ret

Function at 0x405a94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffef8
mov ebx, eax
cmp dword [ebx + 0x10], 0
jne 0x405acf
push 0x105
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_LockResource
mov eax, esp
mov dl, 1
call fcn.00405cd0
mov esi, eax
mov dword [ebx + 0x10], esi
test esi, esi
jne 0x405acf
mov eax, dword [ebx + 4]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x10]
add esp, 0x108
pop esi
pop ebx
ret
Function at 0x405b18
Capabilities:
Clear file content

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 0x405cac
call sub.KERNEL32.DLL_MulDiv
mov esi, eax
test esi, esi
je 0x405b80
push 0x405cbc
push esi
call sub.KERNEL32.DLL_MultiByteToWideChar
mov ebx, eax
test ebx, ebx
je 0x405b80
push 0x105
lea eax, [ebp - 0x24f]
push eax
mov eax, dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x405b80
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 0x405ca2
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x405bc0
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x405ca2
mov eax, dword [ebp - 4]
add eax, 2
call fcn.00405b04
mov esi, eax
cmp byte [esi], 0
je 0x405ca2
lea eax, [esi + 1]
call fcn.00405b04
mov esi, eax
cmp byte [esi], 0
je 0x405ca2
jmp 0x405bc6
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 0x405c85
lea eax, [esi + 1]
call fcn.00405b04
mov edi, eax
mov eax, edi
sub eax, esi
mov edx, eax
add edx, ebx
inc edx
cmp edx, 0x105
jg 0x405ca2
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_GlobalUnlock
mov esi, eax
cmp esi, 0xffffffff
je 0x405ca2
push esi
call sub.KERNEL32.DLL_GlobalSize
lea eax, [ebp - 0x11e]
push eax
call sub.KERNEL32.DLL_SetErrorMode
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x405ca2
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 0x405be4
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