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

Disassembly:
pop ecx
mov ecx, 4
push 0x1687dc6f
lodsb al, byte [esi]
push ebx
jmp 0x42a8c1
mov dword [esp + 4], ebp
lea esp, [esp + 0x3c]
js 0x43902c
inc al
pushfd
bt dx, 0xc
pushal
rol al, 1
push eax
bt dx, 9
call fcn.0043961d
mov word [esp + 0xc], bx
mov byte [esp], 0xd
push dword [eax]
pop dword [esp + 0x34]
pushfd
push ecx
mov dword [esp + 8], 0x4cfe8471
pushfd
push dword [esp + 0x40]
ret 0x44
call fcn.00436607
clc
test ch, 0xd1
push 0xe20148a3
or eax, eax
jmp 0x435f01
jmp 0x433cd9
pushfd
pushfd
mov byte [esp], ch
lea esp, [esp + 8]
jne 0x42a7c2
rol cx, cl
xor cl, 0x19
rcl cx, 0xa
bts cx, 7
mov ecx, dword [ebx]
stc
cmp dx, dx
stc
cmp si, sp
or ecx, ecx
pushal
call fcn.004282c4
bswap bx
jmp 0x450ce8
lea esp, [esp + 4]
jbe 0x42a9d0
jne 0x42a7c2
rol cx, cl
mov ecx, dword [ebx]
cmc
or ecx, ecx
pushal
pushfd
pushal
lea esp, [esp + 0x44]
je 0x42a7c2
movzx dx, cl
mov si, 0x6df4
lea edx, [ebx + 4]
mov si, 0xa01
jp 0x4386a2
mov si, dx
movzx di, cl
movzx esi, word [edx + 0x1a]
jmp 0x437e5d
mov si, bp
pushal
movzx esi, word [edx + 0x1a]
movzx di, al
lea esi, [esi + edx + 0x1c]
call fcn.0042b2cb
nop
and word [ecx + 0x1ea51627], ax
aam 0x4c
stc
nop
imul esi, dword [ebx + 0x28], 0x7a
add dword [ecx + 0x41fc9012], esp
loope 0x438711
mov esi, 0x2900a2f5
invalid
aad 0x5c
xchg ebx, eax
add al, 0x9e
pushal
ret
mov al, 0x51
push es
push 0x30f88763
pushal
in al, 0x3c
ret 0x4063
shr byte [eax], 1
add dh, byte [edx + eax*8 + 0x3c]
pop es
loope 0x4386d6
scasb al, byte es:[edi]
xor byte [eax + 0x53], dl
mov al, 0x50
dec edi
into
pop ecx
jo 0x438777
rcl al, cl
lodsb al, byte es:[esi]
enter 0x58b5, 0xffffffffffffffa0
jecxz 0x4386f2
pop eax
mov al, byte [0xdcf3bfe3]
std
fdiv st(5), st(0)
cmp al, 0x30
pop ebp
dec ecx
scasd eax, dword es:[edi]
shr dword [edi + ebx], 1
out 9, al
mov dh, 1
arpl word [esi - 0x10d04941], bp
mov ah, 0xf3
cmp eax, 0xd6aa04bb
int 0xcf
aam 0x53
xor al, 0x58
dec ebx
popal
inc edx
lea esp, [ecx]
into
loopne 0x43872f
shr dword [ecx - 0x21065506], cl
ror ah, 1
mov al, byte [0x21cb3ef]
inc ebp
mov bl, 0xf5
mov word [esp], si
mov dword [esp + 0x24], eax
push dword [esp]
push 0x7c518b68
mov dword [esp + 0x28], 0
cwde
lea eax, sym.imp.kernel32.dll_LocalAlloc
mov word [esp + 4], di
call fcn.0043cffd
push dword [eax]
pop dword [esp + 0x28]
pushfd
pushfd
push ebx
push dword [esp + 0x34]
ret 0x38
push esi
pushfd
call fcn.0042b1c0
lea esp, [esp + 0x34]
call fcn.0042b5a4
push 0xc9159937
push dword [esp]
jmp 0x42a9a0
mov eax, 0x400
bswap si
pushfd
pop edi
mov edi, ebx
bswap esi
pop esi
pushfd
rep stosd dword es:[edi], eax
push dword [esp]
lea ecx, [ebp*4 + 0x1a7a581a]
bswap cx
mov esi, dword [ebp + 8]
push dword [esp + 4]
xchg di, cx
pushal
movsx edi, bl
lodsb al, byte [esi]
mov dword [esp], 0x185df56c
push esi
inc al
rcr di, 4
ror di, cl
movsx di, dl
rol al, 1
lea edi, [ecx - 0x1debc28a]
xor al, 0xbb
bswap cx
pushfd
inc al
adc di, di
sub eax, eax
mov word [esp + 8], 0x8678
movsx cx, al
not ecx
mov edi, eax
pushfd
jmp 0x428ff8
setae cl
xchg di, si
mov ebx, eax
push edi
mov ecx, 0x3d36
jmp 0x43e328
Function at 0x43e1e5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esi, eax
rcr dl, 3
not dx
btr dx, dx
mov edx, dword [esi + 0x78]
bt si, 4
test edx, edx
pushfd
lea esp, [esp + 4]
je 0x43d483
lea ecx, [esp - 0x3eb315c9]
shr cx, 7
add edx, eax
btc ecx, 0x19
mov ecx, dword [esi + 0x7c]
test esi, 0x6afeea3e
push ebp
add ecx, edx
test dl, ah
mov dword [ebp - 0x10], ecx
mov cx, 0xd18c
shl ecx, cl
mov ecx, dword [ebp + 0xc]
sub esp, 0xfffffffc
jb 0x429159
cmp ecx, 0xffff
pushfd
lea esp, [esp + 4]
jbe 0x435638
sal edi, 0x10
inc edi
sub bh, ch
bsr di, ax
mov edi, dword [edx + 0x24]
cmp dh, ah
rcl ebx, cl
lea ebx, [esi*4 + 0x361ec0a0]
bsr cx, ax
add edi, eax
bt si, 6
bswap cx
xor bh, bl
xadd cl, bh
mov ebx, dword [edx + 0x20]
sal cl, cl
shrd cx, ax, cl
add ebx, eax
adc ecx, 0x6c339eb8
mov dword [ebp - 8], 0
bsr cx, si
bts cx, sp
mov ecx, dword [edx + 0x18]
btc ax, 7
mov dword [esp + 0x14], ebx
sal ah, 4
mov dword [esp + 0x10], edx
bt dx, si
mov eax, dword [ebp + 8]
pushfd
stc
stc
test eax, eax
pushfd
jmp 0x4344d3
stc
cmp ecx, 0xffff
push ebx
jmp 0x44f308
jmp 0x44c60f
clc
pushal
clc
cmc
sub ecx, dword [edx + 0x10]
pushal
call fcn.0043c764
push eax
bswap ax
mov eax, dword [edx + 8]
pushal
mov dword [esp], 0x4015b340
lea esp, [esp + 0x24]
jmp 0x42a7c5
movsx ax, al
push ebp
not bp
push ebx
pushfd
lea ebp, [esp + 8]
bswap eax
rcr al, cl
sub esp, 0x10
test dh, 0xd0
pushal
stc
xor eax, edx
mov dword [esp + 0x1c], esi
cwde
bsf eax, edx
rcr ax, cl
ror al, cl
mov dword [esp + 0x18], edi
mov byte [esp], 0xec
shrd eax, esi, cl
jmp 0x428d38
pushfd
lea esp, [esp + 0x1c]
je 0x43d483
bts si, sp
mov esi, dword [eax + 0x3c]
shr dl, 4
movzx dx, dl
jmp 0x4284d1
pushal
lea esp, [esp + 0x24]
jbe 0x435638
not di
rcl bl, 2
bswap di
mov edi, dword [edx + 0x24]
cmp cl, dh
xchg cx, bx
add edi, eax
bsr cx, sp
movsx ecx, bl
mov ebx, dword [edx + 0x20]
dec cx
ror ch, 7
lea ecx, [edi + 0x638329b9]
add ebx, eax
shld ecx, esi, cl
lea ecx, [edx + 0x61a533a0]
pushfd
mov dword [ebp - 8], 0
mov dword [esp], 0x60c8b302
clc
mov ecx, dword [edx + 0x18]
stc
pushal
cmp ecx, dword [ebp - 8]
pushal
push dword [esp + 8]
mov dword [esp + 4], eax
call fcn.0044d30b
Function at 0x407197
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
xor esi, esi
push esi
push dword [esp + 0x14]
push dword [esp + 0x14]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esp + 0xc], eax
je 0x40722f
push ebx
push ebp
mov ebp, 0x4251f8
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x424f00]
test esi, esi
mov ebx, 0x424f00
je 0x407207
push edi
push 0
lea edi, [esi + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407200
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi]
push edi
push ebx
call fcn.0040cfd3
pop ecx
pop ecx
jmp 0x407202
mov esi, dword [esi]
test esi, esi
jne 0x4071da
pop edi
mov esi, dword [0x42364c]
inc dword [0x42364c]
push 0x10
push ebx
call fcn.0040d013
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
push ebp
mov dword [eax], ecx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 8

Function at 0x407c59
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x407c71
push dword [esp + 4]
push 0x407bf2
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x407cae
push esi
mov esi, dword [0x424f04]
test esi, esi
je 0x407cad
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x407ca5
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x424f04
call fcn.0040cfd3
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x407c7e
pop edi
pop ebx
pop esi
ret 4
Function at 0x40941a
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x425298]
call fcn.0040cd80
mov edi, eax
test edi, edi
je 0x40947c
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x409443
push dword [esp + 0xc]
push edi
call eax
jmp 0x40947c
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040d540
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040d610
pop esi
pop ebx
pop edi
ret 8
Function at 0x40b08f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetPropA]
mov dword [ebp - 4], eax
je 0x40b11a
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x40b10c
push 0x11
call esi
test al, al
js 0x40b10c
push 0x10
call esi
test al, al
js 0x40b10c
push 0x12
call esi
test al, al
js 0x40b10c
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40b10c
push eax
push eax
push 0x44e
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x40b13a
push str.PB_Hotkey
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40b13a
push str.PB_WindowID
push dword [ebp + 8]
call edi
test eax, eax
je 0x40b13a
dec eax
push eax
push dword [0x4252a0]
call fcn.0040cd80
mov eax, dword [eax + 8]
jmp 0x40b13c
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x40b88e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x4251c4], eax
je 0x40b8c1
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4251c8], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x4251c0], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40b8ff
cmp dword [ebp - 0xc], 1
je 0x40b910
cmp dword [ebp - 0xc], 2
jne 0x40b8ff
cmp dword [ebp - 0x18], 5
jb 0x40b910
jne 0x40b8ff
cmp dword [ebp - 0x14], edi
jne 0x40b8ff
mov dword [0x4251c0], edi
cmp dword [0x4251c0], edi
je 0x40b916
call fcn.0040b7d5
test eax, eax
jne 0x40b916
mov dword [0x4251c0], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c220
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x40c255
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x40c760
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x40c781
push esi
call fcn.0040c220
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x40c7fa
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x40c7e7
sub ecx, 1
je 0x40c7d2
sub ecx, 2
je 0x40c7bf
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x40c843
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x40c866
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x40cbc5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4251cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x40cc26
push esi
push dword [0x4251d4]
push 8
push dword [0x42480c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4251cc]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4251d0]
jmp 0x40cc16
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40cc14
mov ecx, dword [esi + 8]
add ecx, edi
push ecx
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40cc04
push edi
push 0x40cb8a
call fcn.00420a39
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x40cc30
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
and eax, 3
push esi
push edi
je 0x40cc45
push 4
pop ecx
sub ecx, eax
add ebx, ecx
cmp dword [0x4251d4], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
jne 0x40cc77
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebx
push 8
push dword [0x42480c]
mov dword [0x4251cc], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4251cc]
call esi
mov edi, dword [0x4251d4]
add dword [0x4251d4], ebx
push dword [0x4251d4]
push dword [0x4251cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x42480c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x4251cc]
call esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40ccbd
cmp dword [esp + 0x18], esi
je 0x40cce1
push 0x14
push 0x4251d0
call fcn.0040d013
test esi, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
je 0x40cce1
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x40d160
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x42365c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40d1a6
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x42533c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x40d1c7
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x42533c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040d670
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d2f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x42365c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x40d380
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x42365c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret
Function at 0x40d4f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x42365c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x40d52e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x40d52e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x40d530
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40d540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42365c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40d564
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x40d5b1
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x42533c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x420a39
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4251f4], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x420a6f
push 0x4251d8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4251f4], 1
push 0x4251d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4251f0]
cmp eax, ebx
mov edi, eax
je 0x420ad3
cmp dword [ebp - 4], ebx
jne 0x420c0c
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x420aa6
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x420a97
jmp 0x420ac4
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.0042088b
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x420a85
cmp dword [ebp - 4], ebx
jne 0x420c0c
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x420c0c
mov edi, dword [0x4251f0]
jmp 0x420b13
cmp dword [edi + 0xc], 0x3f
jl 0x420ba6
mov edi, dword [edi]
cmp edi, ebx
jne 0x420b07
push 0x310
push 8
push dword [0x42480c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x420c03
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x420bf5
push ebx
push ebx
push edi
push 0x4208dc
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x420bec
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042088b
mov eax, dword [0x4251f0]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x420b9e
mov dword [eax + 4], edi
mov dword [0x4251f0], edi
jmp 0x420c0c
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.0042088b
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x420c0c
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x42480c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4251d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x408190
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
xor eax, eax
push ebx
push ebp
push esi
push edi
nop
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x46cf80], ecx
inc eax
cmp eax, 0x100
jb 0x4081a0
cmp eax, 0x800
jae 0x408273
lea esp, [esp]
mov edx, dword [eax*4 + 0x46cb80]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x46cf80]
mov dword [eax*4 + 0x46cf80], edx
inc eax
cmp eax, 0x800
jb 0x408250
lea ecx, [esp + 0x10]
mov dword [0x469c44], 0x44f230
call fcn.004083a0
test eax, eax
je 0x40832b
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov ebp, dword [esp + 0x18]
mov esi, edi
shr esi, 8
mov eax, 0x4655c8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [esp + 0x14]
cmp dword [eax - 8], ebx
mov ebx, dword [esp + 0x1c]
jne 0x4082c9
cmp dword [eax - 4], ebp
jne 0x4082c9
cmp dword [eax], ebx
je 0x4082d8
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x4082b3
or ecx, 0xffffffff
sub ecx, 0
je 0x408312
dec ecx
je 0x408301
dec ecx
jne 0x40832b
cmp esi, 6
jb 0x40832b
jne 0x408321
cmp edi, 0xf
jb 0x40832b
mov dword [0x469c44], 0x44f150
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x40832b
jne 0x408321
cmp edi, 6
jb 0x40832b
cmp edi, 0xa
jmp 0x40831f
cmp esi, 6
jb 0x40832b
jne 0x408321
cmp edi, 0x100c
je 0x40832b
mov dword [0x469c44], 0x44f150
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret