joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482c90
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x482d8f
cmp word [edx], 0
je 0x482d8f
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x482cbe
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x482d14
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482cd0
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x482cf6
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004f0030
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
xor eax, eax
cmp ecx, 2
push edx
setne al
dec eax
and eax, 0xfde9
push eax
call fcn.004f0150
mov edi, eax
test edi, edi
je 0x482d0a
cmp dword [esi + 4], 0
je 0x482d62
push dword [esp + 0x14]
push edi
push esi
call fcn.004f0030
push edi
push 0
push dword [0xc62924]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x4840c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x10], 0
xor esi, esi
mov dword [esp + 0x14], 0
call fcn.004f0dd0
mov edi, eax
test edi, edi
je 0x4841d2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4841d2
push ebp
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4841d1
push ebx
push 0x100000
push esi
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4841c9
push dword [esp + 0x28]
mov eax, dword [edi + 4]
call eax
mov esi, eax
test esi, esi
je 0x4841ba
mov ecx, dword [edi + 8]
push 0
push esi
call ecx
push 0
push 0
push dword [esp + 0x2c]
push edi
push esi
call fcn.004f6040
cmp dword [esp + 0x18], 0
jl 0x484180
mov eax, dword [esp + 0x14]
jg 0x48416d
test eax, eax
je 0x484180
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esp, [esp]
push 0
lea eax, [esp + 0x14]
push eax
push 0x100000
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
mov eax, dword [edi + 0xc]
push ebx
push esi
call eax
cmp dword [esp + 0x10], 0x100000
je 0x484180
mov eax, dword [edi + 0x10]
push esi
call eax
push dword [esp + 0x24]
push edi
push esi
call fcn.004f61e0
push ebx
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
push dword [esp + 0x24]
push esi
call fcn.004f5fd0
test esi, esi
je 0x4841e6
mov eax, dword [edi + 0x14]
push esi
call eax
pop edi
pop esi
add esp, 0xc
ret 0x10

Function at 0x48459d
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x4845c5
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14

Function at 0x4845e8
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x484610
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x14]
mov eax, dword [esi + 0x90]
push dword [esp + 0x14]
add eax, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x14]
push eax
push esi
call dword [esi + 4]
pop esi
ret 0x10

Function at 0x484636
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov ecx, dword [edx + 0x74]
cmp ecx, 2
je 0x48465b
cmp ecx, 3
je 0x48465b
cmp ecx, 8
je 0x48465b
cmp ecx, 0xc
jne 0x484669
mov eax, dword [esp + 4]
test eax, eax
je 0x484669
mov dword [edx + 0xb8], eax
ret 4
Function at 0x48466c
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
mov esi, dword [edx + 0x2c]
mov edi, dword [edx + 0x90]
mov ebx, dword [edx + 0x8c]
test esi, esi
je 0x4846ac
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
add ecx, edi
push 0xff
push ecx
add eax, ebx
push eax
push dword [ebp + 8]
push edx
call esi
jmp 0x4846bf
mov eax, dword [ebp + 0x10]
add eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
push dword [ebp + 8]
push edx
call dword [edx + 0x24]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4846c6
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [ebp + 0x14], 0
mov ecx, eax
jle 0x484704
cmp dword [ebp + 0x18], 0
jle 0x484704
push dword [ebp + 0x18]
mov eax, dword [ecx + 0x90]
push dword [ebp + 0x14]
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ecx + 0x8c]
add eax, dword [ebp + 0xc]
push eax
push dword [ebp + 8]
push ecx
call dword [ecx + 0x28]
pop ebp
ret 0x14

Function at 0x484838
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
add edx, dword [eax + 0x8c]
add esi, dword [eax + 0x90]
mov ecx, dword [eax + 0x74]
cmp ecx, 2
je 0x484871
cmp ecx, 3
je 0x484871
cmp ecx, 8
je 0x484871
cmp ecx, 0xc
jne 0x4848c4
mov ecx, dword [ebp + 0x10]
push edi
xor edi, edi
inc edi
test ecx, ecx
jns 0x484883
neg ecx
mov dword [ebp + 0x10], ecx
jmp 0x484888
jne 0x484888
mov dword [ebp + 0x10], edi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jns 0x484896
neg ecx
mov dword [ebp + 0x14], ecx
jmp 0x48489b
jne 0x48489b
mov dword [ebp + 0x14], edi
fild dword [ebp + 0x10]
mov dword [eax + 0x118], edx
mov dword [eax + 0x11c], esi
mov dword [eax + 0xb4], 0x4847c3
pop edi
fstp dword [eax + 0x120]
fild dword [ebp + 0x14]
fstp dword [eax + 0x124]
pop esi
pop ebp
ret 0x10

Function at 0x4848c9
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x4848ef
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x10]
mov eax, dword [esi + 0x90]
add eax, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [esp + 0x10]
push eax
push esi
call dword [esi + 0x3c]
pop esi
ret 0x10
Function at 0x484911
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov ecx, dword [ebx + 0x74]
cmp ecx, 2
je 0x48493e
cmp ecx, 3
je 0x48493e
cmp ecx, 8
je 0x48493e
cmp ecx, 0xc
jne 0x484a13
fldz
fld dword [ebp + 8]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x484953
fstp st(0)
fstp dword [ebp + 8]
jmp 0x484964
fstp st(1)
fld1
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x48494e
fstp st(0)
push esi
mov esi, dword [ebx + 0xbc]
push edi
xor edi, edi
jmp 0x484990
fld dword [esi + 4]
fld dword [ebp + 8]
fld st(0)
fucom st(2)
fnstsw ax
test ah, 0x44
jnp 0x4849b0
fstp st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x484996
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x484970
jmp 0x4849bc
push 0x18
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x4849bc
mov dword [edx], esi
jmp 0x4849d5
mov edx, esi
fstp st(2)
fstp st(1)
test edx, edx
jne 0x4849e6
fstp st(0)
push 0x18
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
je 0x484a11
and dword [edx], 0
fld dword [ebp + 8]
test edi, edi
je 0x4849e0
mov dword [edi], edx
jmp 0x4849e6
mov dword [ebx + 0xbc], edx
mov ecx, dword [ebp + 0xc]
movzx eax, cl
mov dword [edx + 8], eax
mov eax, ecx
sar eax, 8
movzx eax, al
mov dword [edx + 0xc], eax
mov eax, ecx
sar eax, 0x10
movzx eax, al
sar ecx, 0x18
mov dword [edx + 0x10], eax
movzx eax, cl
fstp dword [edx + 4]
mov dword [edx + 0x14], eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x484a31
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0xc]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push eax
call dword [eax + 0x50]
ret 0xc

Function at 0x484a5e
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 8]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 8]
push ecx
push eax
call dword [eax + 0x54]
ret 8
Function at 0x484ac0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
add eax, dword [edi + 0x90]
add ebp, dword [edi + 0x8c]
mov dword [esp + 0x18], eax
test esi, esi
jns 0x484af6
add ebp, esi
neg esi
mov ebx, dword [esp + 0x20]
test ebx, ebx
jns 0x484b06
add eax, ebx
neg ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add eax, eax
cmp eax, esi
jle 0x484b1b
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
add ecx, ecx
cmp ecx, ebx
jle 0x484b30
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0xac]
je 0x484b47
push eax
push edi
mov dword [edi + 0xac], eax
call dword [edi + 0x40]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push esi
push dword [esp + 0x28]
push ebp
push edi
call dword [edi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x1c

Function at 0x484b61
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add eax, dword [esi + 0x90]
add ebp, dword [esi + 0x8c]
mov dword [esp + 0x18], eax
test edi, edi
jns 0x484b97
add ebp, edi
neg edi
mov ebx, dword [esp + 0x20]
test ebx, ebx
jns 0x484ba7
add eax, ebx
neg ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
add eax, eax
cmp eax, edi
jle 0x484bbc
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x28]
add ecx, ecx
cmp ecx, ebx
jle 0x484bd1
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xa4]
cmp eax, dword [esi + 0xac]
je 0x484bea
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
push edi
push dword [esp + 0x28]
push ebp
push esi
call dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0x18

Function at 0x484c04
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x484c61
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x484c61
mov eax, dword [esi + 0x70]
test eax, eax
je 0x484c40
push ebx
push esi
call eax
push esi
push ebx
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0xc63ef8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0xc63efc], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4884fc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0xc63fe8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x48855d
push esi
push dword [0xc63fe4]
push 8
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0xc63fe8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0xc63fe0]
jmp 0x48854d
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x48854b
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x48853b
push edi
push 0x48861f
call fcn.004f8af8
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x488567
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x48857d
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0xc63fe4]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x4885b6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0xc62924]
mov dword [0xc63fe8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0xc63fe8]
call ebx
mov esi, dword [0xc63fe4]
lea eax, [edi + esi]
push eax
push dword [0xc63fe8]
mov dword [0xc63fe4], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0xc63fe8]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x4885f5
test ebx, ebx
je 0x488616
push 0x14
push 0xc63fe0
call fcn.00493fb8
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x488616
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x488710
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x488749
push ecx
push dword [0xc63fec]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x488758
push ecx
push 0
push dword [0xc63fec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.004f88b0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x488950
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x4889a0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax + 0x19c]
mov ecx, dword [eax + 8]
mov dword [eax + edx*4 + 0xc], ecx
inc dword [eax + 0x19c]
ret
Function at 0x4889c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0xc61468]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
dec dword [eax + 0x19c]
mov ecx, dword [eax + 0x19c]
mov esi, dword [eax + ecx*4 + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret

Function at 0x488a00
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
dec dword [edx + 0x19c]
mov ecx, dword [edx + 0x19c]
mov eax, dword [edx + ecx*4 + 0xc]
mov dword [edx + 8], eax
ret

Function at 0x488a30
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
dec dword [eax + 0x19c]
mov ecx, dword [eax + 0x19c]
mov ecx, dword [eax + ecx*4 + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret

Function at 0x488a60
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
dec dword [edx + 0x19c]
mov ecx, dword [edx + 0x19c]
mov eax, dword [edx + ecx*4 + 0xc]
add eax, dword [edx]
ret
Function at 0x48b8f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0
jle 0x48b9e3
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov ebx, ecx
add ebx, dword [eax]
mov edx, dword [eax + 0xc]
mov esi, edx
mov edi, dword [eax + 4]
adc edi, edx
mov dword [esp + 0x18], ebx
shld edx, ecx, 0xd
shr esi, 0x13
xor ebp, ebp
shl ecx, 0xd
or ebp, edx
mov edx, dword [eax + 0x1c]
or esi, ecx
mov ecx, dword [eax + 0x18]
xor esi, ebx
xor ebp, edi
mov dword [esp + 0x14], esi
mov esi, ecx
mov dword [esp + 0x20], ebp
add esi, dword [eax + 0x10]
mov ebp, edx
mov ebx, edx
mov dword [esp + 0x10], edi
adc ebp, dword [eax + 0x14]
xor edi, edi
shld edx, ecx, 0x10
shr ebx, 0x10
shl ecx, 0x10
or edi, edx
or ebx, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x10]
xor ebx, esi
xor edi, ebp
xor esi, esi
or esi, dword [esp + 0x18]
mov edx, edi
add ecx, ebx
mov dword [esp + 0x10], ecx
adc esi, edi
mov dword [eax], ecx
shld edi, ebx, 0x15
xor ecx, ecx
shr edx, 0xb
or ecx, edi
shl ebx, 0x15
mov edi, dword [esp + 0x14]
or edx, ebx
xor edx, dword [esp + 0x10]
xor ecx, esi
add edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov dword [eax + 4], esi
mov esi, ebx
adc esi, ebp
mov dword [eax + 0x18], edx
mov ebp, dword [esp + 0x14]
mov edx, ebx
mov dword [eax + 0x1c], ecx
xor ecx, ecx
shld ebx, ebp, 0x11
shr edx, 0xf
or ecx, ebx
shl ebp, 0x11
xor ecx, esi
mov dword [eax + 0x10], esi
mov dword [eax + 0xc], ecx
or edx, ebp
xor ecx, ecx
xor edx, edi
or ecx, edi
mov dword [eax + 8], edx
sub dword [esp + 0x2c], 1
mov dword [eax + 0x14], ecx
jne 0x48b906
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4928e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
cmp dword [edi + 0x1ec], 0
jne 0x49297c
push esi
xor esi, esi
nop dword [eax + eax]
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x492946
mov edx, dword [esp + 0x14]
xor ecx, ecx
nop
cmp esi, 4
jae 0x49293b
mov eax, edx
shr eax, cl
add ecx, 8
mov byte [esp + esi + 8], al
inc esi
cmp ecx, 0x20
jb 0x492920
cmp esi, 4
jb 0x492900
push dword [esp + 8]
push str.rand_s
jmp 0x49296d
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [esp + 8]
xor esi, dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor eax, esi
imul eax, eax, 0x7fffffff
push eax
push str.fallback_4_
call fcn.00492fd0
add esp, 8
mov dword [edi + 0x1ec], eax
pop esi
cmp byte [edi + 0xe8], 0
je 0x492998
push str.xmlhttp:__www.w3.org_XML_1998_namespace
push edi
call fcn.004915f0
add esp, 8
pop edi
add esp, 8
ret
mov al, 1
pop edi
add esp, 8
ret

Function at 0x493750
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x49376e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x493792
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x4937ad
cmp edx, 0x100000
jle 0x4937c0
cmp ecx, 0x100000
jge 0x4937a7
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0xc63fec]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8
Function at 0x4941be
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x494213
push dword [esp + 0x10]
push 0x494272
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0xc64054]
test edi, edi
je 0x49426c
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x49420b
cmp byte [edi + 0x10], 0
je 0x49420b
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x4941e7
jmp 0x49426c
mov edi, dword [0xc64054]
test edi, edi
je 0x49426c
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x494265
cmp byte [edi + 0x11], 0
je 0x49423e
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x494255
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0xc64054
call fcn.00493fe7
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x494220
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x494340
Capabilities:
Get thread local storage value

Disassembly:
push dword [0xc61468]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4
Function at 0x4ae0c4
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x4ae183
cmp dword [esp + 0x24], 2
je 0x4ae183
push 0x2000
push ebp
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x4ae152
cmp dword [esp + 0x18], 2
jne 0x4ae16e
cmp dword [esp + 0x28], 0xffffffff
je 0x4ae116
cmp ebp, dword [esp + 0x28]
jae 0x4ae16e
add ebp, 2
test ebx, ebx
jne 0x4ae13b
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x4ae16e
cmp ax, 0xd
je 0x4ae152
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ae102
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004afe60
jmp 0x4ae215
push eax
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x4ae1a1
cmp ebp, dword [esp + 0x28]
jae 0x4ae1f9
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ae1f9
cmp dword [esp + 0x18], 1
jne 0x4ae1f9
inc ebp
test ebx, ebx
jne 0x4ae1e6
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x4ae1f9
cmp al, 0xd
je 0x4ae194
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x4ae194
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x4ae210
call fcn.004afd70
jmp 0x4ae215
call fcn.00494400
push esi
push 0
push dword [0xc62924]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10