joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40d7cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x40d7de
pop dword [ebp - 4]
mov eax, 0xa6156b45
add eax, 0x5a2b6c99
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x399fb
push 0
mov eax, 0xe44fe16c
sub eax, 0xe40f0094
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x5295375
add ecx, 0xfad6f62f
mov edi, eax
mov edx, 0xb489cb59
sub edx, 0xb4488f95
add edx, dword [ebp - 4]
mov esi, 0x14bdb434
add esi, 0x63b0b7e2
mov ebx, dword [edx]
xor ebx, esi
mov dword [edi], ebx
add edi, 0x4d7e6b3d
add edi, 0xb28194c7
add edx, 0x252a7a4c
add edx, 0xdad585b8
loop 0x40d83d
add eax, 0xe6677685
add eax, 0x1999a2de
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x407e1e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
cmp dword [0x432234], 0
jle 0x407e3e
mov eax, dword [0x432234]
jmp 0x407e5a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov dword [0x432234], eax
mov eax, dword [0x432234]
jmp 0x407e5a
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40988e
xor eax, eax
jmp 0x4098a9
test byte [ebp - 4], 0x10
je 0x4098a2
mov eax, 1
jmp 0x4098a4
xor eax, eax
jmp 0x4098a9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424b50
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x424b6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x424b7d
push eax
call fcn.0042bc20
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x4250b0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x436488], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4250ce
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x436484], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x436480], bl
jne 0x425128
cmp dword [0x1b2fe58], 0
je 0x425116
mov edi, dword [0x1b2fe54]
sub edi, 4
cmp edi, dword [0x1b2fe58]
jb 0x425116
mov eax, dword [edi]
test eax, eax
je 0x42510b
call eax
sub edi, 4
cmp edi, dword [0x1b2fe58]
jae 0x425103
push 0x431030
push 0x431028
call fcn.00425160
add esp, 8
push 0x431038
push 0x431034
call fcn.00425160
add esp, 8
test ebx, ebx
jne 0x42514f
mov dword [0x436488], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x425180
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x42519c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4251af
push eax
call fcn.0042bc20
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x425890
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
mov eax, 0
jne 0x4258af
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4258c2
push eax
call fcn.0042bc20
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x4260d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x436490
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4260f7
add eax, 8
inc ecx
cmp eax, 0x436520
jb 0x4260e8
cmp dword [ecx*8 + 0x436490], edx
lea ebx, [ecx*8]
jne 0x4262bb
cmp dword [0x4361b0], 1
je 0x426277
cmp dword [0x4361b0], 0
jne 0x42612e
cmp dword [0x4361b4], 1
je 0x426277
cmp edx, 0xfc
je 0x4262bb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x42616b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4261af
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4303f8
push ebp
call fcn.004245f0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4303d8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x436494]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0042c3d0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x1b2fd50], 0
je 0x42628d
mov eax, dword [0x1b2fd50]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x426297
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x436494]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x426740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x426765
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042bc20
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x42678a
test byte [esp + 8], 2
je 0x42678a
mov dword [0x436440], 0xd
mov dword [0x436444], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x426860
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x1b2fe50], edx
push ebx
push esi
push edi
push ebp
jbe 0x426a67
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x1b2fd50
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x426a67
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x4268c9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x4268da
push 2
push 0
push edx
call fcn.004262d0
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x426976
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4269af
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x42693d
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x42692b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x426912
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4269a5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x4268fd
jmp 0x4269af
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4269a5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4269af
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x426a56
cmp dword [esp + 0x10], 0
je 0x426a08
cmp dword [esp + 0x10], 5
jne 0x4269eb
mov dword [0x436440], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x436444], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0042bc20
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x426a32
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x426a32
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x436440], 0x1c
mov dword [0x436444], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x436440], 9
mov dword [0x436444], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x4271f0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00425b50
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x1b2fe50], esi
jbe 0x42733d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x1b2fd50]
test byte [edx + ecx*8 + 4], 1
je 0x42733d
push 1
push ebx
push esi
call fcn.004262d0
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x42732d
push 2
push ebx
push esi
call fcn.004262d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x42732d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x4272d3
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00426d10
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x427296
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00426860
add esp, 0xc
cmp eax, 0xffffffff
je 0x4272b2
sub ebp, eax
test ebp, ebp
jg 0x42728b
jmp 0x4272c7
cmp dword [0x436444], 5
jne 0x4272c5
mov dword [0x436440], 0xd
mov ebx, eax
push edi
push esi
call fcn.00426d10
add esp, 8
jmp 0x427310
jge 0x427310
push 0
push ecx
push esi
call fcn.004262d0
add esp, 0xc
push esi
call fcn.004266f0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x427310
mov dword [0x436440], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x436444], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.004262d0
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x436440], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x4283c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x436830], ebx
jne 0x42840f
call esi
cmp eax, ebx
mov edi, eax
je 0x4283ed
mov dword [0x436830], 1
jmp 0x42840f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x428405
mov dword [0x436830], 2
jmp 0x42840f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x436830], 1
jne 0x4284be
test edi, edi
jne 0x428432
call esi
mov edi, eax
test edi, edi
jne 0x428432
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x42844c
add esi, 2
cmp word [esi], 0
jne 0x42843a
add esi, 2
cmp word [esi], 0
jne 0x42843a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4284ad
push ebp
call fcn.00424970
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4284ad
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x42849c
push ebx
call fcn.00424920
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x436830], 2
jne 0x428542
test ebx, ebx
jne 0x4284e1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x4284e1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4284f6
inc ebp
cmp byte [ebp], 0
jne 0x4284e8
inc ebp
cmp byte [ebp], 0
jne 0x4284e8
sub ebp, ebx
inc ebp
push ebp
call fcn.00424970
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x42851b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42eb00
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x42ed3e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0042daa0
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x42ed3e
cmp ebp, dword [esp + 0x18]
je 0x42ed3e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x436468]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x43646c], ecx
jne 0x42eb5d
push ecx
call fcn.0042edb0
add esp, 4
mov dword [0x436468], eax
cmp dword [0x436468], 0
jne 0x42ec0d
cmp dword [esp + 0x1c], 0
je 0x42eb94
cmp dword [0x436470], 0
je 0x42eb94
call fcn.0042bf30
test eax, eax
je 0x42ec0d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x42eba5
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x436468], 0
jne 0x42ebd9
push 4
call fcn.00424970
add esp, 4
mov dword [0x436468], eax
test eax, eax
jne 0x42ebce
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x436468]
mov dword [eax], 0
cmp dword [0x436470], 0
jne 0x42ec0d
push 4
call fcn.00424970
add esp, 4
mov dword [0x436470], eax
test eax, eax
jne 0x42ec02
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x436470]
mov dword [eax], 0
mov esi, dword [0x436468]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0042ed50
add esp, 8
mov edi, eax
test edi, edi
jl 0x42ec75
cmp dword [esi], 0
je 0x42ec75
cmp dword [esp + 0x10], 0
je 0x42ec6c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00424920
add esp, 4
cmp dword [ebx], 0
je 0x42ec59
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x42ec4a
shl edi, 2
push edi
push esi
call fcn.00425650
add esp, 8
test eax, eax
je 0x42ecbd
jmp 0x42ecb8
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x42ecbd
cmp dword [esp + 0x10], 0
jne 0x42ed34
test edi, edi
jge 0x42ec86
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00425650
add esp, 8
test eax, eax
jne 0x42eca8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x436468], eax
cmp dword [esp + 0x1c], 0
je 0x42ed2a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00424970
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x42ed2a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00424920
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42fb00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x42fb73
push ebx
call fcn.0042fc30
add esp, 4
test eax, eax
jne 0x42fb41
xor eax, eax
pop edi
mov dword [0x436444], 0xf
mov dword [0x436440], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x42fb83
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42fc22
inc eax
cmp eax, 0x104
ja 0x42fc22
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x42fbd4
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x42fbaf
mov ecx, eax
push ecx
call fcn.00424970
add esp, 4
mov edx, eax
test edx, edx
jne 0x42fbf3
xor eax, eax
pop edi
mov dword [0x436440], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x42fbf3
xor eax, eax
pop edi
mov dword [0x436440], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x42fc30
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x42fc44
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x42fc76
cmp eax, 1
je 0x42fc76
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x42ff30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42ff66
cmp byte [esp + 5], 0x3a
jne 0x42ff66
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00424b90
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x40618e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4061d4
call fcn.004078bd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4061d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x406217
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x406200
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x406200
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x406214
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x407e6a
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 0x407e98
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x407eb6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00407dd4
jmp 0x407eb6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x407eb6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00407dd4
test edi, edi
mov eax, edi
jne 0x407ea0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x443aac]
test ecx, ecx
je 0x407f79
jmp 0x407e69
ret 8

Function at 0x40df2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40df6e
call fcn.004078bd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40df6e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40df89
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040dae2
test ebx, ebx
mov esi, eax
je 0x40df87
test edi, edi
je 0x40df87
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41e6f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442504]
jne 0x41e702
repz ret
jmp fcn.00426c7c