joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x1001cb70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100224b4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x10022494]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x10003bad
call fcn.100012d0
mov esi, eax
jmp 0x10003c95
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10003bc9
call fcn.100012d0
jmp 0x10003c8c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x10003be2
call fcn.100012d0
jmp 0x10003c8c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x10003c18
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x10003c06
lea ecx, [ebp]
call fcn.10001b30
lea ecx, [ebp - 0x1c]
call fcn.10001ac0
mov eax, 0x8007000e
jmp 0x10003cb2
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10002a30
mov dword [ebp - 4], 1
jmp 0x10003c41
mov ebx, dword [ebp]
test ebx, ebx
jne 0x10003c4f
mov esi, 0x8007000e
jmp 0x10003c8e
call dword [0x10022494]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10003c70
call fcn.100012d0
jmp 0x10003c8c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.100039b0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x10003cb0
lea ecx, [ebp]
call fcn.10001b30
jmp 0x10003cb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.100121e6
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100121e6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100224b4]
jne 0x100121f0
repz ret
jmp fcn.10014a3b

Function at 0x10013fc4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10022630]
je 0x10013fdf
inc edi
cmp edi, 0x17
jb 0x10013fd0
cmp edi, 0x17
jae 0x1001415f
push ebp
push 3
call fcn.100182c0
cmp eax, 1
pop ecx
je 0x1001412b
push 3
call fcn.100182c0
test eax, eax
pop ecx
jne 0x10014013
cmp dword [0x10023628], 1
je 0x1001412b
cmp ebx, 0xfc
je 0x1001415e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x100237d0
push ebp
call fcn.1001825b
add esp, 0xc
test eax, eax
je 0x10014049
push esi
push esi
push esi
push esi
push esi
call fcn.1001458f
add esp, 0x14
push 0x104
mov esi, 0x100237e9
push esi
push 0
mov byte [0x100238ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001408d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1001825b
add esp, 0xc
test eax, eax
je 0x1001408d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001458f
add esp, 0x14
push esi
call fcn.100181d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100140d2
push esi
call fcn.100181d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10023ae4
push 0x1001f244
sub ecx, eax
push ecx
push eax
call fcn.10018116
add esp, 0x14
test eax, eax
je 0x100140d2
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001458f
add esp, 0x14
jmp 0x100140d4
xor esi, esi
push 0x1001f240
push ebx
push ebp
call fcn.100180a5
add esp, 0xc
test eax, eax
je 0x100140f4
push esi
push esi
push esi
push esi
push esi
call fcn.1001458f
add esp, 0x14
push dword [edi*8 + 0x10022634]
push ebx
push ebp
call fcn.100180a5
add esp, 0xc
test eax, eax
je 0x10014116
push esi
push esi
push esi
push esi
push esi
call fcn.1001458f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10017ee8
add esp, 0xc
jmp 0x1001415e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001415e
cmp ebp, 0xffffffff
je 0x1001415e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10022634]
push dword [esi]
call fcn.100181d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10017ee8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100158a3
xor ebx, ebx
cmp dword [0x10023f68], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10017fbe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001809e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001809e
push eax
call fcn.10015835
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10023f68], eax
call esi
push eax
call fcn.10015835
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10023f6c], eax
call esi
push eax
call fcn.10015835
mov dword [0x10023f70], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10013d71
test eax, eax
pop ecx
pop ecx
je 0x10017f8c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001458f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10017fbe
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10015835
cmp eax, ebx
pop ecx
mov dword [0x10023f78], eax
je 0x10017fbe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10015835
pop ecx
mov dword [0x10023f74], eax
mov eax, dword [0x10023f74]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10018043
cmp dword [0x10023f78], ecx
je 0x10018043
push eax
call fcn.100158ac
push dword [0x10023f78]
mov esi, eax
call fcn.100158ac
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10018043
cmp edi, ebx
je 0x10018043
call esi
cmp eax, ebx
je 0x10018010
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10018010
test byte [ebp - 0x18], 1
jne 0x10018043
lea eax, [ebp - 0x10]
push eax
call fcn.10013da8
test eax, eax
pop ecx
je 0x1001802b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001458f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001803a
or dword [ebp + 0x10], 0x200000
jmp 0x1001807e
or dword [ebp + 0x10], 0x40000
jmp 0x1001807e
mov eax, dword [0x10023f6c]
cmp eax, dword [ebp - 8]
je 0x1001807e
push eax
call fcn.100158ac
cmp eax, ebx
pop ecx
je 0x1001807e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001807e
mov eax, dword [0x10023f70]
cmp eax, dword [ebp - 8]
je 0x1001807e
push eax
call fcn.100158ac
cmp eax, ebx
pop ecx
je 0x1001807e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10023f68]
call fcn.100158ac
cmp eax, ebx
pop ecx
je 0x1001809e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100180a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1084e01f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1084a110]
jne 0x1084e029
repz ret
jmp fcn.1084e2ab

Function at 0x10851e11
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1084a110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1084e3b1
and dword [ebp - 0x14], 0
cmp dword [0x1084d224], 0
mov dword [ebp - 0x18], eax
jne 0x10851ec4
push str.USER32.DLL
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10851f6c
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10851f6c
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1084d224], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1084d228], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1084d22c], eax
call edi
push eax
call esi
mov dword [0x1084d234], eax
test eax, eax
je 0x10851ec4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1084d230], eax
mov eax, dword [0x1084d230]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x10851f1d
cmp dword [0x1084d234], ecx
je 0x10851f1d
push eax
call esi
push dword [0x1084d234]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10851f1d
test ebx, ebx
je 0x10851f1d
call edi
test eax, eax
je 0x10851f14
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10851f14
test byte [ebp - 8], 1
jne 0x10851f1d
or dword [ebp + 0x10], 0x200000
jmp 0x10851f50
mov eax, dword [0x1084d228]
cmp eax, dword [ebp - 0x18]
je 0x10851f50
push eax
call esi
test eax, eax
je 0x10851f50
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10851f50
mov eax, dword [0x1084d22c]
cmp eax, dword [ebp - 0x18]
je 0x10851f50
push eax
call esi
test eax, eax
je 0x10851f50
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1084d224]
call esi
test eax, eax
je 0x10851f6c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10851f6e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1084e01f
leave
ret
Function at 0x4050b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x437230]
jne 0x4050ba
repz ret
jmp fcn.0040df60
Function at 0x41414a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
or eax, eax
jne 0x41415f
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x414195
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x414191
cmp esi, eax
jae 0x414195
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x414183
cmp esi, eax
jb 0x414199
xor eax, eax
jmp 0x4141a3
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x4150b5
Capabilities:
Get geographical location

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x11c
mov eax, dword [0x44bd54]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
push ecx
pop esi
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4150f5
push 0x43cb70
push 4
push eax
call fcn.0042242c
push eax
call fcn.00401000
add esp, 0x10
jmp 0x415107
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
test eax, eax
je 0x415175
push edi
call fcn.00423bb7
mov edi, dword [eax]
call fcn.00423bb7
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00423134
add esp, 0x18
push eax
pop ebx
call fcn.00423bb7
cmp dword [eax], 0
je 0x415155
call fcn.00423bb7
push dword [eax]
call fcn.004142c8
pop ecx
jmp 0x41515c
call fcn.00423bb7
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x415175
cmp ebx, esi
jae 0x415175
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
jmp 0x415177
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004233a2
leave
ret
Function at 0x4169f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43ae55
call fcn.004237f5
push ecx
pop esi
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00417517
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x416a3d
call fcn.00417517
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x416a4e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x416a5b
or eax, 0xffffffff
jmp 0x416bb7
mov ecx, esi
call fcn.00416522
mov dword [ebp - 0x14], eax
call fcn.0041a39c
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x416ad9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x416ad9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
or eax, eax
je 0x416ad9
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00412530
push eax
pop ebx
or ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x416ad9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
or eax, eax
je 0x416ad9
push ebx
pop ecx
call fcn.0041d43c
or eax, eax
je 0x416ad9
push 0
mov ecx, ebx
call fcn.0041d457
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041bd1e
push dword [ebp - 0x14]
call fcn.0041a2f4
push edi
push eax
push dword [ebp - 0x1c]
push esi
pop ecx
call fcn.004167fa
sub edi, edi
cmp eax, edi
je 0x416b36
test byte [esi + 0x3c], 0x10
je 0x416b20
push 4
pop edi
push esi
pop ecx
call fcn.0041d3bd
test ax, 0x100
je 0x416b16
push 5
pop edi
push edi
mov ecx, esi
call fcn.00419ebc
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x416b36
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041d4be
or dword [ebp - 4], 0xffffffff
jmp 0x416b61
cmp dword [ebp - 0x28], edi
je 0x416b6f
push 1
mov ecx, ebx
call fcn.0041d457
cmp dword [ebp - 0x2c], edi
je 0x416b7f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x416b98
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x416b98
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
push esi
pop ecx
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041655c
cmp dword [esi + 0x58], edi
je 0x416bb4
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00423861
ret
Function at 0x417e30
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x44ece4], ebx
je 0x417e48
sub eax, eax
cmp dword [0x44ecd8], ebx
pop ebx
setne al
ret
push esi
push edi
call fcn.00417dd8
push str.USER32
mov dword [0x44ece8], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
je 0x417ef7
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x43d3e8
push edi
call esi
cmp eax, ebx
mov dword [0x44ecc8], eax
je 0x417ef7
push str.MonitorFromWindow
push edi
call esi
cmp eax, ebx
mov dword [0x44eccc], eax
je 0x417ef7
push str.MonitorFromRect
push edi
call esi
cmp eax, ebx
mov dword [0x44ecd0], eax
je 0x417ef7
push str.MonitorFromPoint
push edi
call esi
cmp eax, ebx
mov dword [0x44ecd4], eax
je 0x417ef7
push str.EnumDisplayMonitors
push edi
call esi
cmp eax, ebx
mov dword [0x44ecdc], eax
je 0x417ef7
push str.GetMonitorInfoA
push edi
call esi
cmp eax, ebx
mov dword [0x44ecd8], eax
je 0x417ef7
push str.EnumDisplayDevicesA
push edi
call esi
cmp eax, ebx
mov dword [0x44ece0], eax
je 0x417ef7
xor eax, eax
inc eax
pop edi
pop esi
mov dword [0x44ece4], 1
pop ebx
ret
mov dword [0x44ecc8], ebx
mov dword [0x44eccc], ebx
mov dword [0x44ecd0], ebx
mov dword [0x44ecd4], ebx
mov dword [0x44ecd8], ebx
mov dword [0x44ecdc], ebx
mov dword [0x44ece0], ebx
sub eax, eax
jmp 0x417ee9

Function at 0x41ce3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
sub ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41ce7e
call fcn.00417517
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
or eax, eax
je 0x41ce7e
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
pop edi
or edi, edi
je 0x41ce99
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
pop ebx
push ebx
mov ecx, ebp
call fcn.0041c9f2
test ebx, ebx
push eax
pop esi
je 0x41ce97
test edi, edi
je 0x41ce97
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41e27a
Capabilities:
Allocate thread local storage

Disassembly:
sub eax, eax
push esi
push ecx
pop esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41e2ab
jmp fcn.00413fca
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
push esi
pop eax
pop esi
ret
Function at 0x41e31c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x43b1c7
call fcn.004237f5
push ecx
pop edi
mov dword [ebp - 0x18], edi
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp + 8]
sub ebx, ebx
cmp eax, ebx
jle 0x41e442
cmp eax, dword [edi + 0xc]
jge 0x41e442
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41e38e
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41e42b
cmp dword [ebp + 0xc], ebx
je 0x41e42b
cmp dword [esi + 0xc], ebx
jne 0x41e3d3
push 4
push dword [edi + 0xc]
call fcn.004010b0
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
jmp 0x41e3eb
push 0x10
mov dword [ebp - 4], ebx
call fcn.0041dfcf
cmp eax, ebx
je 0x41e3a6
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x41e3a8
sub esi, esi
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [edi + 0x14]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0041e0eb
jmp 0x41e373
push 2
push 4
push dword [edi + 0xc]
call fcn.004010b0
pop ecx
pop ecx
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
cmp eax, ebx
jne 0x41e3fd
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call fcn.00413fca
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00423c00
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41e43d
cmp ecx, dword [esi + 8]
jge 0x41e43d
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 0x14]
jmp 0x41e443
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call fcn.00423861
ret 8

Function at 0x41e467
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push esp
pop ebp
push ecx
push ebx
sub ebx, ebx
push esi
mov esi, dword [ebp + 8]
inc ebx
cmp dword [esi + 8], ebx
push edi
push ecx
pop edi
mov dword [ebp - 4], ebx
jle 0x41e4c0
mov eax, dword [ebp + 0xc]
or eax, eax
je 0x41e49d
mov ecx, dword [edi + 0x10]
cmp dword [ecx + ebx*8 + 4], eax
je 0x41e49d
mov eax, dword [esi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x41e4b4
and dword [ebp - 4], 0
jmp 0x41e4b4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x41e4ad
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0xc]
and dword [eax + ebx*4], 0
inc ebx
cmp ebx, dword [esi + 8]
jl 0x41e47e
cmp dword [ebp - 4], 0
je 0x41e4f5
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push esi
lea ecx, [edi + 0x14]
call fcn.0041e104
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, dword [esi]
push 1
push esi
pop ecx
call dword [eax]
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41e4fd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41e52b
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x41e549
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041e467
jmp 0x41e549
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41e549
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
push esi
pop ecx
call fcn.0041e467
test edi, edi
mov eax, edi
jne 0x41e533
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44efa8]
test ecx, ecx
je 0x41e60c
jmp 0x41e4fc
ret 8

Function at 0x41ef0a
Capabilities:
Set registry value

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x14
mov eax, dword [0x44bd54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
cmp dword [esi + 0x54], 0
push edi
mov edi, dword [ebp + 8]
je 0x41ef5b
push edi
call fcn.0041eec4
push eax
pop esi
or esi, esi
je 0x41ef80
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub eax, eax
or edi, edi
sete al
jmp 0x41ef80
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x43dc60
push 0x10
push eax
call fcn.00423118
add esp, 0x10
push dword [esi + 0x68]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004233a2
leave
ret 0xc

Function at 0x422dd6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x44f26c]
call fcn.00428028
or eax, eax
pop ecx
je 0x422dec
pop ebp
jmp eax
push 2
call fcn.0042a2dc
pop ecx
pop ebp
jmp fcn.00422cda

Function at 0x4233a2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44bd54]
jne 0x4233ac
repz ret
jmp fcn.0042adbc