joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a8a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
cmp dword [ecx + 0x18], 0x10
push ebx
push esi
push edi
jb 0x40a8b7
mov edx, dword [ecx + 4]
jmp 0x40a8ba
lea edx, [ecx + 4]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40a8d3
mov dword [esp + 0x1c], eax
jmp 0x40a8e3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a8d6
sub eax, edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.0040b420
mov edi, 8
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x40a904
mov esi, dword [eax + 4]
jmp 0x40a907
lea esi, [eax + 4]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040b420
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x40a923
mov eax, dword [eax + 4]
jmp 0x40a926
add eax, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
cmp dword [esp + 0x38], edi
jb 0x40a946
mov eax, dword [esp + 0x24]
push eax
call fcn.00455c1a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], cx
cmp dword [esp + 0x54], edi
jb 0x40a970
mov edx, dword [esp + 0x40]
push edx
call fcn.00455c1a
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a980
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov dword [esp + 4], eax
test eax, eax
jne 0x40a998
mov dword [esp + 8], eax
jmp 0x40a9ad
lea edx, [eax + 1]
jmp 0x40a9a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a9a0
sub eax, edx
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.0040b420
add esp, 8
cmp dword [eax + 0x18], 8
jb 0x40a9ca
mov eax, dword [eax + 4]
jmp 0x40a9cd
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
cmp dword [esp + 0x24], 8
jb 0x40a9ef
mov edx, dword [esp + 0x10]
push edx
call fcn.00455c1a
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bf60
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x5f5608], 0
je 0x40bf75
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x3c
call fcn.004560e4
mov edi, eax
add esp, 4
test edi, edi
je 0x40bfa5
mov esi, edi
call fcn.0040cda0
lea esi, [edi + 0x18]
call fcn.0040d2d0
mov dword [edi + 0x38], 1
mov dword [0x5f5608], edi
jmp 0x40bfaf
mov dword [0x5f5608], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x18], cx
mov ecx, eax
mov dword [ebp - 4], 7
mov dword [ebp - 8], 0
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40bfd0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040ab20
mov edi, dword [0x5f5608]
lea edx, [ebp - 0x1c]
push edx
call fcn.0040cce0
cmp dword [ebp - 4], 8
pop edi
pop esi
jb 0x40c00c
mov eax, dword [ebp - 0x18]
push eax
call fcn.00455c1a
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x40cce0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x20]
push edx
xor esi, esi
mov dword [ebp - 0x24], esi
xor ecx, ecx
push 3
push eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], esi
mov word [ebp - 0x1c], cx
call fcn.00403fc0
add esp, 0xc
cmp dword [ebp - 0xc], esi
je 0x40cd4b
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], esi
jae 0x40cd2c
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [ebp - 0x24]
mov esi, eax
push esi
push edx
push edi
call fcn.0040c0a0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 8
jb 0x40cd5d
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00455c1a
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045633d
mov esp, ebp
pop ebp
ret 4

Function at 0x40f120
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
cmp dword [eax + 0x18], 8
push ebx
push esi
jb 0x40f136
mov ebx, dword [eax + 4]
jmp 0x40f139
lea ebx, [eax + 4]
lea eax, [ebp - 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40f14f
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push esi
call fcn.00459179
mov edi, eax
add esp, 8
test edi, edi
je 0x40f1c4
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f1bb
lea edx, [ebp - 8]
push edx
lea eax, [ebp + 8]
push eax
push 0x56d17c
push edi
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f1bb
cmp dword [ebp + 8], 0
je 0x40f1bb
push 0x14
call fcn.004560e4
mov esi, eax
add esp, 4
test esi, esi
je 0x40f1c4
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
call fcn.0040ef60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.00456154
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f400
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, word [edi + 8]
mov eax, dword [ebp + 0xc]
mov dx, word [edi + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x224], eax
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], dx
call esi
movzx ecx, word [edi + 8]
mov word [ebp - 0x10], ax
mov ax, word [edi + 0xc]
mov edx, 0x4e4
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], dx
call esi
mov word [ebp - 8], ax
mov eax, 0x4e4
mov word [ebp - 6], ax
xor esi, esi
jmp 0x40f470
movzx eax, word [ebp + esi*2 - 0x14]
movzx ecx, word [ebp + esi*2 - 0x12]
inc esi
push ebx
movzx ecx, cx
push ecx
movzx edx, ax
push edx
push 0x56d388
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
inc esi
call fcn.00457c1f
mov eax, dword [edi + 4]
add esp, 0x1c
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x220], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f4d9
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x40f4f2
cmp esi, 8
jb 0x40f470
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045633d
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f4f7
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.0040ab20
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0045633d
mov esp, ebp
pop ebp
ret 8
Function at 0x410fd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x294
mov eax, dword [0x573510]
xor eax, esp
mov dword [esp + 0x290], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x411126
cmp byte [0x5f563c], 0
je 0x411126
push 0x104
lea eax, [esp + 0x8c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x88]
push 0x5c
push ecx
call fcn.0045995f
add esp, 8
test eax, eax
je 0x411035
xor edx, edx
mov word [eax + 2], dx
push 0x56d4ec
lea eax, [esp + 0x8c]
push 0x104
push eax
call fcn.0045998b
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x41105e
mov ecx, dword [esi + 4]
mov dword [esp + 8], ecx
jmp 0x411065
lea edx, [esi + 4]
mov dword [esp + 8], edx
mov eax, dword [esi + 0x14]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x14], eax
call fcn.0040b420
add esp, 8
cmp dword [esp + 0x80], 0
je 0x41111d
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004561f0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x90]
mov dword [esp + 0x44], 0x44
call fcn.00405450
push eax
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4110ff
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
jmp 0x41111d
push 0x40010
push 0x56d510
push 0
lea ecx, [esp + 0x78]
call fcn.00405450
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x6c]
call fcn.0040e510
mov ecx, dword [esp + 0x294]
pop esi
xor ecx, esp
call fcn.0045633d
mov esp, ebp
pop ebp
ret
Function at 0x412d40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x412d62
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop ebp
ret

Function at 0x412d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x412ec6
push ebx
push edi
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x264]
call fcn.0040aa70
push 0xffffffffffffffff
xor edi, edi
push edi
lea eax, [ebp - 0x264]
xor edx, edx
mov ebx, 7
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x234], edi
mov word [ebp - 0x244], dx
call fcn.00402d90
push 0xffffffffffffffff
xor ecx, ecx
push edi
lea edx, [ebp - 0x248]
mov word [ebp - 0x228], cx
push edx
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], edi
call fcn.00402d90
lea eax, [ebp - 0x22c]
call fcn.0040eab0
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x22c]
push eax
mov ecx, esi
call fcn.00402d90
mov esi, 8
cmp dword [ebp - 0x214], esi
jb 0x412e5b
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00455c1a
add esp, 4
xor edx, edx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], edi
mov word [ebp - 0x228], dx
cmp dword [ebp - 0x230], esi
jb 0x412e87
mov eax, dword [ebp - 0x244]
push eax
call fcn.00455c1a
add esp, 4
mov dword [ebp - 0x234], edi
xor ecx, ecx
pop edi
mov dword [ebp - 0x230], ebx
mov word [ebp - 0x244], cx
pop ebx
cmp dword [ebp - 0x24c], esi
jb 0x412eb5
mov edx, dword [ebp - 0x260]
push edx
call fcn.00455c1a
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045633d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0045633d
mov esp, ebp
pop ebp
ret

Function at 0x412fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [eax + 0x18], 8
jb 0x412ff8
mov eax, dword [eax + 4]
jmp 0x412ffb
add eax, 4
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x413055
cmp esi, 0xffffffff
je 0x413055
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push ecx
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41304e
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x41304e
lea ecx, [ebp - 8]
mov esi, eax
call fcn.00413900
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x20c]
push ecx
xor eax, eax
push 0x104
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4131af
cmp eax, 0x104
ja 0x4131af
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x228]
call fcn.0040aa70
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], 0
mov word [ebp - 0x25c], ax
call fcn.00402d90
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], dx
call fcn.00402d90
lea eax, [ebp - 0x244]
call fcn.0040eab0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x244]
push ecx
mov ecx, esi
call fcn.00402d90
mov esi, 8
cmp dword [ebp - 0x22c], esi
jb 0x413153
mov edx, dword [ebp - 0x240]
push edx
call fcn.00455c1a
add esp, 4
xor eax, eax
mov dword [ebp - 0x22c], 7
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
cmp dword [ebp - 0x248], esi
jb 0x413187
mov ecx, dword [ebp - 0x25c]
push ecx
call fcn.00455c1a
add esp, 4
cmp dword [ebp - 0x210], esi
jb 0x41319e
mov edx, dword [ebp - 0x224]
push edx
call fcn.00455c1a
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045633d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0045633d
mov esp, ebp
pop ebp
ret
Function at 0x413dc0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004585a0
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x1008]
push edx
lea edx, [ebp - 0x804]
push edx
lea edx, [ebp - 0x100c]
push edx
push 0
mov dword [ebp - 0x1008], 0
push eax
mov eax, dword [ecx]
push eax
mov dword [ebp - 0x100c], 1
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x413edf
mov eax, dword [ebp - 0x100c]
cmp eax, 1
jne 0x413e72
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413e40
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x804]
push ecx
mov ecx, edi
call fcn.0040ab20
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045633d
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x413eda
push 0x400
lea edx, [ebp - 0x1004]
push edx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x413ec3
cmp eax, 0x400
ja 0x413ec3
lea ecx, [ebp - 0x1004]
push ecx
mov ecx, edi
call fcn.0040aaf0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045633d
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045633d
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045633d
mov esp, ebp
pop ebp
ret 8

Function at 0x413f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov dword [ebp - 4], 0
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x413f15
mov edx, dword [ebp + 8]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x414050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
test esi, esi
je 0x414132
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004561f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x414129
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
call fcn.0040aa70
push 0x1e
push 0x56d598
lea ecx, [ebp - 0x228]
call fcn.0040a330
push esi
lea ecx, [ebp - 0x244]
call fcn.0040aa70
push 0
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x244]
call fcn.004041e0
add esp, 4
lea ecx, [ebp - 0x244]
cmp al, 1
jne 0x414119
call fcn.0040e510
lea ecx, [ebp - 0x228]
call fcn.0040e510
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045633d
mov esp, ebp
pop ebp
ret
call fcn.0040e510
lea ecx, [ebp - 0x228]
call fcn.0040e510
push esi
call fcn.0041cc60
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045633d
mov esp, ebp
pop ebp
ret

Function at 0x414140
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041cc60
Function at 0x414ae0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x170
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x168], eax
mov dword [esp + 0x16c], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], 0xc3d2e1f0
call fcn.00414540
call fcn.00414460
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov esp, ebp
pop ebp
ret
Function at 0x415fe0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
test dword [0x5f576c], 0xfffffffe
mov dword [ebp - 4], 0
jne 0x416042
push 0x5f576c
call fcn.0041a540
add esp, 4
test al, al
je 0x416042
mov dword [0x5f5770], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5f5770], eax
cmp eax, 0xffffffff
jne 0x416029
call fcn.00417150
push 0
push 0x5f576c
push 0x5f5770
push 0x5f576c
call fcn.0041a580
add esp, 0x10
mov eax, dword [0x5f576c]
mov esp, ebp
pop ebp
ret

Function at 0x417090
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5f5838]
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4170b0
call fcn.0041e7e0
mov ecx, 0x56d884
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4170d7
test dl, dl
je 0x4170d3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4170d7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4170b7
xor eax, eax
jmp 0x4170dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x417128
mov eax, esi
mov dword [ebp - 4], 0xf
mov dword [ebp - 8], 0
mov byte [ebp - 0x18], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4170f7
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00403320
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0041ed30
add esp, 4
cmp dword [ebp - 4], 0x10
jb 0x417128
mov edx, dword [ebp - 0x18]
push edx
call fcn.00455c1a
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417143
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.00417010
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x417170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [0x5f5c6c]
push 0x10
push 1
xor bl, bl
push edi
mov dword [ebp - 0x10], 0
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x417233
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ebx, eax
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41723c
test esi, esi
je 0x41723c
push esi
call fcn.0045565c
push esi
mov edi, eax
push ebx
push edi
call fcn.00456cb0
xor esi, esi
add esp, 0x10
cmp edi, esi
je 0x417219
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0x56d178
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x417219
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x417215
mov edx, dword [eax + 0xc]
mov dword [ecx], edx
mov bl, 1
jmp 0x41721c
mov bl, byte [ebp - 1]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, esi
je 0x417233
push edi
call fcn.00456149
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417320
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x573510]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x150], 0
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004174a0
add esp, 4
push 0x118
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x124]
push 0
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.004561f0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x4173ba
test ecx, ecx
jle 0x4173f3
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x4173f3
cmp eax, 6
jne 0x4173eb
cmp byte [ebp - 0xe], 1
jne 0x4173e3
sub ecx, 0
je 0x4173db
sub ecx, 1
je 0x4173d3
mov dword [esi], eax
jmp 0x4173f3
mov dword [esi], 5
jmp 0x4173f3
mov dword [esi], 3
jmp 0x4173f3
mov dword [esi], 4
jmp 0x4173f3
jle 0x4173f3
mov dword [esi], 7
movzx ecx, word [ebp - 0x14]
movzx edx, word [ebp - 0x12]
xor eax, eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x14c]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [ebp - 0x14c], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x14c]
test eax, eax
je 0x417471
cmp eax, 6
je 0x417468
cmp eax, 9
jne 0x417478
mov dword [esi + 0x18], 1
jmp 0x417478
mov dword [esi + 0x18], 2
jmp 0x417478
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x130]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [esi + 0x20], edx
mov eax, esi
call fcn.0045633d
mov esp, ebp
pop ebp
ret