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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [esp + 0x78], eax
test ecx, ecx
je 0x42cec1
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov word [esp + 0x50], 0x701
mov dword [esp + 0x54], ecx
cmp byte [eax + 0xb], 0
jns 0x42ce1f
mov eax, dword [eax]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x60], eax
xor eax, eax
dec eax
lea ecx, [esp + 0x48]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp], ecx
call fcn.00445310
mov eax, dword [0x4d04e8]
mov ecx, dword [0x4c1b28]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42cf3d
mov dword [esp], 0x4b1b7c
call fcn.00445c70
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp], edi
lea edi, [esp + 0x50]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
pxor xmm0, xmm0
movdqu xmmword [esp + 0x28], xmm0
movaps xmm0, xmmword [0x4b0590]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0x4d
mov ecx, esi
call fcn.0042f050
sub esp, 0x44
cmp byte [edi], 0
jne 0x42cf25
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00453803
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + ebx*8 + 0x60]
test esi, esi
je 0x42cf31
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, esi
call edi
sub esp, 4
mov al, byte [esp + ebx + 0x51]
jmp 0x42cf2d
mov esi, dword [esp + ebx*8 + 0x60]
test esi, esi
je 0x42cf31
lea ecx, [esi + 0x5c]
call fcn.00439990
lea ecx, [esi + 0x28]
call fcn.004369e0
mov ecx, esi
call fcn.00439b10
mov dword [esp], esi
call fcn.00452d9c
jmp 0x42cf31
mov al, byte [esp + ebx + 0x51]
cmp al, 8
je 0x42ced4
cmp al, 9
je 0x42cefc
inc ebx
movzx eax, byte [esp + 0x50]
cmp ebx, eax
jae 0x42cec1
jmp 0x42cf25
mov dword [esp], 0x4d04e8
call fcn.00452e17
cmp dword [0x4d04e8], 0xffffffff
jne 0x42ce5b
mov dword [esp], 0
mov ecx, 0x4d02e8
call fcn.0042b3f0
sub esp, 4
mov dword [esp], 0x4d04e8
call fcn.00452e8d
jmp 0x42ce5b
Function at 0x42e230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e2a3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x42e28d
cmp dword [ebp - 0x18], 4
jne 0x42e28d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x42e28d

Function at 0x42e2b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.00454120
mov esi, ecx
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.00456480
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e33f
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x42e343
mov ecx, esi
push edi
call fcn.004218a0
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x42e326
cmp eax, 2
jne 0x42e385
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.00456480
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x42e38c
mov ecx, esi
push ebx
jmp 0x42e31f
mov esi, 0x3f4
jmp 0x42e326
mov esi, 0xea
jmp 0x42e326

Function at 0x42ec70
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c1a90]
cmp eax, 0xffffffff
je 0x42ec90
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
jmp 0x42ec8e
Function at 0x42eca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x4c1a90]
cmp eax, 0xffffffff
je 0x42ed67
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x42ed67
mov eax, dword [0x4d114c]
mov ecx, dword [0x4c1b28]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42ed71
mov edi, dword [0x4d1148]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x42edb6
mov ecx, dword [0x4d0544]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x4d0548], 0
jne 0x42edc2
lea eax, [eax*4 + 0x4d0548]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x4d054c], ecx
mov dword [0x4d0544], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x4d0550]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x42edd4
cmp eax, 0x100
jge 0x42edd7
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.0042ede0
jmp 0x42ecc5
push 0x4d114c
call fcn.00452e17
add esp, 4
cmp dword [0x4d114c], 0xffffffff
jne 0x42ece6
push 4
call fcn.00452d6c
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.00444bf0
mov dword [0x4d1148], edi
push 0x4d114c
call fcn.00452e8d
add esp, 4
jmp 0x42ece6
mov ecx, edi
call fcn.00444c00
jmp 0x42ecfb
inc edx
cmp edx, 0x100
jne 0x42ed04
jmp 0x42ed4b
int3
int3

Function at 0x42ede0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x4c1a90]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x42ee8d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x42eed6
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.00456480
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.00431270
add esp, 8
push edi
call fcn.00452dd3
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.00455f00
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.00431270
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.00431250
add esp, 4
test al, al
je 0x42eed9
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x42eedc
xor eax, eax
dec eax
lock cmpxchg dword [0x4c1a90], ecx
je 0x42ee11
push ecx
call fcn.004a3a80
add esp, 4
mov ecx, dword [0x4c1a90]
mov dword [ebp - 0x814], ecx
jmp 0x42ee11
int3
int3
push esi
call fcn.00431250
add esp, 4
test al, al
je 0x42ef04
cmp dword [ebp - 0x814], 0xffffffff
je 0x42ef04
push 0xffffffffffffffff
call fcn.004a3a80
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x42eeab
int3
Function at 0x42f3d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00442520
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x42f3fe
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x42f41c
push dword [ebp - 0x1c]
call fcn.00452d9c
add esp, 4
cmp dword [ebp + 8], 0
je 0x42f4b4
test esi, esi
je 0x42f4b4
xor eax, eax
dec eax
mov ecx, esi
add ecx, esi
cmovb ecx, eax
push ecx
call fcn.00452dd3
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.00442520
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x42f45e
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x42f478
push dword [ebp - 0x1c]
call fcn.00452d9c
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x42f4cd
push edi
call fcn.0046afb0
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.00442860
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x42f4d0
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.00452ddc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.00452d9c
add esp, 4
jmp 0x42f49c
Function at 0x435d90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x4be014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
cmp eax, 3
je 0x435dc0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
lea eax, [ebp - 0x14]
mov dword [eax], 0x435eb0
push 0
push eax
push 0x435d70
push 0x4d12f8
call dword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x435e9f
cmp dword [0x4d12fc], 0
jne 0x435dac
push dword [0x4d1300]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x435dac
mov esi, eax
mov eax, 0x4d1304
push eax
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ebx, dword [0x4d1308]
mov edi, dword [0x4d130c]
mov eax, dword [0x4d1310]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4d1314]
mov dword [ebp - 0x1c], eax
mov eax, 0x4d1304
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
je 0x435e4c
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov ecx, ebx
call dword [section..00cfg]
push dword [ebp - 0x20]
call ebx
add esp, 4
test edi, edi
je 0x435e61
mov ebx, dword [esi + 4]
mov ecx, edi
call dword [section..00cfg]
push ebx
call edi
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x435e79
mov edi, dword [esi + 8]
mov ecx, dword [ebp - 0x18]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x435e91
mov edi, dword [esi + 0xc]
mov ecx, dword [ebp - 0x1c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
push esi
call fcn.00450550
add esp, 4
jmp 0x435dac
call fcn.004661b0
int3

Function at 0x43a7a0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0xb]
test dl, dl
jns 0x43a7b5
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, edx
cmp edx, 4
jb 0x43a7e6
nop dword [eax]
imul esi, dword [eax], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, esi
add eax, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x43a7c0
cmp edx, 1
je 0x43a809
cmp edx, 3
je 0x43a7f7
cmp edx, 2
je 0x43a800
jmp 0x43a814
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop esi
pop edi
pop ebp
ret 4
Function at 0x4401c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x4401fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x440212
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4401f4
mov dword [esi], ebx
call fcn.00445930
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x440229
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.00445930
push dword [esi]
call fcn.00447130
add esp, 4
mov dword [esi], 0
jmp 0x4401e5
int3
Function at 0x445940
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4d02b4]
mov ecx, dword [0x4c1b28]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x445991
mov eax, dword [0x4d02b0]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4d02b4
call fcn.00452e17
add esp, 4
cmp dword [0x4d02b4], 0xffffffff
jne 0x445973
lea edi, [ebp - 0x128]
xor esi, esi
push 0x118
push esi
push edi
call fcn.00456480
add esp, 0xc
mov dword [edi - 4], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ebx, [ebp - 0x130]
mov dword [ebx], esi
push ebx
push esi
push esi
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.00452d6c
add esp, 4
mov esi, eax
mov ebx, dword [ebx]
mov eax, dword [0x4d02e4]
mov ecx, dword [0x4c1b28]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x445a3a
mov ecx, esi
push ebx
push 0x4d02c0
push edi
call fcn.0042a560
mov dword [0x4d02b0], esi
push 0x4d02b4
call fcn.00452e8d
add esp, 4
jmp 0x445973
push 0x4d02e4
call fcn.00452e17
add esp, 4
cmp dword [0x4d02e4], 0xffffffff
jne 0x445a14
xorps xmm0, xmm0
movups xmmword [0x4d02d0], xmm0
movups xmmword [0x4d02c0], xmm0
mov dword [0x4d02e0], 0
push 0x4d02c0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x4d02e4
call fcn.00452e8d
add esp, 4
jmp 0x445a14
Function at 0x447ab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x140c
call fcn.00454120
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x4c1a90]
cmp eax, 0xffffffff
je 0x447ae2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
jne 0x447af7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
add esp, 0x140c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, ebx
and eax, 0xfffffffc
lea ecx, [ebp - 0x810]
push 0x800
push eax
push ecx
call fcn.00455f00
add esp, 0xc
mov ecx, dword [0x4c1a90]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call fcn.00431270
add esp, 8
and ebx, 0xfffffffc
je 0x447b3b
push ebx
call fcn.00452ddc
add esp, 4
mov eax, dword [0x4d114c]
mov ecx, dword [0x4c1b28]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x447c23
mov esi, dword [0x4d1148]
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x447c68
lea eax, [ebp - 0x1410]
push 0xc00
push 0x4d0548
push eax
call fcn.00455f00
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov ecx, 0x100
lea edx, [ebp - 0x1408]
test al, 1
je 0x447c0e
mov dword [ebp - 0x1418], ecx
xor esi, esi
mov edi, edx
xor eax, eax
jmp 0x447bbc
inc esi
add edi, 0xc
cmp esi, 0x100
je 0x447c00
mov ebx, dword [ebp + esi*8 - 0x810]
test ebx, ebx
je 0x447bb0
cmp dword [edi - 8], 0
je 0x447bb0
mov ecx, dword [ebp + esi*8 - 0x80c]
cmp ecx, dword [edi]
jne 0x447bb0
mov ecx, dword [edi - 4]
test ecx, ecx
je 0x447bb0
mov dword [ebp + esi*8 - 0x810], 0
call dword [section..00cfg]
push ebx
call ecx
lea edx, [ebp - 0x1408]
add esp, 4
mov al, 1
jmp 0x447bb0
mov esi, dword [ebp - 0x1418]
lea ecx, [esi - 1]
cmp esi, 2
jae 0x447b9e
push 2
push dword [ebp - 0x1414]
call fcn.00431270
add esp, 8
jmp 0x447ae2
push 0x4d114c
call fcn.00452e17
add esp, 4
cmp dword [0x4d114c], 0xffffffff
jne 0x447b5c
push 4
call fcn.00452d6c
add esp, 4
mov esi, eax
mov ecx, eax
call fcn.00444bf0
mov dword [0x4d1148], esi
push 0x4d114c
call fcn.00452e8d
add esp, 4
jmp 0x447b5c
mov ecx, esi
call fcn.00444c00
jmp 0x447b71
Function at 0x4491c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
movzx eax, byte [ecx + 0x27]
test al, al
js 0x44927a
test eax, eax
jne 0x44926f
cmp dword [esi + 0x28], 0
jne 0x44926f
mov byte [esi + 0x2c], 0
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
je 0x4492a9
lea edi, [esi + 0x10]
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.0043caf0
cmp eax, 0xffffffff
jne 0x44929a
cmp dword [esi + 0x30], 1
je 0x449282
mov eax, dword [esi + 8]
mov bl, 1
cmp eax, dword [esi + 0xc]
je 0x4492af
nop dword [eax]
movsx eax, byte [eax]
mov ecx, edi
push 0
push eax
call fcn.0043caf0
cmp eax, 0xffffffff
jne 0x4492af
mov eax, dword [esi + 8]
cmp dword [esi + 0x30], 1
je 0x449256
inc eax
mov dword [esi + 8], eax
cmp eax, dword [esi + 0xc]
jne 0x449230
jmp 0x4492af
mov cl, byte [eax]
add cl, 0xf7
cmp cl, 0x17
ja 0x44924b
movzx ecx, cl
mov edx, 0x80001b
bt edx, ecx
jae 0x44924b
jmp 0x4492af
mov ecx, esi
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004a28b0
mov eax, dword [esi + 0x20]
jmp 0x4491d4
mov eax, dword [esi + 4]
mov al, byte [eax]
add al, 0xf7
cmp al, 0x17
ja 0x44921e
movzx eax, al
mov ecx, 0x80001b
bt ecx, eax
jae 0x44921e
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
cmp eax, dword [esi + 0xc]
jne 0x4491fc
mov byte [esi + 0x2c], 1
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44a5b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d1238]
mov ecx, dword [0x4c1b28]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x44a5db
mov ecx, 0x4d1230
pop ebp
jmp fcn.00447c80
push 0x4d1238
call fcn.00452e17
add esp, 4
cmp dword [0x4d1238], 0xffffffff
jne 0x44a5d0
xor eax, eax
mov dword [0x4d1234], eax
mov dword [0x4d1230], eax
mov ecx, 0x4d1230
push eax
call fcn.0042efd0
push 0x4d1238
call fcn.00452e8d
add esp, 4
jmp 0x44a5d0
Function at 0x44bd60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0xc], ebx
sete al
xor ecx, ecx
cmp dword [ebp + 8], ebx
sete cl
push ebx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], ebx
test eax, eax
je 0x44bdde
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x44bdc7
lea eax, [edi + 1]
cmp eax, 2
jb 0x44bdab
mov dword [esi], edi
call fcn.00445930
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
inc eax
cmp eax, 1
jbe 0x44bde2
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
call fcn.00403d70
push dword [esi]
call fcn.00447130
add esp, 4
mov dword [esi], 0
jmp 0x44bd9c
mov byte [esi + 4], 1
int3
Function at 0x465d8a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c2528]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x465dca
cmp byte [ebx], 0xa
jne 0x465dca
or byte [eax + edi + 0x28], 4
jmp 0x465dcf
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x465ecd
mov al, byte [edx]
cmp al, 0x1a
je 0x465eaf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x465dfe
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x465e23
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x465e2d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x465de0
jmp 0x465ecd
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x465eaa
cmp dword [ebp - 0xc], 0
je 0x465eaa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4c2528]
test byte [eax + edi + 0x28], 0x48
je 0x465e84
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x465e6f
mov byte [esi], dl
jmp 0x465e80
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c2528]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x465ecd
cmp byte [ebp - 1], 0xa
jne 0x465e93
cmp esi, ebx
jne 0x465e93
mov byte [esi], 0xa
jmp 0x465ecc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004701b0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x465ecd
mov byte [esi], 0xd
jmp 0x465ecc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4c2528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x465ec9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x465ecd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x465ed6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4c2528]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x465f19
cmp word [esi], dx
jne 0x465f19
or byte [edi + eax + 0x28], 4
jmp 0x465f1e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x466057
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x466037
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x465f60
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x465f96
cmp eax, edx
jae 0x465fa2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x465f38
jmp 0x466057
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x466033
cmp dword [ebp - 0x14], 0
je 0x466033
mov eax, dword [ebx*4 + 0x4c2528]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46600b
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x466051
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4c2528]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x4c2528]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4c2528]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x466054
pop ebx
cmp word [ebp - 4], bx
jne 0x46601c
cmp esi, dword [ebp + 0xc]
jne 0x46601c
mov word [esi], bx
jmp 0x466054
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004701b0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x466057
push 0xd
jmp 0x466050
mov ecx, dword [ebx*4 + 0x4c2528]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46604e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x466057
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret