joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459254
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x459266
add esp, 0xfffffff0
call fcn.004043dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041afb8
mov eax, dword [0x463d30]
mov dword [eax + 4], ebx
mov dword [eax], 0x4595f8
mov eax, dword [0x463d3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x459604
mov eax, ebx
call fcn.00459610
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412c10]
call fcn.00404088
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412c10]
call fcn.00404088
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412c10]
call fcn.00404088
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412c10]
call fcn.00404088
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412c10]
call fcn.00404088
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x454cc0
push eax
push 0
push 0
mov eax, dword [0x463e98]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fdc0]
call fcn.00421614
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fdc0]
call fcn.00421614
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fdc0]
call fcn.00421614
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00459a40
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459910
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459910
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x459910
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4593a3
call fcn.00404434
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4596f4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45989f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x459880
mov dl, 1
mov eax, dword [0x413034]
call fcn.00404088
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ee4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45986f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044bbf0
test al, al
je 0x459862
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4598b0
lea eax, [ebp - 0x254]
call fcn.00409d14
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x459862
xor eax, eax
push ebp
push 0x45985b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4598e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x459844
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405154
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x459844
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405154
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459862
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x459765
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416d0c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4598a6
lea eax, [ebp - 0x260]
call fcn.00404ee4
ret

Function at 0x45a218
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x469ccc]
cmp byte [eax + 0xad], 0
jne 0x45a289
cmp dword [0x469ce8], 0
jne 0x45a24a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45a1d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x469ce8], eax
cmp dword [0x469ce4], 0
jne 0x45a265
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x469ce4], eax
cmp dword [0x469cec], 0
jne 0x45a289
push esp
push 0
push 0
push 0x45a178
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x469cec], eax
pop edx
ret
Function at 0x45a45c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a473
add esp, 0xfffffff0
call fcn.004043dc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041afb8
mov eax, dword [0x463e84]
cmp word [eax + 2], 0
jne 0x45a49b
mov eax, dword [0x463e84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c0cc
mov eax, dword [0x463f34]
cmp word [eax + 2], 0
jne 0x45a4b5
mov eax, dword [0x463f34]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c2d8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412c10]
call fcn.00404088
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412c10]
call fcn.00404088
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x412c10]
call fcn.00404088
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4208d0]
call fcn.00427ef4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45a66c
mov eax, dword [0x463d9c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004282c8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45c99c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x463d9c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d67c
test eax, eax
je 0x45a5bc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004096cc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d6b0
test eax, eax
je 0x45a5d0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405154
mov byte [ebx + 0xd4], 0
push ebx
push 0x45bbdc
call fcn.0041c134
mov dword [ebx + 0xc8], eax
mov eax, dword [0x463c7c]
cmp byte [eax], 0
jne 0x45a621
mov eax, ebx
call fcn.0045a7b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045cb74
mov eax, ebx
call fcn.0045d6d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a661
call fcn.00404434
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45aa30
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45aacf
cmp dword [ebx + 0x94], 0
jne 0x45aac9
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a9b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45aac9
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45aa8f
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45aac9
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414fb4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45aa9e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ace8
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x469ccc]
cmp dword [eax + 0x30], 0
je 0x45ae45
test bl, bl
jne 0x45ad96
cmp dword [esi + 0x9c], 0
jne 0x45ad8b
mov eax, esi
call fcn.0045d554
push eax
push 0x45ac14
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45ad5c
mov eax, dword [0x469ccc]
call fcn.0045dc34
test al, al
je 0x45ad5c
mov eax, dword [0x469cf0]
call fcn.00405dec
mov edi, eax
cmp edi, 0
jl 0x45ad5c
push 0
mov eax, dword [0x469cf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45ad46
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45ad8b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414fb4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45ad6b
inc dword [esi + 0x9c]
jmp 0x45ae45
cmp dword [esi + 0x9c], 0
jle 0x45ae45
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45ae45
cmp dword [esi + 0x44], 0
je 0x45adf1
mov eax, dword [0x469ccc]
call fcn.0045dc34
test al, al
je 0x45adf1
mov eax, dword [0x469cf0]
call fcn.00405dec
mov edi, eax
cmp edi, 0
jl 0x45adf1
push 5
mov eax, dword [0x469cf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45addb
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45ae20
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414fb4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45ae00
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x469cf0
mov ecx, 1
mov edx, dword [0x45abf4]
call fcn.00405fa0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45b8d8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45b942
mov eax, ebx
call fcn.0045dc34
test al, al
jne 0x45b942
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404fd4
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45b92f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45b94f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404f38
jmp 0x45b94f
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404f38
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x45cd58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45cdc6
mov eax, esi
call fcn.004468b4
test al, al
je 0x45cdc6
mov eax, dword [ebx + 0x84]
call fcn.00446504
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45cdc6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45cdba
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446504
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043e498
jmp 0x45cdc6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045cb94
pop esi
pop ebx
ret

Function at 0x45edd0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
xor edx, edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405364
lea eax, [ebp - 0x168]
mov edx, dword [0x407cf0]
call fcn.00405954
xor eax, eax
push ebp
push 0x45ef1a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d4c4
lea eax, [ebp - 0x16c]
mov ecx, 0x45ef30
mov edx, dword [ebp - 8]
call fcn.004051fc
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.004093e0
test eax, eax
jne 0x45eec4
test byte [ebp - 0x158], 0x10
jne 0x45ee82
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.004051fc
mov eax, dword [ebp - 0x170]
call fcn.00405374
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x45eeb5
mov edx, dword [ebp - 0x154]
mov eax, 0x45ef3c
call fcn.004054c0
test eax, eax
jg 0x45eeb5
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 8]
call fcn.004051fc
mov eax, dword [ebp - 0x174]
call fcn.0045edd0
lea eax, [ebp - 0x168]
call fcn.00409430
test eax, eax
je 0x45ee52
mov eax, dword [ebp - 0x14c]
push eax
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 8]
call fcn.00405374
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ef21
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.00404f08
lea eax, [ebp - 0x168]
mov edx, dword [0x407cf0]
call fcn.00405a24
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f08
ret
Function at 0x45ef40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 6]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp edx, dword [ebp + 0xc]
jne 0x45ef85
test edx, edx
jbe 0x45ef81
movzx ebx, word [ebp - 2]
shr ebx, 8
xor bl, byte [eax]
mov byte [ecx], bl
movzx ebx, byte [eax]
add bl, byte [ebp - 2]
movzx ebx, bl
imul bx, word [ebp - 6]
add bx, word [ebp - 4]
mov word [ebp - 2], bx
inc eax
inc ecx
dec edx
jne 0x45ef5b
mov al, 1
jmp 0x45ef87
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x45ef90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 6]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp edx, dword [ebp + 0xc]
jne 0x45efd5
mov esi, eax
mov eax, ecx
test edx, edx
jbe 0x45efd1
movzx ecx, word [ebp - 2]
shr ecx, 8
xor cl, byte [esi]
mov byte [eax], cl
add cl, byte [ebp - 2]
movzx ecx, cl
imul cx, word [ebp - 6]
add cx, word [ebp - 4]
mov word [ebp - 2], cx
inc esi
inc eax
dec edx
jne 0x45efae
mov al, 1
jmp 0x45efd7
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x45f534
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
movzx ecx, cx
dec ecx
test ecx, ecx
jb 0x45f55d
inc ecx
xor esi, esi
mov ebx, edx
add ebx, esi
mov ebx, dword [ebx]
xor ebx, eax
and ebx, 0xff
shr eax, 8
xor eax, dword [ebx*4 + 0x463858]
inc esi
dec ecx
jne 0x45f541
pop esi
pop ebx
ret

Function at 0x45f8b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45f923
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push 0xfa
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00405154
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.0040d4c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f92a
lea eax, [ebp - 0x104]
call fcn.00404ee4
ret
Function at 0x407da0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407ddf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407ddf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407ddf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407ddf
cmp dword [ecx + 0x74], 0xe
jbe 0x407ddf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408aed
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417628
push 0x417620
push str.FlsAlloc
push 0x1f
call fcn.004089ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b21
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
jmp 0x408b27
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408b6b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417638
push 0x417630
push str.FlsGetValue
push 0x21
call fcn.004089ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408ba2
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408baa
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417640
push 0x417638
push str.FlsSetValue
push 0x22
call fcn.004089ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408be4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41612c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40c511
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c5ae
push ebx
push esi
call fcn.0040c4da
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c46e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c55b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c5ad
push edi
push eax
call fcn.00409d81
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c57b
call fcn.0040883f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c5ac
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c46e
add esp, 0x20
test eax, eax
jne 0x40c59a
push edi
call fcn.0040883f
jmp 0x40c5a2
push ebx
call fcn.0040883f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40ed12
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41dff8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40ed52
cmp byte [ebx], 0xa
jne 0x40ed52
or byte [edi + eax + 0x28], 4
jmp 0x40ed57
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x40ee56
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40ee39
inc eax
cmp dl, 0xd
je 0x40ed83
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40eda9
cmp eax, ecx
jae 0x40edb7
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x40ed6b
jmp 0x40ee56
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ee34
cmp dword [ebp - 0x10], 0
je 0x40ee34
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41dff8]
test byte [eax + edi + 0x28], 0x48
je 0x40ee0e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40edf9
mov byte [esi], dl
jmp 0x40ee0a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41dff8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40ee56
cmp byte [ebp - 1], 0xa
jne 0x40ee1d
cmp esi, ebx
jne 0x40ee1d
mov byte [esi], 0xa
jmp 0x40ee55
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004125d7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40ee56
mov byte [esi], 0xd
jmp 0x40ee55
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41dff8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40ee53
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40ee56
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40ee5f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x41dff8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40eea5
cmp word [ebx], dx
jne 0x40eea5
or byte [eax + edi + 0x28], 4
jmp 0x40eeaa
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x40f00d
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x40efed
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40eeeb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40ef21
cmp eax, edx
jae 0x40ef2f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x40eec6
jmp 0x40f00d
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40efe8
cmp dword [ebp - 0x18], 0
je 0x40efe8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41dff8]
test byte [eax + edi + 0x28], 0x48
je 0x40efbe
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x40ef82
mov word [esi], cx
jmp 0x40efb9
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41dff8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41dff8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41dff8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40f00d
pop eax
cmp word [ebp - 4], ax
jne 0x40efce
cmp esi, ebx
jne 0x40efce
mov word [esi], ax
jmp 0x40f00a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004125d7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f00d
push 0xd
pop eax
jmp 0x40efc9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41dff8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40f007
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40f00d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret