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

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x404cef
cmp word [edx], 0
je 0x404cef
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x404c1e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x404c74
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404c30
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x404c56
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00430080
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.004301a0
mov edi, eax
test edi, edi
je 0x404c6a
cmp dword [esi + 4], 0
je 0x404cc2
push dword [esp + 0x14]
push edi
push esi
call fcn.00430080
push edi
push 0
push dword [0x4bd354]
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 [0x4bd354]
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 0x405a7d
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
call fcn.004306b4
mov edi, eax
test edi, edi
je 0x405b5f
cmp dword [edi + 0x14], esi
je 0x405b5f
cmp dword [edi], 0xf
jne 0x405b5f
push dword [edi + 0x18]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405b5f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x405b54
push dword [edi + 0x18]
push dword [edi + 0x14]
push eax
call fcn.00414030
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x405b54
push ebp
lea edi, [eax - 1]
mov ebp, esi
push esi
push esi
push ebp
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
add edi, eax
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x405af9
push dword [esp + 0x20]
mov dword [esp + 0x1c], edi
push edi
call fcn.00413b10
lea ecx, [edi + 1]
mov ebp, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push ecx
push ebp
push esi
push ebx
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xa
pop ecx
lea ebp, [ebp + eax*2]
mov word [ebp], cx
mov eax, ebp
mov ecx, dword [esp + 0x14]
add ebp, 2
inc esi
cmp esi, edi
jl 0x405b27
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov word [eax], cx
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jne 0x405b6a
pop edi
pop esi
pop ebx
add esp, 0xc
jmp fcn.00413ba0
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x405e51
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x4bef3c]
call fcn.00412db0
xor ebx, ebx
mov esi, eax
cmp dword [0x4bd9c4], ebx
jne 0x405f23
xor ebp, ebp
inc ebp
mov dword [0x4bd9c4], ebp
call fcn.0043086b
mov edi, 0xa8
push edi
push ebx
push 0x4bd918
call fcn.004010c0
add esp, 0xc
mov dword [0x4bd918], 0x13
lea eax, [esp + 0x10]
mov dword [0x4bd91c], edi
mov dword [0x4bd928], 0x405ce0
mov dword [0x4bd92c], 0x405cb9
push eax
mov dword [0x4bd980], 0x40602b
mov dword [0x4bd984], 0x406053
mov dword [0x4bd924], 0x406006
mov dword [0x4bd9a8], 0x40610e
mov dword [0x4bd9c8], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405f23
cmp dword [esp + 0x20], ebp
je 0x405f1d
cmp dword [esp + 0x20], 2
jne 0x405f23
cmp dword [esp + 0x14], 5
jb 0x405f1d
jne 0x405f23
cmp dword [esp + 0x18], ebx
jne 0x405f23
mov dword [0x4bd9c8], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.004306cf
mov eax, dword [esp + 0x140]
push ebx
push dword [0x4bd358]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push str.BUTTON
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x405ff7
mov ebp, dword [esp + 0x128]
push ebp
push dword [0x4bef38]
call fcn.00413e63
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x405fc8
push esi
call fcn.00410a09
test eax, eax
je 0x405fc8
push 0
push 0
push esi
call fcn.00410ae8
jmp 0x405fca
xor eax, eax
push 0x406423
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x4bd918
push edi
push ebx
push ebp
mov dword [0x4bd9c0], eax
call fcn.00430541
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x40a518
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4bef38]
call fcn.00413ef7
mov ebx, eax
test ebx, ebx
je 0x40a57c
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40a541
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40a57c
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00413b10
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.00413712
pop ecx
sub edi, eax
push edi
call fcn.00413de0
pop edi
pop esi
pop ebx
ret 8

Function at 0x40d337
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x40d3af
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00413da0
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00413712
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x40d390
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x40d38d
cmp ecx, 0x5c
je 0x40d38d
cmp ecx, 0x2f
jne 0x40d39a
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x40d37a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40d3b1
xor eax, eax
leave
ret 4
Function at 0x40d6f2
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40d71b
test byte [esp + 8], 2
je 0x40d70f
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40d71d
xor eax, eax
ret 8

Function at 0x40d7d2
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x4bf3c0]
push esi
test eax, eax
jne 0x40d7f7
push fcn.0040d7a0
push 0x10
push 0x258
call fcn.00413fdb
mov dword [0x4bf3c0], eax
push dword [esp + 0xc]
push eax
call fcn.00413e63
mov esi, eax
test esi, esi
je 0x40d8f8
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x40d819
mov edi, 0x48d390
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x40d829
xor eax, eax
cmp word [ebx], ax
jne 0x40d82e
mov ebx, 0x48d34c
push edi
call fcn.00413712
push ebx
mov dword [esp + 0x24], eax
call fcn.00413712
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40d8df
push edi
push eax
call fcn.004136f0
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x40d88f
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x40d893
push 0x48c660
push edi
call fcn.00413d6f
pop ecx
pop ecx
jmp 0x40d893
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.00413d6f
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40d8b7
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x40d8cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40d8cb
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x40d8f6
cmp dword [esp + 0x14], 0xffffffff
je 0x40d8ea
mov esi, dword [esp + 0x14]
push esi
push dword [0x4bf3c0]
call fcn.00413f8c
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x40d943
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x40da8b
xor ecx, ecx
cmp word [eax], cx
je 0x40da8b
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00413da0
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00413712
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x40d99c
cmp eax, 3
jne 0x40d9d6
cmp word [esp + 0xa], 0x3a
jne 0x40d9d6
cmp eax, 2
jne 0x40d9ba
lea eax, [esp + 8]
push 0x48c660
push eax
call fcn.00413d6f
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40da8b
push 0xfffffffffffffffe
pop edi
jmp 0x40da8b
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x40d9eb
cmp ax, bx
jne 0x40d9f5
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x40d9de
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x40da34
test byte [esp + 0x21c], 0x10
je 0x40da1b
push 0xfffffffffffffffe
pop edi
jmp 0x40da2b
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40da89
cmp word [esp + 0x10], bp
jne 0x40da42
cmp word [esp + 0x12], bp
je 0x40da61
cmp word [esp + 0x10], bx
jne 0x40da50
cmp word [esp + 0x12], bx
je 0x40da61
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x40da89
cmp word [esp + 0x12], ax
jne 0x40da89
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40da76
test al, 0x10
je 0x40da89
jmp 0x40da86
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x40da89
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x40dd3a
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x114
push eax
mov esi, 0xc8
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40debe
mov eax, dword [esp + 0x1c]
sub eax, 1
je 0x40dea1
sub eax, 1
jne 0x40debe
lea eax, [esp + 0x120]
xor edi, edi
push eax
call fcn.0040deca
pop ecx
test eax, eax
je 0x40ddae
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x128]
mov ebp, dword [esp + 0x12c]
cmp byte [esp + 0x23a], 1
jmp 0x40dddf
lea eax, [esp + 0x23c]
mov dword [esp + 0x23c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40debe
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp byte [esp + 0x356], 1
jne 0x40dde4
xor edi, edi
inc edi
sub ecx, 3
je 0x40de9d
sub ecx, 1
je 0x40de99
sub ecx, 1
je 0x40de74
sub ecx, 1
je 0x40de24
sub ecx, 4
jne 0x40debe
test eax, eax
jne 0x40debe
cmp ebp, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40debe
sub eax, 0
je 0x40de66
sub eax, 1
je 0x40de58
sub eax, 1
je 0x40de4a
sub eax, 1
jne 0x40debe
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40debe
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40debe
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40debe
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40debe
sub eax, 0
je 0x40de95
sub eax, 1
je 0x40de91
sub eax, 1
jne 0x40debe
mov esi, edi
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40debe
push 0x3c
jmp 0x40debd
push 0x32
jmp 0x40debd
push 0x14
jmp 0x40debd
push 5
jmp 0x40debd
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40debb
cmp eax, 0xa
je 0x40deb7
cmp eax, 0x5a
jne 0x40debe
push 0x28
jmp 0x40debd
push 0x1e
jmp 0x40debd
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x34c
ret
Function at 0x40e162
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4bf704]
call fcn.00413ef7
mov esi, eax
test esi, esi
je 0x40e23c
cmp dword [ebp + 0xc], 0
je 0x40e1ae
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x40e19f
cmp dword [esi + 0x1c], 0
jne 0x40e19f
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e23c
test byte [ebp + 0x10], 3
je 0x40e1c9
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00433215
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x40e1ee
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x40e202
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x40e21f
test ebx, ebx
je 0x40e213
push 8
jmp 0x40e225
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x40e232
test ebx, ebx
je 0x40e228
push 3
pop ecx
jmp 0x40e232
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x410511
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410595
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41058d
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41057e
cmp dword [esp + 0x18], ebx
jne 0x41057e
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0040ffe5
mov ebp, eax
push edi
push 0
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x412db0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x4bf618]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x412e11
push esi
push dword [0x4bf614]
push 8
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x4bf618]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x4bf610]
jmp 0x412e01
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x412dff
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x412def
push edi
push 0x412ed3
call fcn.004361f5
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x412e1b
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 0x412e31
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x4bf614]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x412e6a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x4bd354]
mov dword [0x4bf618], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x4bf618]
call ebx
mov esi, dword [0x4bf614]
lea eax, [edi + esi]
push eax
push dword [0x4bf618]
mov dword [0x4bf614], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x4bf618]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x412ea9
test ebx, ebx
je 0x412eca
push 0x14
push 0x4bf610
call fcn.00413681
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x412eca
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 0x412f20
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x4bca20]
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 0x412f59
push ecx
push dword [0x4bf61c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x412f68
push ecx
push 0
push dword [0x4bf61c]
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.00436030
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x4130d0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4bca20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov eax, ecx
ret

Function at 0x413120
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4bca20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret
Function at 0x413b10
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x4bca20]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x413b2e
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 0x413b52
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x413b6d
cmp edx, 0x100000
jle 0x413b80
cmp ecx, 0x100000
jge 0x413b67
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x4bf61c]
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 0x413bf2
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x413c47
push dword [esp + 0x10]
push 0x413ca6
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x4bf634]
test edi, edi
je 0x413ca0
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x413c3f
cmp byte [edi + 0x10], 0
je 0x413c3f
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 0x413c1b
jmp 0x413ca0
mov edi, dword [0x4bf634]
test edi, edi
je 0x413ca0
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x413c99
cmp byte [edi + 0x11], 0
je 0x413c72
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x413c89
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 0x4bf634
call fcn.004136b0
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x413c54
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x413de0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x4bca20]
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 0x4145e4
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 0x4146a3
cmp dword [esp + 0x24], 2
je 0x4146a3
push 0x2000
push ebp
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x414672
cmp dword [esp + 0x18], 2
jne 0x41468e
cmp dword [esp + 0x28], 0xffffffff
je 0x414636
cmp ebp, dword [esp + 0x28]
jae 0x41468e
add ebp, 2
test ebx, ebx
jne 0x41465b
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x41468e
cmp ax, 0xd
je 0x414672
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 0x414622
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004163c0
jmp 0x414735
push eax
push 0
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x4146c1
cmp ebp, dword [esp + 0x28]
jae 0x414719
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 0x414719
cmp dword [esp + 0x18], 1
jne 0x414719
inc ebp
test ebx, ebx
jne 0x414706
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x414719
cmp al, 0xd
je 0x4146b4
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x4146b4
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x414730
call fcn.004161d0
jmp 0x414735
call fcn.00416360
push esi
push 0
push dword [0x4bd354]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10