joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434ffa
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x45bcd0
call fcn.00435c74
mov edi, 0x94
mov eax, edi
call fcn.00434160
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [0x455350]
mov ecx, dword [esi + 0x10]
mov dword [0x4788e8], ecx
mov eax, dword [esi + 4]
mov dword [0x4788f4], eax
mov edx, dword [esi + 8]
mov dword [0x4788f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4788ec], esi
cmp ecx, 2
je 0x43505a
or esi, 0x8000
mov dword [0x4788ec], esi
shl eax, 8
add eax, edx
mov dword [0x4788f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x435095
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435095
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4350ad
cmp eax, 0x20b
je 0x43509a
mov dword [ebp - 0x1c], esi
jmp 0x4350c1
cmp dword [ecx + 0x84], 0xe
jbe 0x435095
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4350bb
cmp dword [ecx + 0x74], 0xe
jbe 0x435095
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00438760
pop ecx
test eax, eax
jne 0x4350d5
push 0x1c
call fcn.00434fd6
pop ecx
call fcn.0043794c
test eax, eax
jne 0x4350e6
push 0x10
call fcn.00434fd6
pop ecx
call fcn.0043b83a
mov dword [ebp - 4], esi
call fcn.0043aed4
test eax, eax
jge 0x4350ff
push 0x1b
call fcn.00434fb1
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47a1b0], eax
call fcn.0043b718
mov dword [0x4788d4], eax
call fcn.0043b676
test eax, eax
jge 0x435125
push 8
call fcn.00434fb1
pop ecx
call fcn.0043b443
test eax, eax
jge 0x435136
push 9
call fcn.00434fb1
pop ecx
push 1
call fcn.00435adb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x43514c
push eax
call fcn.00434fb1
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043b3e6
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x43516d
movzx eax, word [ebp - 0x40]
jmp 0x435170
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00440f2a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43518e
push edi
call fcn.00435c08
call fcn.00435c2a
jmp 0x4351c0
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00435caf
ret
Function at 0x43a6c1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43a6ef
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43a6f6
cmp ebx, dword [eax + 4]
jae 0x43a6f6
xor eax, eax
jmp 0x43a8e6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43a707
xor eax, eax
inc eax
jmp 0x43a8e5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43a71d
cmp ecx, edx
jae 0x43a862
cmp dword [eax + 4], 0
je 0x43a726
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43a70e
cmp dword [ebp + 8], 0
je 0x43a748
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43a862
cmp eax, esi
jae 0x43a862
mov eax, dword [0x478ab0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43a76d
cmp dword [esi*4 + 0x478ab8], edi
je 0x43a866
inc esi
cmp esi, eax
jl 0x43a75b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43a8e2
cmp dword [ebp - 8], 0x1000000
jne 0x43a8e2
test byte [ebp - 0xc], 0xcc
je 0x43a7eb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43a8e2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43a8e2
cmp word [eax + 0x18], 0x10b
jne 0x43a8e2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43a8e2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43a7eb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43a7eb
test byte [ecx + 0x27], 0x80
jne 0x43a862
push 1
push 0x478af8
call dword [0x455364]
test eax, eax
jne 0x43a6ff
mov ecx, dword [0x478ab0]
test ecx, ecx
mov edx, ecx
jle 0x43a81f
lea eax, [ecx*4 + 0x478ab4]
cmp dword [eax], edi
je 0x43a81f
dec edx
sub eax, 4
test edx, edx
jg 0x43a813
test edx, edx
jne 0x43a850
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43a82c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43a844
lea eax, [edx*4 + 0x478ab8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43a832
cmp ecx, 0x10
jge 0x43a850
inc ecx
mov dword [0x478ab0], ecx
push 0
push 0x478af8
call dword [0x455364]
jmp 0x43a6ff
xor eax, eax
jmp 0x43a8e5
test esi, esi
jle 0x43a6ff
mov ebx, dword [0x455364]
push 1
push 0x478af8
call ebx
test eax, eax
jne 0x43a6ff
cmp dword [esi*4 + 0x478ab8], edi
je 0x43a8bc
mov eax, dword [0x478ab0]
lea esi, [eax - 1]
test esi, esi
jl 0x43a8aa
cmp dword [esi*4 + 0x478ab8], edi
je 0x43a8a6
dec esi
jns 0x43a89a
test esi, esi
jge 0x43a8ba
cmp eax, 0x10
jge 0x43a8b5
inc eax
mov dword [0x478ab0], eax
lea esi, [eax - 1]
jmp 0x43a8bc
je 0x43a8d4
xor ecx, ecx
test esi, esi
jl 0x43a8d4
lea eax, [ecx*4 + 0x478ab8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43a8c2
push 0
push 0x478af8
call ebx
jmp 0x43a6ff
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441034
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x45d7e0
call fcn.00435c74
mov eax, dword [0x46a298]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x441141
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x4410f2
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00434160
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x4410df
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x441141
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x441141
mov al, byte [edi]
cmp al, 0x5c
je 0x441100
cmp al, 0x2f
jne 0x441105
cmp al, byte [edi + 1]
je 0x44113b
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0044128b
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x441141
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436b88
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x44115d
push edi
call fcn.00433e44
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.00435200
call fcn.00435caf
ret
Function at 0x442a02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x454240
call fcn.004352d0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.0044cb6c
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x442a50
call fcn.0044cb6c
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [0x455340]
push eax
push edi
call dword [0x455344]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x442a61
push dword [ebp - 0x18]
call dword [0x455348]
mov ebx, eax
test ebx, ebx
jne 0x442a6d
or eax, 0xffffffff
jmp 0x442b70
mov ecx, esi
call fcn.00442542
mov dword [ebp - 0x14], eax
call fcn.00444aff
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x442ab0
call dword [0x4554dc]
cmp dword [ebp - 0x14], eax
je 0x442ab0
push dword [ebp - 0x14]
call dword [0x455510]
test eax, eax
je 0x442ab0
push 0
push dword [ebp - 0x14]
call dword [0x455570]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.00445e3e
push dword [ebp - 0x14]
call fcn.00444a57
push edi
push eax
push ebx
mov ecx, esi
call fcn.004427f5
xor ebx, ebx
cmp eax, ebx
je 0x442b24
test byte [esi + 0x38], 0x10
je 0x442af2
push 4
pop edi
mov ecx, esi
call fcn.00442de6
test ah, 1
je 0x442aea
push 5
pop edi
push edi
mov ecx, esi
call fcn.004444fb
cmp dword [esi + 0x1c], ebx
je 0x442b24
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00443039
jmp 0x442b24
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x442b38
push 1
push dword [ebp - 0x14]
call dword [0x455570]
cmp dword [ebp - 0x14], ebx
je 0x442b51
call dword [0x4554f4]
cmp eax, dword [esi + 0x1c]
jne 0x442b51
push dword [ebp - 0x14]
call dword [0x4554f8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0044257c
cmp dword [esi + 0x54], ebx
je 0x442b6d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4434a5
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x454278
call fcn.004352d0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4434bf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [0x455498]
jmp 0x44350b
call fcn.00446f37
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x445583
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4455bc
push dword [esi + 0x1c]
call dword [0x455494]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0042a13d
push eax
push dword [esi + 0x1c]
call dword [0x455498]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042a030
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x4467aa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4467ed
call fcn.0044cb6c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [0x455340]
test eax, eax
je 0x4467ed
push eax
push esi
call dword [0x455344]
mov edi, eax
test edi, edi
je 0x446808
push edi
call dword [0x455348]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0044590f
test ebx, ebx
mov esi, eax
je 0x446806
test edi, edi
je 0x446806
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x448647
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45465f
call fcn.004352d0
sub esp, 0x150
mov eax, dword [0x46a298]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x44868f
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x448693
cmp eax, esi
jb 0x44869a
xor eax, eax
jmp 0x44876f
call fcn.00446f37
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.00448605
push dword [ebp + 8]
call dword [0x4553c8]
test eax, eax
jne 0x44875f
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4486ee
xor esi, esi
jmp 0x448762
test byte [ebp - 0x158], 2
jne 0x4486fe
push edi
call dword [0x45551c]
test byte [ebp - 0x158], 4
jne 0x44875f
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x44875f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x4486ea
cmp dword [ebp - 0x154], edi
jbe 0x4486ea
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x4486ea
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004021f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00435200
leave
ret 8
Function at 0x448ca7
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00435270
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x45ab44]
je 0x448dae
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x448d17
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x448d1e
cmp ebx, ebx
jne 0x448d1e
xor eax, eax
jmp 0x448db1
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x448d2b
mov byte [esi + 0x20], bl
jmp 0x448d3f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042b46d
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042b46d
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0042b46d
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x448d9a
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x448dae
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44a0e3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x46a298]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x44a132
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [0x455498]
cmp eax, esi
jne 0x44a132
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x44a13e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4554b8]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00435200
leave
ret 8
Function at 0x44be62
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x46a298]
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x44bec0
push 0x45a1cc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00435a2a
add esp, 0x10
cmp eax, 0xffffffff
je 0x44bed4
cmp eax, esi
jae 0x44bed4
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x44bed6
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [0x455358]
test eax, eax
jne 0x44be8b
jmp 0x44bed7
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00435200
leave
ret

Function at 0x44ce87
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x44cebc
cmp edi, dword [esi + 0xc]
jge 0x44cebc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44cebc
cmp edi, dword [eax + 8]
jge 0x44cebc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x44cebe
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x44cfc2
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x44cff6
jmp fcn.00441389
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x44d067
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 edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44d160
cmp eax, dword [edi + 0xc]
jge 0x44d160
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x44d0b8
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x44d149
cmp dword [ebp + 0xc], ebx
je 0x44d149
jmp 0x44d0e2
push 0x10
call fcn.0044cd53
cmp eax, ebx
je 0x44d0ce
mov ecx, eax
call fcn.0044cfb9
mov esi, eax
jmp 0x44d0d0
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x44d0f9
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x44d109
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x44d11b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00441389
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00435270
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x44d15b
cmp ecx, dword [esi + 8]
jge 0x44d15b
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44d161
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44d21f
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 0x44d24d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x44d26b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044d189
jmp 0x44d26b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x44d26b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044d189
test edi, edi
mov eax, edi
jne 0x44d255
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x478624]
test ecx, ecx
je 0x44d31e
jmp 0x44d21e
ret 8
Function at 0x982720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov edi, ecx
or esi, 0xffffffff
xor ecx, ecx
mov eax, ecx
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], ecx
test cl, 1
je 0x982747
xor eax, 0xedb88320
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x98275b
shr eax, 1
xor eax, 0xedb88320
jmp 0x98275d
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x982771
shr eax, 1
xor eax, 0xedb88320
jmp 0x982773
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x982787
shr eax, 1
xor eax, 0xedb88320
jmp 0x982789
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x98279d
shr eax, 1
xor eax, 0xedb88320
jmp 0x98279f
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x9827b3
shr eax, 1
xor eax, 0xedb88320
jmp 0x9827b5
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x9827c9
shr eax, 1
xor eax, 0xedb88320
jmp 0x9827cb
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x9827df
shr eax, 1
xor eax, 0xedb88320
jmp 0x9827e1
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x982732
xor ecx, ecx
test edx, edx
je 0x98281a
jmp 0x982800
movzx eax, byte [ecx + edi]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [ebp + eax*4 - 0x400]
inc ecx
cmp ecx, edx
jb 0x982800
not esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x982860
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
xor eax, eax
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jb 0x982871
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
lea ebx, [ebx]
mov dl, byte [ebp + esi - 0x108]
mov eax, esi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + ebx]
add edi, eax
add edi, ecx
and edi, 0xff
inc esi
mov al, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x109], al
mov byte [ebp + edi - 0x108], dl
cmp esi, 0x100
jb 0x982890
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 4], ebx
jbe 0x98292d
inc esi
and esi, 0xff
inc edi
mov dl, byte [ebp + esi - 0x108]
movzx eax, dl
add ebx, eax
and ebx, 0xff
movzx eax, byte [ebp + ebx - 0x108]
mov byte [ebp + esi - 0x108], al
mov byte [ebp + ebx - 0x108], dl
movzx ecx, byte [ebp + esi - 0x108]
movzx eax, dl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ebp + ecx - 0x108]
mov ecx, dword [ebp - 8]
xor byte [edi + ecx - 1], al
cmp edi, dword [ebp - 4]
jb 0x9828d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x982f00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push 0xf0000000
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax + 0x14]
push 0
mov eax, dword [eax + 0x20]
push 0
push 0x97ec24
mov dword [0x97ec28], eax
call dword [fcn.0097100c]
neg eax
sbb eax, eax
neg eax
ret