joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fcf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, edx
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, ebx
dec edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], edx
sar edx, 1
mov dword [ebp - 0x10], edx
push esi
push edi
cmp ebx, edx
jge 0x40fd6c
lea esi, [eax + eax]
lea edx, [ecx + 0x78]
add ecx, 0x48
lea eax, [esi + esi*2]
shl eax, 4
add edx, eax
add ecx, eax
call fcn.0040e4c0
movzx eax, al
inc esi
xor eax, 1
add eax, esi
lea esi, [ebx + ebx*2]
shl esi, 4
add esi, dword [ebp - 4]
mov ecx, esi
mov dword [ebp - 0xc], eax
lea edi, [eax + eax*2]
shl edi, 4
add edi, dword [ebp - 4]
push edi
call fcn.0040e2c0
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.0040e2c0
mov eax, dword [ebp - 0xc]
mov ebx, eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
cmp eax, edx
jl 0x40fd13
cmp eax, edx
jne 0x40fda1
mov eax, dword [ebp + 8]
test al, 1
jne 0x40fda1
lea edi, [eax + eax*2]
shl edi, 4
lea esi, [ebx + ebx*2]
add edi, 0xffffffd0
shl esi, 4
add edi, ecx
add esi, ecx
push edi
mov ecx, esi
call fcn.0040e2c0
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.0040e2c0
mov ebx, dword [ebp - 0x14]
cmp dword [ebp - 8], ebx
jge 0x40fdfc
mov edi, dword [ebp + 0xc]
add edi, 0x18
mov dword [ebp - 0x10], edi
nop
lea esi, [ebx - 1]
mov ecx, edi
sar esi, 1
lea eax, [esi + esi*2]
shl eax, 4
add eax, dword [ebp - 4]
mov dword [ebp + 8], eax
add eax, 0x18
mov edx, eax
mov dword [ebp - 0x14], eax
call fcn.0040e4c0
test al, al
je 0x40fdfc
push dword [ebp + 8]
lea edi, [ebx + ebx*2]
shl edi, 4
add edi, dword [ebp - 4]
mov ecx, edi
call fcn.0040e2c0
push dword [ebp - 0x14]
lea ecx, [edi + 0x18]
call fcn.0040e2c0
mov ebx, esi
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 8], esi
jl 0x40fdb0
lea esi, [ebx + ebx*2]
mov ebx, dword [ebp + 0xc]
shl esi, 4
add esi, dword [ebp - 4]
push ebx
mov ecx, esi
call fcn.0040e2c0
lea eax, [ebx + 0x18]
push eax
lea ecx, [esi + 0x18]
call fcn.0040e2c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d3a0
Capabilities:
Compress data via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f9fd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5e3f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x5c4f68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x41d488
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCompressBuffer
push ebx
call esi
push str.RtlGetCompressionWorkSpaceSize
push ebx
mov dword [edi], eax
call esi
push str.RtlDecompressBuffer
push ebx
mov dword [edi + 4], eax
call esi
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
lea esi, [edi + 0x18]
push ecx
push esi
push 2
mov dword [ebp - 0x10], 0
call eax
test eax, eax
jne 0x41d4b6
push 4
push 0x3000
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push eax
call esi
mov dword [edi + 0xc], eax
test eax, eax
je 0x41d4e4
push 4
push 0x3000
push 0x5c00000
push 0
call esi
mov dword [edi + 0x10], eax
test eax, eax
je 0x41d512
push 4
push 0x3000
push 0x6000000
push 0
call esi
mov dword [edi + 0x14], eax
test eax, eax
je 0x41d540
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_apreltechSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00402ce0
push 0x21
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00402de0
mov edx, eax
mov ecx, esi
call fcn.0041d6c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_apreltechSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00402ce0
push 0x2d
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00402de0
mov edx, eax
mov ecx, esi
call fcn.0041d6c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_apreltechSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00402ce0
push 0x35
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00402de0
mov edx, eax
mov ecx, esi
call fcn.0041d6c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_apreltechSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00402ce0
push 0x3c
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00402de0
mov edx, eax
mov ecx, esi
call fcn.0041d6c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.D:_apreltechSibSiblSiblLznt.cpp
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00402ce0
push 0x44
mov ecx, eax
mov dword [ebp - 4], 4
call fcn.00402de0
mov edx, eax
mov ecx, esi
call fcn.0041d6c0
int3
Function at 0x4201f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5800ed
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5e3f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [0x5ed144]
push 0xffffffffffffffff
mov dword [ebx], 0x5ed180
call fcn.00420560
mov eax, dword [0x5ed174]
test eax, eax
jne 0x42023a
xor edx, edx
jmp 0x42024f
mov edx, eax
lea esi, [edx + 2]
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x420240
sub edx, esi
sar edx, 1
push edx
push eax
mov ecx, 0x5ed160
call fcn.004030f0
call fcn.004020f0
call fcn.00402290
sub esp, 8
push dword [0x5ed17c]
push ecx
call fcn.00402920
mov edx, dword [ebx]
test edi, edi
js 0x42030d
cmp edi, dword [edx + 0x3c]
jge 0x42030d
imul ecx, edi, 0xb8
add ecx, dword [edx + 0x38]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edx + 0x60]
test ecx, ecx
je 0x4202ae
nop word [eax + eax]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx]
cmp dword [eax + 8], edi
je 0x4202d9
test ecx, ecx
jne 0x4202a0
push edi
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.00420350
push dword [0x5ed174]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [edx + 0x18], 0
lea esi, [ebx + 4]
je 0x4202f2
push 0
push dword [esi]
call fcn.00556773
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x420312
push 0
push dword [esi]
call fcn.0055684c
test eax, eax
je 0x420339
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x420339
jmp 0x4202ae
call fcn.004228fd
push str.D:_apreltechSibSiblSibJsInstall.cpp
lea ecx, [ebp - 0x14]
call fcn.00402ce0
push 0x42
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00402de0
mov ecx, dword [ebp - 0x10]
mov edx, eax
call fcn.0041d6c0
push 0
mov ecx, esi
call fcn.00402de0
mov edx, eax
mov ecx, 3
call fcn.0041d6c0
int3
Function at 0x420350
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580125
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5e3f80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea ecx, [ebx + 0xc]
mov dword [ebx + 0x10], 0
call fcn.00402df0
lea ecx, [ebx + 8]
call fcn.00402df0
mov dword [ebp - 4], 1
call fcn.00421e97
mov ecx, eax
mov byte [ebp - 4], 0
test ecx, ecx
je 0x420543
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 2
cmp dword [eax + 0xc], 6
jne 0x420487
mov esi, dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.00420560
mov byte [ebp - 4], 4
call fcn.00421e97
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x42054d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push esi
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 5
push str.ca_d
push eax
call fcn.0040a030
mov eax, dword [ebp + 0xc]
add esp, 8
add eax, 0xfffffff0
mov esi, esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], eax
push eax
call fcn.0040a0c0
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.004209b0
mov esi, eax
test esi, esi
je 0x420458
push 0
push ecx
mov ecx, esp
push ecx
call fcn.00406db0
mov ecx, dword [ebp + 8]
call fcn.00411970
test al, al
jne 0x420458
mov dword [0x5ed154], 1
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x420474
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x420487
push 0xd
push str.Action_failed
lea ecx, [ebx + 0xc]
call fcn.004030f0
push dword [ebx + 0x10]
lea eax, [ebp - 0x10]
push 0x5c5294
push eax
call fcn.0040a030
mov eax, dword [ebp + 8]
add esp, 0xc
mov esi, dword [ebp - 0x10]
push dword [ebx + 0xc]
push dword [ebx + 8]
push esi
push dword [eax + 4]
push ecx
call fcn.00402740
mov eax, dword [ebx + 0x1c]
xor edi, edi
test eax, eax
jle 0x420506
nop word [eax + eax]
test edi, edi
js 0x42053e
cmp edi, eax
jge 0x42053e
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + edi*4]
sub eax, 0x10
push eax
call fcn.0040a0c0
mov ebx, eax
add esp, 4
lea ecx, [ebx + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or ecx, 0xffffffff
lock xadd dword [ebx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4204fb
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
inc edi
mov eax, dword [ebx + 0x1c]
cmp edi, eax
jl 0x4204c0
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x14]
call fcn.00426bb7
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42052a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004228fd
push 0x80004005
call fcn.00403280
push 0x80004005
call fcn.00403280
int3
Function at 0x420c90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x420ca5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420cb0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4213a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5802ed
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5e3f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, dword [0x5ed258]
test edx, edx
jne 0x4213df
xor ecx, ecx
jmp 0x4213f3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4213e4
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x5ed170
call fcn.004030f0
mov edx, str.TRUE
mov dword [0x5ed148], 1
lea ecx, [ebp + 8]
mov dword [0x5ed14c], 0
call fcn.0040b820
call fcn.00421810
or edi, 0xffffffff
test al, al
je 0x42155f
push 0
push 0
push 0x41e850
call fcn.00568448
add esp, 0xc
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x5ed1d8], 0
je 0x4214f5
cmp dword [0x5ed154], 0
je 0x4214fe
push 0x96
lea eax, [ebp - 0x54]
mov ecx, 0x5ed16c
push eax
call fcn.00407040
mov esi, dword [eax]
mov byte [ebp - 4], 2
call fcn.00421e97
mov ecx, eax
mov byte [ebp - 4], 1
test ecx, ecx
je 0x421592
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x50], eax
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00407550
test al, al
jne 0x4214bd
push esi
lea ecx, [ebp - 0x50]
call fcn.00407650
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4214db
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x50]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4214f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x5ed154], 0
jne 0x42150b
cmp dword [0x5ed150], 0
jne 0x42150b
push 0
jmp 0x42150d
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
push 0x5c5294
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [0x5ed260], 0
je 0x42155f
mov eax, dword [0x5ed25c]
lea eax, [eax*2 + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push dword [0x5ed25c]
mov esi, eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [0x5ed260]
mov ecx, dword [edx]
mov dword [edx], esi
mov dword [esi], ecx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x421577
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00554ea8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403280
int3
Function at 0x4247a1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4247cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4247d1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00402de0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00429000
int3

Function at 0x424aac
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x424abd
xor eax, eax
jmp 0x424ad9
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424ade
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00402de0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00429000
int3

Function at 0x424b7c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x58f988]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x424baf
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00402de0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00429000
int3

Function at 0x424c88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x424cb3
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x424cb9
cmp dword [ebp - 4], esi
jne 0x424cd0
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00402de0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.00429000
lea ecx, [edi + 0xc]
call fcn.00402de0
push eax
push 0xffffffffffffffff
push 0xd
call fcn.00428c56
int3
Function at 0x42719e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x42721a
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4271df
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x4271df
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x42720d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x427210
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x427207
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x58f988]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x4271c3
test eax, eax
je 0x427261
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.00427478
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x58f988]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4274ca
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x5807d9
call fcn.00555425
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4275c1
cmp edi, dword [ebx + 0xc]
jge 0x4275c1
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x427521
cmp edi, dword [esi + 8]
jl 0x4275af
cmp dword [ebp + 0xc], 0
je 0x4275af
xor edi, edi
jmp 0x427553
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00426f82
mov esi, eax
test esi, esi
je 0x42753b
mov dword [esi], vtable.CThreadData.0
jmp 0x42753d
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00408120
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x42756f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42757b
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x4275e8
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.0055a030
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4275c1
cmp edi, dword [esi + 8]
jge 0x4275c1
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0055538a
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00422917
int3
Function at 0x42e5bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x42e648
cmp dword [esi + 0x20], 0
je 0x42e648
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42e648
cmp dword [ebp + 8], 0
je 0x42e648
xor edi, edi
mov ebx, edi
call fcn.004279af
push 0x592990
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x42e62c
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42e648
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.00435e0d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x42e644
mov ecx, esi
call fcn.0042e35a
mov eax, edi
jmp 0x42e64a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x432b64
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5805ac
call fcn.005553bc
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x432b8a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x432be4
lea ecx, [ebp - 0x10]
call fcn.004032f0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x58f988]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00568705
push eax
call fcn.00402b70
add esp, 0x14
test esi, esi
je 0x432bd7
push esi
call fcn.00565507
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004032d0
mov eax, ebx
call fcn.0055538a
ret 8

Function at 0x433742
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00432aaa
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x43377e
call fcn.0043395f
mov dword [esi + 0xc], 1
jmp 0x433783
call fcn.0043395f
cmp dword [esi], 0
je 0x4337ce
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x4337a9
push edi
call fcn.004081d0
lea ecx, [edi + 1]
push ecx
jmp 0x4337b8
push 0xff
call fcn.00403010
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00410410
pop edi
jmp 0x4337f2
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4337f2
push dword [esi]
push dword [ebp - 4]
call fcn.0043303e
pop esi
leave
ret 0xc