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

Disassembly:
sub esp, 0x88
mov eax, dword [esp + 0x90]
push ebx
push esi
mov esi, dword [esp + 0x94]
lea ebx, [eax + 7]
shr ebx, 3
and eax, 7
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
jne 0x100736dd
mov dword [esp + 0x10], 8
push ebp
push edi
lea eax, [ebx - 1]
xor edx, edx
xor ecx, ecx
xor edi, edi
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
jbe 0x100737ad
mov ebp, dword [esi]
xor ebp, ecx
mov ecx, dword [esi + 4]
xor ecx, edx
mov dword [esi], ebp
test edi, edi
mov dword [esi + 4], ecx
jne 0x1007377f
cmp ebx, 2
push edi
jbe 0x10073772
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.10073add
mov edi, dword [esp + 0x34]
add esp, 0xc
mov dword [esp + 0x30], edi
lea eax, [esp + 0x30]
mov ebx, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x2c]
add ecx, edx
mov ebp, edi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, edi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x34]
xor ebp, edx
dec ebx
mov dword [esp + 0x34], ebp
jne 0x10073733
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x1007378d
push 0
push esi
call fcn.10073add
add esp, 0xc
jmp 0x1007378d
lea eax, [esp + 0x30]
push eax
push esi
call fcn.10073598
add esp, 8
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
inc edi
lea eax, [ebx - 1]
mov dword [esp + 0x10], ecx
cmp edi, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], edi
jb 0x100736fc
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jbe 0x100737d8
mov ebp, esi
lea ecx, [esp + 0x10]
sub ebp, ecx
mov cl, byte [esp + edi + 0x10]
lea eax, [esp + edi + 0x10]
mov dl, byte [ebp + eax]
xor cl, dl
inc edi
mov byte [eax], cl
mov eax, dword [esp + 0x18]
cmp edi, eax
jb 0x100737bf
pop edi
cmp ebx, 2
pop ebp
jbe 0x100737f3
lea eax, [esp + 0x28]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.10073598
add esp, 8
jmp 0x10073816
cmp ebx, 1
jne 0x10073805
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
call fcn.10073add
add esp, 0xc
cmp ebx, 1
jbe 0x1007384a
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
jbe 0x10073831
mov dl, byte [esi + eax - 8]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jb 0x10073825
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi - 8], eax
mov dword [esi - 4], ecx
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esi], edx
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x88
ret
Function at 0x10073862
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x90
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0x98]
push ebp
lea ebp, [eax + 7]
push esi
shr ebp, 3
and eax, 7
push edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], eax
jne 0x10073895
mov dword [esp + 0x20], 8
xor edx, edx
cmp ebp, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
jbe 0x1007397e
lea eax, [ebp - 2]
xor esi, esi
cmp eax, edx
mov dword [esp + 0x24], esi
jbe 0x1007397e
jmp 0x100738c5
xor edx, edx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp esi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jne 0x10073935
push edx
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.10073add
mov esi, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x38], esi
lea eax, [esp + 0x38]
mov edi, 0x19
mov ecx, dword [eax]
mov edx, dword [esp + 0x34]
add ecx, edx
mov ebp, esi
mov dword [eax + 4], ecx
mov edx, dword [eax]
and edx, 0x1f
mov ecx, 0x20
sub ecx, edx
add eax, 4
shl ebp, cl
mov ecx, edx
mov edx, ebp
mov ebp, esi
shr ebp, cl
or edx, ebp
mov ebp, dword [esp + 0x3c]
xor ebp, edx
dec edi
mov dword [esp + 0x3c], ebp
jne 0x100738f6
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x10073943
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.10073621
add esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor eax, edx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add ebx, 8
inc esi
lea eax, [ebp - 2]
cmp esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], esi
jb 0x100738c3
xor edx, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
cmp ecx, edx
mov dword [esp + 0x14], edx
jbe 0x100739a3
mov eax, ecx
lea esi, [ebx + 8]
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebp, 1
jne 0x100739b8
push edx
push edx
push ebx
call fcn.10073add
add esp, 0xc
jmp 0x10073a40
cmp ebp, 2
jne 0x100739ca
push edx
push edx
push ebx
call fcn.10073add
add esp, 0xc
jmp 0x100739dd
lea ecx, [esp + 0x38]
push ecx
push ebx
call fcn.10073621
add esp, 8
cmp ebp, 1
jbe 0x10073a40
mov edx, dword [ebx]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x20]
xor esi, edx
mov edx, dword [esp + 0x14]
xor edx, eax
xor eax, eax
test edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
jbe 0x10073a1e
mov ecx, ebx
lea edx, [esp + 0x10]
sub ecx, edx
mov dl, byte [eax + ebx + 8]
lea esi, [esp + eax + 0x10]
inc eax
mov byte [esi + ecx], dl
mov dl, byte [esi]
mov byte [eax + ebx + 7], dl
cmp eax, edi
jb 0x10073a08
cmp ebp, 2
jne 0x10073a32
push 0
push 0
push ebx
call fcn.10073add
add esp, 0xc
jmp 0x10073a40
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.10073621
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [esp + 0x1c]
xor eax, edx
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
Function at 0x100b8006
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcf4
push esi
push 0x102e3084
call fcn.100f1bf0
add esp, 4
test eax, eax
jne 0x100b8031
mov eax, dword [ebp + 8]
mov dword [eax], 0
xor eax, eax
jmp 0x100b821c
mov dword [ebp - 0xc], 0
push 0x102e3084
push 0xc80
lea ecx, [ebp - 0xc90]
push ecx
push 0x102e3188
push str.CustomFonts
push str.Font
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0xc90]
push edx
call fcn.100f1bf0
add esp, 4
test eax, eax
jne 0x100b8081
mov eax, dword [ebp + 8]
mov dword [eax], 0
xor eax, eax
jmp 0x100b821c
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
push 0x2c
lea edx, [ebp - 0xc90]
push edx
call fcn.100f29c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100b80c9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
push 0x2c
mov ecx, dword [ebp - 8]
push ecx
call fcn.100f29c0
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x100b809e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 0xc]
shl edx, 2
push edx
call fcn.10004d70
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x100b80f5
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0xc]
jge 0x100b8219
push 0x2c
lea edx, [ebp - 0xc90]
push edx
call fcn.100f29c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100b81d7
lea eax, [ebp - 0xc90]
push eax
call fcn.100f1bf0
add esp, 4
mov esi, eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.100f1bf0
add esp, 4
sub esi, eax
push esi
lea edx, [ebp - 0xc90]
push edx
lea eax, [ebp - 0xcf4]
push eax
call fcn.100f1710
add esp, 0xc
lea ecx, [ebp - 0xc90]
push ecx
call fcn.100f1bf0
add esp, 4
mov esi, eax
mov edx, dword [ebp - 8]
push edx
call fcn.100f1bf0
add esp, 4
sub esi, eax
mov byte [ebp + esi - 0xcf4], 0
lea eax, [ebp - 0xcf4]
push eax
call fcn.100f1bf0
add esp, 4
add eax, 1
push eax
call fcn.10004d70
add esp, 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4], eax
lea eax, [ebp - 0xcf4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4]
push eax
call fcn.100f2830
add esp, 8
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0xc90]
push eax
call fcn.100f2830
add esp, 8
jmp 0x100b8214
lea ecx, [ebp - 0xc90]
push ecx
call fcn.100f1bf0
add esp, 4
add eax, 1
push eax
call fcn.10004d70
add esp, 4
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [ecx + edx*4], eax
lea edx, [ebp - 0xc90]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
push edx
call fcn.100f2830
add esp, 8
jmp 0x100b80ec
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100d3d50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x102f1678], 0
je 0x100d3d82
push 1
push 0x102e53ec
mov eax, dword [0x102e53d8]
push eax
call fcn.100f8efb
add esp, 0xc
xor ecx, ecx
mov cl, byte [0x102e53ec]
mov al, byte [ecx + 0x10107a60]
jmp 0x100d3df7
mov edx, dword [0x102e5460]
mov ax, word [edx]
mov word [ebp - 4], ax
cmp dword [0x102e53dc], 0
jne 0x100d3dad
movsx ecx, word [ebp - 4]
sar ecx, 8
and ecx, 0xff
mov byte [0x102e53ec], cl
jmp 0x100d3dca
movsx edx, word [ebp - 4]
and edx, 0xff
mov byte [0x102e53ec], dl
mov eax, dword [0x102e5460]
add eax, 2
mov dword [0x102e5460], eax
mov ecx, dword [0x102f1468]
add ecx, 1
mov dword [0x102f1468], ecx
mov edx, 1
sub edx, dword [0x102e53dc]
mov dword [0x102e53dc], edx
xor eax, eax
mov al, byte [0x102e53ec]
mov al, byte [eax + 0x10107a60]
mov esp, ebp
pop ebp
ret
Function at 0x100dc110
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x100dc143
push esi
call fcn.100dd840
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x100dc13c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x100dc1c9
mov eax, dword [esi + 0x1b4]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100dc1b2
mov eax, dword [esi + 8]
test eax, eax
je 0x100dc167
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b4]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100dc1ae
cmp eax, 2
je 0x100dc1b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100dc15a
cmp eax, 3
je 0x100dc18d
cmp eax, 1
jne 0x100dc15a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x100dc15a
mov edx, dword [esi + 0x140]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x100dc15a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.100dc200
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x100dc1e9
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.100dc200
add esp, 4
pop esi
ret

Function at 0x100de8f0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x100de9ad
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x100de9ad
cmp byte [eax + 1], 0x64
jne 0x100de9ad
cmp byte [eax + 2], 0x6f
jne 0x100de9ad
cmp byte [eax + 3], 0x62
jne 0x100de9ad
cmp byte [eax + 4], 0x65
jne 0x100de9ad
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov dword [esi + 0x124], 1
mov byte [esi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x100f03e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100f0400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100f2669
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100f0423
test byte [esp + 8], 2
je 0x100f0423
call fcn.100f26dc
mov dword [eax], 0xd
call fcn.100f26e5
mov dword [eax], 5
jmp 0x100f03fc
xor eax, eax
ret
Function at 0x401c57
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x44b040]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x401ca0
push str.SetDefaultDllDirectories
push 0x443540
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ca0
push 0xc00
call eax
test eax, eax
jne 0x401d3c
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401d3c
cmp eax, 0x104
ja 0x401d3c
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401cd7
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x401d3b
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401cf8
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x401cf5
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00420b18
leave
ret
Function at 0x40646a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
xor ecx, ecx
inc eax
push edi
push 0x20
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
pop ebx
cmp eax, ebx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], ecx
cmova eax, ebx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x70], ecx
mov dword [esi + 0x88], ecx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], ecx
mov dword [esi + 0x80], ecx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x58], ecx
cmp eax, dword [esi + 0x20]
je 0x40650f
lea edi, [esi + 0xc8]
cmp dword [edi + 8], ecx
je 0x4064f0
mov ecx, edi
call fcn.004053a4
xor ecx, ecx
add edi, 0x28
sub ebx, 1
jne 0x4064e2
cmp dword [esi + 0x5c], ebx
je 0x40650a
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.004052b3
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.00405359
mov edi, eax
test edi, edi
jne 0x406576
lea ecx, [ebx + 0x20]
call fcn.0040666e
mov edi, eax
test edi, edi
jne 0x406576
lea ecx, [ebx + 0x1c]
call fcn.0040666e
mov edi, eax
test edi, edi
jne 0x406576
push ebx
call fcn.004061f7
mov edi, eax
test edi, edi
je 0x406576
and dword [esi + 0x44], 0
mov ecx, esi
call fcn.004053ff
mov ecx, edi
call fcn.004052a5
test eax, eax
je 0x406584
mov dword [esi + 0x40], eax
cmp dword [esi + 0x38], 0
jne 0x40659a
cmp dword [esi + 0x40], 0
jne 0x40659a
cmp dword [esi + 0x3c], 0
jne 0x40659a
and dword [esi + 0x44], 0
xor ecx, ecx
cmp dword [esi + 0x44], ecx
pop edi
pop esi
cmovne eax, ecx
pop ebx
ret

Function at 0x40661c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
xor eax, eax
push eax
push dword [ebp + 8]
push edx
push eax
push eax
call fcn.004264ce
add esp, 0x18
mov dword [esi], eax
mov ecx, eax
call fcn.004065b7
pop esi
leave
ret 4

Function at 0x40836f
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret
Function at 0x408399
Capabilities:
Create directory

Disassembly:
push 0x3c
mov eax, 0x4399df
call fcn.00439103
mov esi, ecx
xor ebx, ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4083b9
mov al, 1
jmp 0x4083f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4083ca
xor al, al
jmp 0x4083f7
lea ecx, [ebp - 0x48]
call fcn.004083fd
push ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.00408f6e
test al, al
je 0x4083ed
lea ecx, [ebp - 0x48]
call fcn.00408308
mov bl, al
lea ecx, [ebp - 0x48]
call fcn.00408419
mov al, bl
call fcn.004390e0
ret

Function at 0x408f5c
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
ret

Function at 0x409512
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439ba9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40955b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40955b
xor al, al
jmp 0x40956f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret 4
Function at 0x41b234
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ecx
mov dword [esp + 0xc], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
jg 0x41b25f
jl 0x41b256
test edi, edi
jne 0x41b25f
xor eax, eax
xor edx, edx
jmp 0x41b340
cmp dword [eax + 0x38], 0
je 0x41b274
push ebx
push edi
push dword [ebp + 8]
call fcn.0041b8d3
jmp 0x41b340
mov esi, edi
mov dword [esp + 0x10], esi
call fcn.0041c11d
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41b2c7
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
call fcn.0041ada6
mov ecx, dword [esp + 0x14]
mov esi, dword [eax]
push esi
call fcn.0041c1a0
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.0041c50e
mov eax, dword [ebp + 8]
sub dword [esp + 0x10], esi
add eax, esi
mov ecx, dword [esp + 0x14]
push esi
mov dword [esp + 0x1c], eax
call fcn.0041c17b
mov esi, dword [esp + 0x10]
jmp 0x41b2d2
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dword [ecx + 0x4c], 0
je 0x41b337
call fcn.0041bf1e
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, 0xfff
cmp esi, eax
jbe 0x41b31e
push dword [ecx + 0x4c]
push eax
push 1
push edx
call fcn.00427ca5
mov edx, dword [esp + 0x28]
add esp, 0x10
mov esi, dword [esp + 0x10]
add edx, eax
sub esi, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
cmp eax, 0xfff
jne 0x41b337
mov ecx, dword [esp + 0x14]
jmp 0x41b2e5
test esi, esi
je 0x41b337
push dword [ecx + 0x4c]
push esi
push 1
push edx
call fcn.00427ca5
mov esi, dword [esp + 0x20]
add esp, 0x10
sub esi, eax
sub edi, esi
mov eax, edi
sbb ebx, 0
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x421775
Capabilities:
Parse pe header

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

Function at 0x42239e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4223c5
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4223c8
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0042237a
pop esi
leave
ret 8

Function at 0x42ce24
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f09c
push 0x43f094
push str.FlsAlloc
push 0x1f
call fcn.0042ccac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ce58
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c230]
call esi
jmp 0x42ce5e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42cea2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f0ac
push 0x43f0a4
push str.FlsGetValue
push 0x21
call fcn.0042ccac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42ced9
push dword [ebp + 8]
mov ecx, esi
call dword [0x43c230]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42cee1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43f0b4
push 0x43f0ac
push str.FlsSetValue
push 0x22
call fcn.0042ccac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42cf1b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43c230]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]