joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409dd4
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0xc1059ed8
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x367cd507
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x3070dd17
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xf70e5939
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0xffc00b31
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x68581511
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x64f98fa7
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xbefa4fa4
add esp, 4
pop ebp
ret

Function at 0x409e44
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x6a09e667
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x5be0cd19
add esp, 4
pop ebp
ret
Function at 0x40a660
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax], 0xc1059ed8
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 8], 0x367cd507
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x10], 0x3070dd17
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x18], 0xf70e5939
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x20], 0xffc00b31
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x28], 0x68581511
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x30], 0x64f98fa7
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x38], 0xbefa4fa4
add esp, 4
pop ebp
ret

Function at 0x40a710
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x6a09e667
mov dword [eax], 0xf3bcc908
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 8], 0x84caa73b
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x10], 0xfe94f82b
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x18], 0x5f1d36f1
mov eax, dword [ebp - 4]
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x20], 0xade682d1
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x28], 0x2b3e6c1f
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x30], 0xfb41bd6b
mov eax, dword [ebp - 4]
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x38], 0x137e2179
add esp, 4
pop ebp
ret
Function at 0x40b18c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x13c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x100
mov dword [eax], 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
lea ecx, [ebp - 0x118]
mov edx, dword [ebp - 0x14]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [ebp - 0x12c], eax
call fcn.00409244
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x120]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
sub esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
ja 0x40b212
mov dword [ebp - 0x10], 0
jmp 0x40b354
mov eax, dword [ebp - 0x120]
mov dword [esp], eax
call fcn.0040d850
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x18]
mov esi, esp
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
mov dword [esi], ecx
mov dword [esi + 4], 0
call sub.VERSION.DLL_GetFileVersionInfoA
sub esp, 0x10
lea ecx, [ebp - 0x11c]
mov edx, dword [ebp - 0x18]
lea esi, [ebp - 0x120]
mov edi, esp
mov dword [edi + 0xc], esi
mov dword [edi + 8], ecx
mov dword [edi], edx
mov dword [edi + 4], 0x41dbcc
mov dword [ebp - 0x130], eax
call sub.VERSION.DLL_VerQueryValueA
sub esp, 0x10
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x40b2b7
cmp dword [ebp - 0x120], 4
jne 0x40b2b7
mov eax, dword [ebp - 0x11c]
movzx eax, word [eax]
shl eax, 0x10
mov ecx, dword [ebp - 0x11c]
movzx ecx, word [ecx + 2]
or eax, ecx
mov dword [ebp - 0x124], eax
jmp 0x40b2c1
mov dword [ebp - 0x124], 0x40904e4
lea eax, str.StringFileInfo_08XFileDescription
lea ecx, [ebp - 0x118]
mov edx, dword [ebp - 0x124]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00411894
lea ecx, [ebp - 0x11c]
lea edx, [ebp - 0x118]
mov esi, dword [ebp - 0x18]
lea edi, [ebp - 0x120]
mov ebx, esp
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [ebx], esi
mov dword [ebp - 0x134], eax
call sub.VERSION.DLL_VerQueryValueA
sub esp, 0x10
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x40b340
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x11c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00410168
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0040d860
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0x13c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40e8c0
Capabilities:
Read file via mapping

Disassembly:
push edi
push esi
sub esp, 0x14
call sub.KERNEL32.DLL_GetCurrentProcessId
mov ecx, eax
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x41e5f6], cl
mov ecx, eax
shr ecx, 4
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x41e5f5], cl
mov ecx, eax
shr ecx, 8
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x41e5f4], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x41e5f3], cl
mov ecx, eax
shr ecx, 0x10
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x41e5f2], cl
mov ecx, eax
shr ecx, 0x14
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x41e5f1], cl
mov ecx, eax
shr ecx, 0x18
and ecx, 0xf
mov cl, byte [ecx + str.0123456789ABCDEF]
mov byte [0x41e5f0], cl
shr eax, 0x1c
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [0x41e5ef], al
mov dword [esp + 8], str.LocalFastMM_PID________
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.DLL_OpenFileMappingA
sub esp, 0xc
mov esi, eax
test esi, esi
je 0x40e9cb
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call sub.KERNEL32.DLL_MapViewOfFile
sub esp, 0x14
mov edi, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.DLL_UnmapViewOfFile
sub esp, 4
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
jmp 0x40e9cd
xor edi, edi
mov eax, edi
add esp, 0x14
pop esi
pop edi
ret

Function at 0x40e9e0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x18
xor eax, eax
mov ecx, fcn.0040f2aa
cmp dword [0x41de8c], ecx
jne 0x40eae5
mov ecx, fcn.0040f62e
cmp dword [0x41de90], ecx
jne 0x40eae5
mov ecx, fcn.0040f826
cmp dword [0x41de94], ecx
jne 0x40eae5
mov ecx, fcn.0040fb40
cmp dword [0x41de98], ecx
jne 0x40eae5
mov ecx, 0x40dbe0
cmp dword [0x41de9c], ecx
jne 0x40eae5
xor eax, eax
mov ecx, 0x40dbf0
cmp dword [0x41dea0], ecx
jne 0x40eae5
mov ecx, dword [0x4219e0]
test ecx, ecx
jne 0x40eae5
call fcn.0040e8c0
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x40eae5
mov dword [esp + 0x14], str.LocalFastMM_PID________
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
sub esp, 0x18
mov dword [0x4219e0], eax
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
call sub.KERNEL32.DLL_MapViewOfFile
sub esp, 0x14
mov dword [eax], fcn.0040f2aa
mov dword [esp], eax
call sub.KERNEL32.DLL_UnmapViewOfFile
sub esp, 4
mov eax, 1
add esp, 0x18
ret
Function at 0x410aec
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x41eaf0], esi
jbe 0x4106ec
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x4106f8
mov eax, dword [esi*4 + 0x41eaf4]
test ah, 0x40
je 0x410700
xor edi, edi
test ah, 2
je 0x41070c
xor eax, eax
jmp 0x4106f8
mov dword [esp], 0xfffffffa
call fcn.00411300
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x410aec
test edx, edx
jne 0x410714
xor eax, eax
jmp 0x4106f8
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x410aec
mov ebp, eax
test ebp, ebp
je 0x41086d
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x4106f8
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.0040fe10
test eax, eax
je 0x410770
or byte [esi*4 + 0x41eaf5], 2
mov ebp, eax
sub ebp, ebx
je 0x410869
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x4107a3
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x410aec
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x4106f8
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x4107c9
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.0040fe10
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x410804
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040fed4
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x4107c4
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x410845
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x41eaf5], 0x20
sete cl
test ebp, ebp
jne 0x41086d
and cl, al
jne 0x410859
jmp 0x41086d
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x41086d
test al, al
je 0x41086d
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x410718
jmp 0x41086d
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x4106f8
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x41eaf0], eax
jbe 0x410b39
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x423c84]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x410b47
mov eax, dword [esp + 0x14]
jmp 0x410b5d
mov dword [esp], 6
call fcn.00411300
jmp 0x410b5d
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x410b5d
mov dword [esp], ecx
call fcn.00411300
add esp, 0x18
pop esi
ret
jmp 0x4106b4
Function at 0x410b74
Capabilities:
Write file on windows

Disassembly:
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x41eaf0], eax
jbe 0x410bc1
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x423c84]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
cmp eax, 1
jne 0x410bcf
mov eax, dword [esp + 0x14]
jmp 0x410bd4
mov dword [esp], 6
call fcn.00411300
jmp 0x410bd4
call fcn.00411380
add esp, 0x18
pop esi
ret
Function at 0x413e44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x48]
test ah, 0xc0
je 0x4104a0
mov ebx, eax
jmp 0x4104af
mov ecx, dword [0x41ebc0]
mov ebx, 0xc000
and ebx, dword [ecx]
or ebx, eax
mov edi, ebx
shr edi, 1
and edi, 0x4000
xor edi, 0x4000
or edi, ebx
mov eax, ebx
and eax, 0x700
cmp eax, 0x1ff
ja 0x4104dd
cmp eax, 0x100
jne 0x410523
mov ebp, 4
jmp 0x410528
cmp eax, 0x2ff
ja 0x4104ed
cmp eax, 0x200
jne 0x410523
jmp 0x410515
cmp eax, 0x4ff
ja 0x410502
cmp eax, 0x300
jne 0x410523
mov ebp, 2
jmp 0x410528
mov ebp, 1
cmp eax, 0x500
je 0x410528
cmp eax, 0x600
jne 0x41051c
mov ebp, 5
jmp 0x410528
cmp eax, 0x700
je 0x410528
mov ebp, 3
mov eax, ebx
and eax, 0x100
mov dword [esp + 0x1c], eax
je 0x410560
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x4c]
and eax, dword [0x41e63c]
mov edx, 1
mov ecx, 0x80
test al, 0x80
cmove ecx, edx
jmp 0x410577
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, 0x80000000
mov edx, ebx
and edx, 3
je 0x410599
cmp edx, 2
jne 0x41058f
mov eax, 0xc0000000
jmp 0x410599
cmp edx, 1
jne 0x4105bf
mov eax, 0x40000000
mov edx, ebx
mov esi, edx
and ebx, 0x70
xor edx, edx
cmp ebx, 0x10
je 0x4105d5
cmp ebx, 0x30
jne 0x4105b3
mov edx, 2
jmp 0x4105d5
cmp ebx, 0x20
jne 0x4105d0
mov edx, 1
jmp 0x4105d5
mov dword [esp], 1
call fcn.00411300
jmp 0x4106ab
mov edx, 3
mov ebx, esi
test bl, 4
je 0x4105e7
cmp eax, 0x80000000
sete dl
movzx edx, dl
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], 0
shr ebx, 7
and ebx, 1
xor ebx, 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x410684
mov dword [esp], esi
call fcn.004103fc
mov dword [esp], esi
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp + 4], ecx
call fcn.00410f40
cmp eax, 0xffffffff
jne 0x4106ab
mov dword [esp], 4
call fcn.00411300
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, 0xffffffff
jmp 0x4106ab
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
cmp eax, 0x6e
jne 0x4106a3
mov ecx, 0x50
mov eax, 2
cmp dword [esp + 0x1c], 0
cmovne eax, ecx
mov dword [esp], eax
call fcn.00411300
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x41048c
Function at 0x413e54
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
cmp dword [0x41eaf0], esi
jbe 0x4106ec
mov edx, dword [esp + 0x44]
lea ecx, [edx + 1]
xor eax, eax
cmp ecx, 2
jb 0x4106f8
mov eax, dword [esi*4 + 0x41eaf4]
test ah, 0x40
je 0x410700
xor edi, edi
test ah, 2
je 0x41070c
xor eax, eax
jmp 0x4106f8
mov dword [esp], 0xfffffffa
call fcn.00411300
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
jmp 0x410aec
test edx, edx
jne 0x410714
xor eax, eax
jmp 0x4106f8
mov ebx, dword [esp + 0x40]
sub edx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call 0x410aec
mov ebp, eax
test ebp, ebp
je 0x41086d
mov dword [esp + 0x18], edi
mov eax, 0xffffffff
cmp ebp, 0xffffffff
je 0x4106f8
mov dword [esp + 8], ebp
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
call fcn.0040fe10
test eax, eax
je 0x410770
or byte [esi*4 + 0x41eaf5], 2
mov ebp, eax
sub ebp, ebx
je 0x410869
mov dword [esp + 0x1c], eax
lea edi, [ebp + ebx - 1]
cmp byte [ebp + ebx - 1], 0xd
jne 0x4107a3
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call 0x410aec
mov ecx, eax
mov eax, 0xffffffff
cmp ecx, 0xffffffff
je 0x4106f8
mov dword [esp + 0x24], edi
lea eax, [ebx + ebp]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebp
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x14], ebx
jmp 0x4107c9
add edi, ebp
inc ebx
mov esi, ebx
mov ebp, dword [esp + 0x20]
mov eax, ebp
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 4], 0xd
call fcn.0040fe10
mov ebx, eax
test ebx, ebx
cmove ebx, ebp
mov ebp, ebx
sub ebp, esi
cmp esi, edi
je 0x410804
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040fed4
mov eax, dword [esp + 0x24]
cmp ebx, eax
jb 0x4107c4
mov ebx, dword [esp + 0x14]
sub edi, ebx
add ebp, edi
mov edi, dword [esp + 0x18]
add edi, ebp
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x10]
jae 0x410845
cmp dword [esp + 0x1c], 0
sete al
mov esi, dword [esp + 0x3c]
test byte [esi*4 + 0x41eaf5], 0x20
sete cl
test ebp, ebp
jne 0x41086d
and cl, al
jne 0x410859
jmp 0x41086d
cmp dword [esp + 0x1c], 0
sete al
test ebp, ebp
mov esi, dword [esp + 0x3c]
jne 0x41086d
test al, al
je 0x41086d
add ebx, ebp
mov edx, dword [esp + 0x44]
cmp edi, edx
jb 0x410718
jmp 0x41086d
mov edi, dword [esp + 0x18]
mov eax, edi
jmp 0x4106f8
push esi
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp dword [0x41eaf0], eax
jbe 0x410b39
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax*4 + 0x423c84]
lea esi, [esp + 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
cmp eax, 1
jne 0x410b47
mov eax, dword [esp + 0x14]
jmp 0x410b5d
mov dword [esp], 6
call fcn.00411300
jmp 0x410b5d
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x410b5d
mov dword [esp], ecx
call fcn.00411300
add esp, 0x18
pop esi
ret
jmp 0x4106b4
Function at 0x41796c
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
test esi, esi
je 0x417a8f
lea eax, [esp + 0x2c]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetLocalTime
sub esp, 4
movzx eax, word [esp + 0x2e]
mov dword [esp + 0x24], eax
movzx ecx, word [esp + 0x32]
movzx edx, word [esp + 0x2c]
movzx ebx, word [esp + 0x34]
movzx ebp, word [esp + 0x36]
movzx edi, word [esp + 0x38]
movzx eax, word [esp + 0x3a]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], str._02d__02d__04d__02d:_02d:_02d._03d
mov dword [esp], 0x423f60
call sub.USER32.DLL_wsprintfA
mov dword [esp], 0x423f60
call fcn.004101b4
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0x423f60
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov edi, dword [esp + 0x54]
mov dword [esp], edi
call fcn.004101b4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417aa0
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
push esi
sub esp, 0x9c
mov ecx, dword [0x423f80]
mov eax, dword [0x423f84]
mov edi, dword [esp + 0xac]
test eax, eax
jne 0x417b95
test ecx, ecx
jne 0x417b95
cmp dword [0x41fdc8], 0
je 0x417bd7
lea esi, [esp + 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], 0x80
mov dword [esp], 0
call sub.KERNEL32.DLL_GetModuleFileNameA
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], 0x5c
call fcn.00417834
test eax, eax
jne 0x417b22
mov dword [esp], esi
mov dword [esp + 4], 0x3a
call fcn.00417834
test eax, eax
je 0x417b25
inc eax
mov esi, eax
mov dword [esp + 0x98], 0
call sub.KERNEL32.DLL_GetVersion
mov ecx, 0x12010
test eax, eax
jns 0x417b75
call sub.KERNEL32.DLL_GetCurrentThreadId
lea ecx, [esp + 0x98]
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 4], 0x417ca0
call sub.USER32.DLL_EnumThreadWindows
sub esp, 0xc
mov ecx, 0x12010
cmp dword [esp + 0x98], 0
jne 0x417b75
mov ecx, 0x11010
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0
call sub.USER32.DLL_MessageBoxA
sub esp, 0x10
jmp 0x417c61
test ecx, ecx
je 0x417bac
cmp ecx, 0xffffffff
je 0x417c61
mov dword [esp], edi
call ecx
mov eax, dword [0x423f84]
test eax, eax
je 0x417c61
cmp eax, 0xffffffff
je 0x417c61
cmp byte [eax], 0
je 0x417c61
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0041796c
jmp 0x417c61
mov dword [esp], 0xfffffff4
call sub.KERNEL32.DLL_GetStdHandle
sub esp, 4
mov esi, eax
lea ebx, [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x41fc18
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], edi
call fcn.004101b4
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x10], 0
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0x41fc18
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
add esp, 0x9c
pop esi
pop edi
pop ebx
ret
Function at 0x418aec
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [0x427fb4]
test eax, eax
je 0x418b33
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
je 0x418bbe
add eax, 4
xor edi, edi
nop word cs:[eax + eax]
cmp byte [ecx], 1
sbb ecx, ecx
lea edi, [edi + ecx + 1]
mov ecx, dword [eax]
add eax, 4
test ecx, ecx
jne 0x418b1c
jmp 0x418bbe
mov esi, dword [0x427ff0]
test esi, esi
jne 0x418b60
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov esi, eax
mov dword [0x427ff0], esi
test esi, esi
jne 0x418b60
mov dword [esp], str.GetEnvironmentStrings_failed
call fcn.00417c80
mov esi, dword [0x427ff0]
mov dword [esp], esi
call fcn.004101b4
xor ebx, ebx
mov ebp, 1
xor edi, edi
test eax, eax
je 0x418b94
mov ebp, esi
nop dword [eax + eax]
lea ebp, [ebp + eax + 1]
mov dword [esp], ebp
lea ebx, [eax + ebx + 1]
inc edi
call fcn.004101b4
test eax, eax
jne 0x418b7c
inc ebx
mov ebp, ebx
mov dword [esp], ebp
call fcn.0040d850
mov ecx, eax
mov dword [0x427fb0], ecx
xor eax, eax
test ecx, ecx
je 0x418c69
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], ecx
call fcn.0040fed4
lea eax, [edi + 4]
mov dword [0x427fb8], eax
add edi, 5
mov dword [esp], edi
mov dword [esp + 4], 4
call fcn.0040d838
mov esi, eax
xor eax, eax
test esi, esi
je 0x418c69
mov edi, dword [0x427fb4]
test edi, edi
je 0x418c1b
mov edx, dword [edi]
test edx, edx
je 0x418c56
lea eax, [edi + 4]
xor ecx, ecx
nop
cmp byte [edx], 0
jne 0x418c0c
dec ecx
jmp 0x418c0f
mov dword [esi + ecx*4], edx
inc ecx
mov edx, dword [eax]
add eax, 4
test edx, edx
jne 0x418bfc
jmp 0x418c52
mov ebx, dword [0x427fb0]
mov dword [esp], ebx
call fcn.004101b4
test eax, eax
je 0x418c5e
mov ebp, esi
nop word cs:[eax + eax]
mov dword [ebp], ebx
lea ebx, [eax + ebx + 1]
mov dword [esp], ebx
add ebp, 4
call fcn.004101b4
test eax, eax
jne 0x418c3c
test edi, edi
je 0x418c5e
mov dword [esp], edi
call fcn.0040d860
mov dword [0x427fb4], esi
mov eax, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret