joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f070
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x18]
push eax
push 0x800
mov dword [esp + 0xc], 1
call fcn.00402160
add esp, 8
test eax, eax
jne 0x40f0a0
mov eax, 1
pop edi
add esp, 0x10
ret
mov edx, dword [0x42b634]
lea ecx, [esp + 0x10]
push ebp
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40f1f1
push eax
call fcn.0041a900
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40f1f1
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x42b634]
push ebx
push esi
push ebp
push eax
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40f1e6
mov al, byte [edi + 0x1a]
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
test al, 2
je 0x40f178
lea eax, [esp + 0x24]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x426a44
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f178
mov edx, dword [esp + 0x14]
mov ecx, dword [edi + 0x2c]
mov eax, dword [edx + 8]
cmp eax, ecx
ja 0x40f136
jne 0x40f178
mov edx, dword [edx + 0xc]
mov eax, dword [edi + 0x30]
cmp edx, eax
jbe 0x40f178
push 0x1d
push 7
call fcn.004039a0
mov cl, byte [eax]
add esp, 8
test cl, cl
je 0x40f1de
mov ecx, dword [0x42baf0]
test ecx, ecx
jne 0x40f1de
mov ecx, dword [0x42b634]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.00403960
add esp, 0x14
cmp eax, 6
jne 0x40f1de
mov eax, dword [0x42baf0]
test eax, eax
jne 0x40f1e6
test byte [edi + 0x1a], 4
je 0x40f1e6
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f1e6
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x3c]
xor ecx, ecx
mov cx, word [edx]
cmp eax, ecx
je 0x40f1e6
push 0x1e
push 7
call fcn.004039a0
add esp, 8
test eax, eax
je 0x40f1e6
mov ecx, dword [0x42b634]
push ecx
push eax
push esi
call ebx
push 0x124
push esi
call fcn.00403960
add esp, 0x14
cmp eax, 6
je 0x40f1e6
mov dword [esp + 0x10], 0
push ebp
call fcn.0041aa63
add esp, 4
pop esi
pop ebx
lea edx, [esp + 0x10]
push edx
call fcn.004021a0
mov eax, dword [esp + 0xc]
add esp, 4
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x40fd90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fe39
lea ecx, [esp + 0xc]
lea edx, [esp]
push ecx
mov ecx, dword [0x42b634]
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fdfc
inc dword [esp]
jmp 0x40fe0c
mov dword [esp], 1
mov dword [esp + 4], 4
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
lea ecx, [esp]
push eax
mov eax, dword [0x42b634]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x10
ret
Function at 0x410350
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x42ba08]
sub esp, 0x208
test eax, eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
jne 0x410433
push 0x42ba08
push 0x104
call fcn.00402160
add esp, 8
test eax, eax
jne 0x41039b
pop edi
pop esi
pop ebp
mov dword [0x42baf4], 0xc
or eax, 0xffffffff
pop ebx
add esp, 0x208
ret
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, 1
mov eax, dword [0x42ba08]
push eax
push 0x104
call ebp
mov ecx, dword [0x42ba08]
push ecx
call fcn.004020b0
mov edx, dword [0x42ba08]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
add ecx, edx
push str.icptmp_d
push ecx
call esi
mov edx, dword [0x42ba08]
push edx
call fcn.0041aaf8
add esp, 0x14
test eax, eax
jne 0x4103fa
inc ebx
cmp ebx, 0x3e7
jl 0x4103a6
jmp 0x41040c
mov eax, dword [0x42ba08]
push eax
call fcn.0041aacc
add esp, 4
test eax, eax
je 0x410433
mov ecx, dword [0x42ba08]
mov dword [0x42baf4], 0x11
push ecx
call fcn.0040aa10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov edx, dword [0x42ba08]
push edx
call fcn.004020b0
mov ebx, dword [esp + 0x220]
mov ecx, dword [0x42ba08]
lea edx, [esp + 0x14]
mov eax, dword [ebx + 6]
push eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [0x42ba08]
push eax
call fcn.004020f0
lea ecx, [esp + 0x28]
push 0
push ecx
call fcn.004010e0
mov ebp, dword [esp + 0x244]
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
jne 0x41052e
mov eax, dword [0x42b9f4]
mov edx, dword [ebx + 6]
push edx
lea edx, [esp + 0x118]
mov ecx, dword [eax + 0x70]
add ecx, eax
push ecx
push str._s_d.bin
push edx
call esi
mov eax, dword [esp + 0x230]
mov ecx, dword [ebx + 0xa]
push ebp
push eax
lea edx, [esp + 0x12c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004100d0
add esp, 0x24
test eax, eax
je 0x410507
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.004010e0
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x41052e
lea edx, [esp + 0x10]
mov dword [0x42baf4], 0x10
push edx
call fcn.0040aa10
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
lea eax, [esp + 0x114]
mov dword [0x42baf4], 0x10
push eax
call fcn.0040aa10
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push ebp
call fcn.00401ea0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x410550
Capabilities:
Set current directory

Disassembly:
mov eax, dword [0x42ba08]
test eax, eax
je 0x4105ee
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push eax
call ebx
test eax, eax
je 0x4105e0
push esi
push 1
push 0x118
call fcn.0041a9b2
mov esi, eax
add esp, 8
test esi, esi
je 0x4105c9
push edi
push esi
push str..bin
call fcn.0041b5b1
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x4105bf
test byte [esi], 0x10
jne 0x4105a8
lea eax, [esi + 0x14]
push eax
call fcn.0041ad30
add esp, 4
push esi
push edi
call fcn.0041b67b
add esp, 8
test eax, eax
je 0x410597
push edi
call fcn.0041b740
add esp, 4
push esi
call fcn.0041aa63
add esp, 4
pop edi
push 0x426aa0
call ebx
mov ecx, dword [0x42ba08]
push ecx
call fcn.0041b587
add esp, 4
pop esi
push 0x42ba08
call fcn.004021a0
add esp, 4
pop ebx
ret

Function at 0x410670
Capabilities:
Copy file

Disassembly:
push ecx
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
xor ebp, ebp
call fcn.00402160
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edx, ebx
add esp, 8
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410695
push 0x5c
push ebx
call fcn.0041a7b0
add esp, 8
test eax, eax
je 0x4106b1
inc eax
jmp 0x4106b3
mov eax, ebx
mov edi, dword [esp + 0x20]
mov edx, eax
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4106bd
mov esi, dword [esp + 0x18]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x410702
mov dword [0x42baf4], 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x42bae4]
mov dword [0x42baf8], eax
mov ecx, edi
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4106f6
jmp 0x41072d
push 2
push esi
mov ebp, 1
call fcn.0041a75d
add esp, 8
test eax, eax
je 0x41072d
cmp dword [0x42bb2c], 0xd
jne 0x41072d
push 0x180
push esi
call fcn.0041a61c
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call fcn.004021a0
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x411430
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x1c
call fcn.0040b4e0
test eax, eax
je 0x4114bb
call fcn.00410750
test eax, eax
je 0x4114b3
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x4114a6
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call edi
test eax, eax
je 0x411493
lea edx, [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x411474
call fcn.00410750
test eax, eax
jne 0x411461
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
jmp fcn.0040e5d0
add esp, 0x1c
ret
Function at 0x4124b0
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
mov eax, dword [0x42badc]
sub esp, 0x14
cmp eax, 0xffffffff
push ebx
push ebp
push esi
push edi
je 0x412600
mov ecx, dword [0x42bae0]
mov edx, dword [eax*4 + 0x42b910]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4124d2
mov eax, dword [0x42b9d0]
test eax, eax
je 0x412600
cmp dword [eax + 8], 1
jne 0x412600
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x412600
mov edi, 0x4261f8
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dword [0x4260ec], 0x4093d0
test ecx, ecx
mov dl, 0x2c
lea ebp, [esp + 0x10]
jle 0x41253f
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x4261f8]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x412525
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x4125cc
mov edi, 0x426204
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov dl, 0x2c
test ecx, ecx
lea ebp, [esp + 0x10]
jle 0x41258b
mov al, dl
shl al, 7
shr dl, 1
add dl, al
mov al, byte [esi + 0x426204]
xor al, dl
mov byte [ebp], al
inc ebp
inc esi
cmp esi, ecx
jl 0x412571
lea ecx, [esp + 0x10]
mov byte [ebp], 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
test eax, eax
mov dword [esp + 0x20], edx
je 0x4125cc
cmp byte [eax], 0xcc
je 0x4125c0
call eax
test eax, eax
je 0x4125cc
mov dword [0x42ba20], 1
jmp 0x412600
mov eax, dword [0x42b9d0]
mov dword [0x4260f0], 0x40a260
test eax, eax
je 0x4125f6
cmp dword [eax + 8], 1
jne 0x4125f6
mov ecx, dword [eax + 0x14]
mov dword [0x4260ec], 0x409970
test ecx, ecx
je 0x412600
mov dword [0x4260ec], 0x409c10
mov eax, dword [esp + 0x28]
xor esi, esi
mov dword [0x42badc], eax
mov dword [0x42b6c4], esi
mov ecx, dword [eax*4 + 0x42b990]
mov dword [0x42b6c0], esi
cmp ecx, esi
je 0x412633
mov edx, dword [ecx]
add ecx, 4
mov dword [0x42b6c4], edx
mov dword [0x42b6c0], ecx
mov ecx, dword [eax*4 + 0x42b950]
mov edx, dword [0x42bae0]
mov dword [0x42b9d0], ecx
mov ecx, dword [eax*4 + 0x42b910]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x41264d
mov eax, dword [0x42b9d0]
cmp eax, esi
je 0x412675
cmp dword [eax + 8], 1
jne 0x412675
cmp dword [eax + 0x14], esi
jne 0x412675
mov dword [0x4260ec], 0x409970
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x412b00
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x318
push esi
mov esi, dword [esp + 0x320]
test esi, esi
je 0x412b20
push 0x180
push esi
call fcn.0041a61c
add esp, 8
mov eax, dword [0x42ba7c]
test eax, eax
je 0x412b6b
test esi, esi
jne 0x412b4c
mov eax, dword [esp + 0x324]
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov ecx, dword [esp + 0x324]
push 5
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x318
ret
mov eax, dword [esp + 0x324]
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x11c]
push 0x104
push edx
push eax
call edi
test esi, esi
je 0x412b9e
lea ecx, [esp + 0x220]
push 0x104
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x18]
push str.WININIT.INI
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
je 0x412c00
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
lea eax, [esp + 0x224]
push edx
push eax
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0x426ac0
push str.Rename
call esi
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call esi
lea edx, [esp + 0x18]
push 2
push edx
call fcn.004010e0
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x412d18
push ebx
push ebp
call fcn.00401260
mov ebx, eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], ebx
lea ecx, [ebx + 0x200]
push ecx
call fcn.00402120
add esp, 0xc
test eax, eax
je 0x412d0e
mov esi, dword [esp + 0x10]
push ebx
push esi
push ebp
call fcn.00401160
add esp, 0xc
test eax, eax
jne 0x412d01
add ebx, 0xfffffffc
mov edx, esi
test ebx, ebx
jbe 0x412d01
mov eax, 0xfffffffe
sub eax, esi
mov dword [esp + 0x18], eax
cmp byte [edx], 0x78
jne 0x412cd0
cmp byte [edx + 1], 0x79
jne 0x412cd0
cmp byte [edx + 2], 0x7a
jne 0x412cd0
cmp byte [edx + 3], 0x3d
jne 0x412cd0
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x120]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x412cdb
mov eax, dword [esp + 0x18]
inc edx
lea ecx, [eax + edx + 2]
cmp ecx, ebx
jb 0x412c94
jmp 0x412d01
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call fcn.00401200
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebp
call fcn.004011a0
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call fcn.004021a0
add esp, 4
push ebp
call fcn.00401360
add esp, 4
pop ebx
pop edi
pop ebp
mov eax, 1
pop esi
add esp, 0x318
ret
Function at 0x41a61c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41a647
test byte [esp + 8], 0x80
je 0x41a636
and al, 0xfe
jmp 0x41a638
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41a658
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041bbca
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41a77d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041bbca
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x41a79e
test byte [esp + 8], 2
je 0x41a79e
mov dword [0x42bb2c], 0xd
mov dword [0x42bb30], 5
jmp 0x41a779
xor eax, eax
ret

Function at 0x41f1d9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42b140
cmp edx, dword [eax]
je 0x41f1fb
add eax, 8
inc ecx
cmp eax, 0x42b1d0
jl 0x41f1ec
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42b140]
jne 0x41f329
mov eax, dword [0x42bb88]
cmp eax, 1
je 0x41f303
test eax, eax
jne 0x41f22c
cmp dword [0x428bb8], 1
je 0x41f303
cmp edx, 0xfc
je 0x41f329
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41f263
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041de30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041ddb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41f2a6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041ddb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x426618
push edi
call fcn.0041ad80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041de30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041de40
lea eax, [ebp - 0xa0]
push 0x423bdc
push eax
call fcn.0041de40
push dword [esi + 0x42b144]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041de40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00420b35
add esp, 0x2c
pop edi
jmp 0x41f329
lea eax, [ebp + 8]
lea esi, [esi + 0x42b144]
push 0
push eax
push dword [esi]
call fcn.0041ddb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401c90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408054
call sym._EnterCriticalSection_4
mov ebx, dword [0x40804c]
sub esp, 4
test ebx, ebx
je 0x401cdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401cd4
test esi, esi
je 0x401cd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401cb0
mov dword [esp], 0x408054
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ec0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401fe4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401f4e
cmp eax, 4
jne 0x401f70
test esi, esi
je 0x401f62
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401f54
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401faf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401fa1
cmp ecx, 0x40
je 0x401f62
cmp ecx, 4
je 0x401f62
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ec0
lea esi, [esi]
Function at 0x1001ec1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1001ec29
pop dword [ebp - 0x28]
mov eax, 0x1001ec29
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xbfa32889
add dword [ebp - 0x38], 0x8eaf1cc2
mov dword [ebp - 0x34], 0xce074ffa
add dword [ebp - 0x34], 0x642bfc4b
mov dword [ebp - 0x30], 0x677500bd
sub dword [ebp - 0x30], 0x1b28bc8f
mov dword [ebp - 0x2c], 0x5d5228ee
add dword [ebp - 0x2c], 0xa2add712
lea eax, [ebp - 0x38]
push eax
mov eax, 0xf46394ad
add eax, 0x1b9e6b57
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x6a5cb8e8
sub dword [ebp - 0x38], 0xf5ea4f92
mov dword [ebp - 0x34], 0x10c6e675
sub dword [ebp - 0x34], 0xcf5a8500
mov dword [ebp - 0x30], 0x7b1763a2
add dword [ebp - 0x30], 0xe85808ca
mov dword [ebp - 0x2c], 0x8e819951
sub dword [ebp - 0x2c], 0x8e819951
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3bcca
push 0
call eax
mov ecx, 0x3a887836
add ecx, 0xc577cca0
mov edx, eax
mov ebx, 0x392f8e5c
sub ebx, 0x292cd25c
add ebx, dword [ebp - 0x28]
mov edi, 0x3255b5c4
xor dword [ebp - 0x18], edx
mov esi, dword [ebx]
xor dword [ebp - 8], 0xc1d8f29c
add esi, edi
add dword [ebp - 0x10], esi
mov dword [edx], esi
mov dword [ebp - 0x1c], 0x7e347b9e
add edx, 0x5efa6ba0
add edx, 0xa1059464
add ebx, 0x39a5e534
sub ebx, 0x39a5e530
loop 0x1001ed3b
add eax, 0x1062b
mov ebx, eax
add eax, 0x42d21d83
add eax, 0xbd2de282
mov ecx, 0xedae5ce4
sub ecx, 0xddae5ce4
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1c362af3
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x21f1793b
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
jmp 0x431219