joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b720
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x40b753
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b74d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x40b77f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x40b765
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.004308a0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x40b796
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x40b790
cmp byte [esi + 8], 0
je 0x40b790
or eax, 0xffffffff
add esp, 8
ret
Function at 0x40b880
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x40b8c5
cmp byte [esi + 1], 0
je 0x40b8cd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x40b8e2
cmp byte [esi + 1], 0
je 0x40b8d4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40b8eb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40b89e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40b8eb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
cmp ebp, edi
mov dword [esp + 0xc], edi
jae 0x40b8ff
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0042a4d6
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40b91d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
cmp edi, eax
mov dword [esp + 0x18], 0xffffffff
jbe 0x40ba33
jmp 0x40b940
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
cmp eax, edi
mov dword [esp + 0x14], edi
ja 0x40b951
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
cmp ebp, 0x404
mov dword [esp + 0x20], eax
jbe 0x40b96a
mov ebp, 0x404
cmp byte [esi], 0
je 0x40b98f
cmp byte [esi + 1], 0
je 0x40ba33
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40b992
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40b9ba
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b9b4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x40b9e0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40b9cb
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004308a0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x40ba33
lea eax, [ebp - 3]
test eax, eax
jl 0x40ba1e
sub eax, 1
cmp byte [eax + ebx], 0x50
jne 0x40ba0e
cmp byte [eax + ebx + 1], 0x4b
jne 0x40ba0e
cmp byte [eax + ebx + 2], 5
jne 0x40ba0e
cmp byte [eax + ebx + 3], 6
je 0x40ba14
test eax, eax
jge 0x40b9f0
jmp 0x40ba1e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x40ba33
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x40b934
push ebx
call fcn.0042a170
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x40c360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40c37e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x40c372
cmp dword [edi + 0x7c], ebx
je 0x40c38d
call fcn.0040c750
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0040c0d0
add esp, 0xc
test eax, eax
je 0x40c3b4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.0042a4d6
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40c3f5
push 0x4000
call fcn.0042a4d6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x40c402
push esi
call fcn.0042a170
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x40c44a
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0040b1c0
test eax, eax
jne 0x40c44a
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40c474
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x40c47d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
mov al, byte [esi + 0x6c]
neg al
lea edx, [esi + 0x70]
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb eax, eax
and eax, 0xc
cmp ebp, ebx
mov dword [esi + 0x7c], eax
je 0x40c4b6
mov cl, byte [ebp]
cmp cl, bl
je 0x40c4b6
call fcn.0040b0f0
add ebp, 1
jne 0x40c4a5
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x40c840
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x40c8d0
cmp dword [esi + 4], 0xffffffff
jne 0x40c8d0
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c868
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x40c898
cmp al, 0x2f
je 0x40c898
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x40c885
mov ax, word [0x4478b8]
mov word [edi], ax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
call fcn.0040b620
add esp, 4
test eax, eax
jne 0x40c8b6
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.0040ba50
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x40ce30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4545f0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x40ce6d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ce6d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x40cf2d
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x40ce88
cmp al, 0x5c
jne 0x40ce8a
mov esi, ecx
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x40ce80
cmp esi, ebp
je 0x40cec2
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.004308a0
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.0040ce30
add esp, 0x14
test edi, edi
mov byte [esp + 0xc], 0
je 0x40cedf
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x40ced3
mov eax, ebp
mov edx, ebp
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40cee3
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x40cef5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x40cf2d
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.0042963c
add esp, 0x20c
ret
Function at 0x40d4c0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x440970
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebp
push esi
push edi
mov eax, dword [0x4545f0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
cmp dword [ebx + 0x20c], 0
lea edi, [ebx + 0x20c]
je 0x40d4fc
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00411e58
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d516
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], 0
call fcn.00411e58
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d548
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], 1
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00403030
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x26]
mov ebp, dword [esp + 0x10]
movzx edx, word [esp + 0x24]
movzx eax, word [esp + 0x22]
push ebp
push ecx
movzx ecx, word [esp + 0x28]
push edx
movzx edx, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2a]
push ecx
movzx ecx, word [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push str.__04d__02d__02d__02d:_02d:_02d:_03d___s
push edx
call fcn.004034c0
mov esi, dword [esp + 0x3c]
add esp, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov ecx, ebx
call fcn.0040d630
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d61b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x40d630
Capabilities:
Create directory
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44092b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4545f0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
push esi
push edi
mov eax, dword [0x4545f0]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x12c]
test ebp, ebp
mov edi, ecx
jne 0x40d6a2
xor eax, eax
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042963c
add esp, 0x118
ret 4
push 0x102
lea eax, [esp + 0x1a]
push 0
push eax
mov word [esp + 0x20], 0
call fcn.0042c680
lea esi, [edi + 4]
push 0
push esi
call fcn.00429a78
add esp, 0x14
cmp eax, 0xffffffff
jne 0x40d6da
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40d677
add edi, 0x108
push edi
push esi
lea ecx, [esp + 0x1c]
push 0x4478bc
push ecx
call fcn.00429f8b
lea edx, [esp + 0x24]
push 0x44aaa0
push edx
call fcn.0042ab63
mov edi, eax
add esp, 0x18
test edi, edi
je 0x40d677
push edi
call fcn.00433900
push eax
call fcn.0042ba4c
add esp, 8
cmp eax, 0x2faf080
jbe 0x40d745
push edi
call fcn.0042adc9
lea eax, [esp + 0x18]
push 0x44aaa4
push eax
call fcn.0042ab63
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40d677
call fcn.00411e58
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40d75f
push 0x80004005
call fcn.00401600
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], 0
call fcn.004034e0
mov esi, dword [esp + 0x10]
mov ecx, dword [esi - 8]
mov ebp, dword [esi - 0xc]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40d7a9
push 0
lea ecx, [esp + 0x14]
call fcn.004016a0
mov esi, dword [esp + 0x10]
push edi
push ebp
push 1
push esi
call fcn.0042acd5
push edi
push 1
push 1
push 0x44aaa8
call fcn.0042acd5
push edi
call fcn.0042adc9
add esp, 0x24
test esi, esi
jne 0x40d7d3
xor eax, eax
jmp 0x40d7e5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d7d8
sub eax, edx
js 0x40d822
cmp eax, dword [esi - 8]
jg 0x40d822
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [esi - 0x10]
mov dword [esp + 0x124], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d818
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40d679
push 0x80070057
call fcn.00401600
int3
Function at 0x40ddb5
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x4545f0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x40de4d
push 0x4428e4
push 4
push eax
call fcn.0042c587
push eax
call fcn.004033f0
add esp, 0x10
push ebx
push edi
call fcn.0042aa5b
mov edi, dword [eax]
call fcn.0042aa5b
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0042a022
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.0042aa5b
cmp dword [eax], ebx
je 0x40de64
call fcn.0042aa5b
push dword [eax]
call fcn.0040dd36
pop ecx
jmp 0x40de6b
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x40de01
jmp 0x40dedd
call fcn.0042aa5b
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40ded9
cmp dword [ebp - 0x3c], esi
jae 0x40ded9
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0042c680
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x40decb
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x40decb
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x40decb
push ebx
push ebx
push esi
jmp 0x40ded1
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x40dedb
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.0042963c
add ebp, 0xe0
leave
ret
Function at 0x40f6db
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
inc ebp
cmpsb byte [esi], byte es:[edi]
inc ecx
call fcn.0040f32a
push eax
push esi
push dword [ebp + 8]
call fcn.0040f2df
dec dword [ecx - 0xbb7b]
dec dword [ebp + 0x5d88d445]
aam 0x50

Function at 0x410775
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc al, 0x61
xor bl, byte [edx]
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
inc dword [eax]

Function at 0x41ad69
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 0x41ad97
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41adb5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041acd3
jmp 0x41adb5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41adb5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041acd3
test edi, edi
mov eax, edi
jne 0x41ad9f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x458714]
test ecx, ecx
je 0x41ae78
jmp 0x41ad68
ret 8

Function at 0x42963c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4545f0]
jne 0x429646
repz ret
jmp fcn.0042f23a

Function at 0x4299f1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x429a1e
call fcn.0042aa6e
mov dword [eax], esi
call fcn.0042aa5b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042f7ab
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4299fa
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x429a4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042aa81
pop ecx
call fcn.0042aa5b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x429a74
test al, 1
je 0x429a74
test byte [esp + 0xc], 2
je 0x429a74
call fcn.0042aa6e
mov dword [eax], 5
call fcn.0042aa5b
mov dword [eax], 0xd
jmp 0x429a44
xor eax, eax
pop esi
ret
Function at 0x433332
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 + 0x454d70]
je 0x43334d
inc edi
cmp edi, 0x17
jb 0x43333e
cmp edi, 0x17
jae 0x4334cd
push ebp
push 3
call fcn.0043a898
cmp eax, 1
pop ecx
je 0x433499
push 3
call fcn.0043a898
test eax, eax
pop ecx
jne 0x433381
cmp dword [0x4545e0], 1
je 0x433499
cmp ebx, 0xfc
je 0x4334cc
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x458f68
push ebp
call fcn.0042c587
add esp, 0xc
test eax, eax
je 0x4333b7
push esi
push esi
push esi
push esi
push esi
call fcn.0042f6af
add esp, 0x14
push 0x104
mov esi, 0x458f81
push esi
push 0
mov byte [0x459085], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4333fb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042c587
add esp, 0xc
test eax, eax
je 0x4333fb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042f6af
add esp, 0x14
push esi
call fcn.0042c5f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x433440
push esi
call fcn.0042c5f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45927c
push 0x445be4
sub ecx, eax
push ecx
push eax
call fcn.0042e1c5
add esp, 0x14
test eax, eax
je 0x433440
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042f6af
add esp, 0x14
jmp 0x433442
xor esi, esi
push 0x445be0
push ebx
push ebp
call fcn.0042c781
add esp, 0xc
test eax, eax
je 0x433462
push esi
push esi
push esi
push esi
push esi
call fcn.0042f6af
add esp, 0x14
push dword [edi*8 + 0x454d74]
push ebx
push ebp
call fcn.0042c781
add esp, 0xc
test eax, eax
je 0x433484
push esi
push esi
push esi
push esi
push esi
call fcn.0042f6af
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043a6db
add esp, 0xc
jmp 0x4334cc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4334cc
cmp ebp, 0xffffffff
je 0x4334cc
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x454d74]
push dword [esi]
call fcn.0042c5f0
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 0x43a6db
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043026c
xor ebx, ebx
cmp dword [0x4594cc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43a7b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43a891
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x446da8
push edi
call esi
cmp eax, ebx
je 0x43a891
push eax
call fcn.004301fe
mov dword [esp], 0x446d98
push edi
mov dword [0x4594cc], eax
call esi
push eax
call fcn.004301fe
mov dword [esp], 0x446d84
push edi
mov dword [0x4594d0], eax
call esi
push eax
call fcn.004301fe
mov dword [0x4594d4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042c314
test eax, eax
pop ecx
pop ecx
je 0x43a77f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f6af
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43a7b1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004301fe
cmp eax, ebx
pop ecx
mov dword [0x4594dc], eax
je 0x43a7b1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004301fe
pop ecx
mov dword [0x4594d8], eax
mov eax, dword [0x4594d8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43a836
cmp dword [0x4594dc], ecx
je 0x43a836
push eax
call fcn.00430275
push dword [0x4594dc]
mov esi, eax
call fcn.00430275
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43a836
cmp edi, ebx
je 0x43a836
call esi
cmp eax, ebx
je 0x43a803
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43a803
test byte [ebp - 0x18], 1
jne 0x43a836
lea eax, [ebp - 0x10]
push eax
call fcn.0042c34b
test eax, eax
pop ecx
je 0x43a81e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f6af
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43a82d
or dword [ebp + 0x10], 0x200000
jmp 0x43a871
or dword [ebp + 0x10], 0x40000
jmp 0x43a871
mov eax, dword [0x4594d0]
cmp eax, dword [ebp - 8]
je 0x43a871
push eax
call fcn.00430275
cmp eax, ebx
pop ecx
je 0x43a871
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43a871
mov eax, dword [0x4594d4]
cmp eax, dword [ebp - 8]
je 0x43a871
push eax
call fcn.00430275
cmp eax, ebx
pop ecx
je 0x43a871
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4594cc]
call fcn.00430275
cmp eax, ebx
pop ecx
je 0x43a891
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43a893
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f050
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4545f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043efe5
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0042c680
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43f09f
cmp dword [ebp - 0x1c], 5
jb 0x43f0b7
jmp 0x43f0b3
cmp dword [ebp - 0x10], 1
jne 0x43f0b7
cmp dword [ebp - 0x1c], 4
ja 0x43f0b3
jne 0x43f0b7
cmp dword [ebp - 0x18], 0
jbe 0x43f0b7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4475bc
call fcn.0043eed6
test eax, eax
jge 0x43f0d8
mov byte [0x459b3c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042963c
add ebp, 0x78
leave
ret