joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448490
Capabilities:
Set current directory

Disassembly:
sub esp, 8
mov dword [esp + 4], ecx
push ebx
push esi
mov ebx, dword [0x477d18]
push edi
push ebp
mov ebp, dword [0x477d14]
push 0x5c
mov eax, dword [ebx]
push eax
call fcn.00457730
add esp, 8
mov esi, eax
mov eax, dword [ebx]
nop
push 0x2f
push eax
call fcn.00457730
add esp, 8
cmp eax, esi
ja 0x4484ca
mov eax, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4484d5
mov byte [eax], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4484e7
xor al, al
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x448506
inc eax
push 0x2e
mov dword [esp + 0x14], eax
push eax
call fcn.00457c30
add esp, 8
test eax, eax
je 0x448506
mov byte [eax], 0
dec ebp
je 0x448565
mov ecx, dword [ebx + 4]
add ebx, 4
cmp byte [ecx], 0x2d
jne 0x44853e
movsx eax, byte [ecx + 1]
cmp eax, 0x73
je 0x448528
mov edx, dword [esp + 0x10]
call fcn.00448590
jmp 0x448562
dec ebp
je 0x448533
mov edi, dword [ebx + 4]
add ebx, 4
jmp 0x448540
mov edx, dword [esp + 0x10]
call fcn.00448590
jmp 0x448562
mov edi, ecx
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, 0x4b8900
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
dec ebp
jne 0x448509
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov cx, word [0x4754d0]
mov al, 1
mov word [0x4b7f30], cx
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x449090
Capabilities:
Get disk information

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push 0
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov byte [esp + 7], 0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
pop ebx
cmp eax, 5
setne cl
mov al, cl
add esp, 0x104
ret

Function at 0x449470
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x18c
mov al, byte [0x47542c]
test al, al
nop
push ebx
push esi
push edi
push ebp
je 0x4495e0
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.EnumRootNet
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4495e0
xor ebp, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x30]
push 0
mov edx, dword [esp + 0x1c]
push 0
mov dword [esp + 0x24], 0x20
push 0
push eax
push ecx
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
je 0x4495d9
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 0x14]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4495b6
lea eax, [esp + 0x20]
lea ecx, [esp + 0x4c]
mov edx, dword [esp + 0x10]
push eax
mov dword [esp + 0x24], 0x50
push ecx
push 0
push 0
push str.DeviceDesc
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4495af
lea esi, [esp + 0x4c]
mov edi, str.Dial_Up_Adapter
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
jne 0x4495af
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push 0xf003f
push 0
push str.Bindings
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4495af
lea eax, [esp + 0x24]
lea ecx, [esp + 0x9c]
lea edx, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x28]
push 0
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x28], 0x20
push eax
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov eax, dword [esp + 0x1c]
push eax
je 0x4495bc
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebx
inc ebp
jmp 0x4494b4
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebx
mov eax, dword [esp + 0x14]
push eax
call ebx
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
mov eax, dword [esp + 0x14]
push eax
call ebx
xor al, al
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret

Function at 0x4497c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x104
mov eax, dword [0x4755e8]
mov dword [esp], eax
push ebx
push esi
xor bl, bl
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esp + 0xc], 0x41
lea eax, [esp + 0xc]
push eax
call esi
cmp eax, 5
nop
nop
mov al, byte [esp + 0xc]
push 0
push str.x:_RoadRash_Text_enu.dll
mov byte [str.x:_RoadRash_Text_enu.dll], al
call fcn.00461640
add esp, 8
test eax, eax
jmp 0x449868
mov eax, str.x:_RoadRash_Text_enu.dll
pop edi
mov byte [0x47549b], 0
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x44a070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x1c]
mov byte [esp + 3], dl
push ebx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x20]
push ebp
mov edx, dword [esp + 0x20]
push edi
push esi
call fcn.00449e60
mov ecx, eax
test ecx, ecx
je 0x44a0fd
test esi, 1
je 0x44a0b3
mov eax, dword [ecx + 0x1c]
mov edx, dword [esp + 0x14]
xor eax, edx
test eax, 0xffffff00
jmp 0x44a0ea
mov ebx, dword [ecx + 0x28]
mov eax, dword [ecx + 0x2c]
mov ebp, 0xfa
mov eax, dword [eax + 0xcc]
shl eax, 8
sub ebx, eax
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
cdq
idiv ebp
xor edx, edx
test ebx, ebx
setl dl
movsx ebx, byte [esp + 0x13]
sub eax, edx
cmp eax, ebx
sete al
test al, al
je 0x44a08a
mov eax, ecx
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0xc

Function at 0x44c440
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xe8
mov al, byte [0x475380]
push ebx
push esi
push edi
mov esi, ecx
push ebp
xor ebx, ebx
cmp al, 1
sbb eax, eax
and eax, 0xfffffe98
add eax, 0x2d0
cdq
mov dword [0x49e644], eax
sub eax, edx
sar eax, 1
mov dword [0x49e650], eax
dec eax
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x49e648], eax
mov eax, dword [0x49e644]
imul eax, dword [0x4b7ec8]
push eax
push 0x40
call ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x44c5bb
mov ecx, esi
call fcn.0044c420
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x44c5ae
lea eax, [esp + 0x1c]
push ebx
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [0x49e644]
mov edx, dword [esp + 0x20]
imul eax, dword [0x4b7ec8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c5a1
lea edx, [esp + 0x20]
mov ecx, dword [0x475418]
call fcn.0041e060
test al, al
je 0x44c5a1
lea edx, [esp + 0x8c]
mov ecx, dword [0x47541c]
call fcn.0041e060
test al, al
je 0x44c591
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0xb0]
mov ebp, dword [esp + 0x14]
mov ecx, dword [0x4b7ec8]
cmp ecx, ebx
jle 0x44c57c
mov ecx, dword [0x49e650]
mov edi, eax
mov esi, ebp
inc ebx
mov dword [esp + 0x10], ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov ecx, dword [0x49e650]
add eax, esi
add ebp, ecx
mov edi, edx
mov esi, ebp
mov dword [esp + 0x10], ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x9c]
mov ecx, dword [0x49e650]
add edx, edi
add ebp, ecx
cmp ebx, dword [0x4b7ec8]
jl 0x44c522
mov ebx, 1
push 0
mov eax, dword [0x47541c]
push eax
mov ebp, dword [eax]
call dword [ebp + pe_nt_image_headers32]
push 0
mov eax, dword [0x475418]
push eax
mov ebp, dword [eax]
call dword [ebp + pe_nt_image_headers32]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
call ebp
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xe8
ret
Function at 0x44c5f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x78
push ebx
push esi
push edi
mov ebx, edx
push ebp
mov edi, ecx
xor esi, esi
mov al, byte [0x475380]
test al, al
jne 0x44c624
mov eax, dword [esp + 0x90]
mov ecx, dword [0x475410]
cmp eax, ecx
je 0x44c624
sar ebx, 1
mov ebp, dword [esp + 0x8c]
sar ebp, 1
jmp 0x44c62b
mov ebp, dword [esp + 0x8c]
imul ebp, ebx
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x44c6f5
mov ecx, edi
call fcn.0044c420
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x44c6ea
lea eax, [esp + 0x18]
push 0
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [esp + 0x1c]
push ebp
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44c6df
mov eax, dword [esp + 0x18]
sub edx, edx
div ebx
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x8c], eax
call fcn.0041e060
test al, al
je 0x44c6df
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jle 0x44c6c6
mov ebp, ecx
mov edi, eax
mov esi, edx
mov ecx, ebx
add edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [esp + 0x2c]
dec ebp
jne 0x44c6ab
mov eax, dword [esp + 0x90]
push 0
push eax
mov ebx, dword [eax]
call dword [ebx + pe_nt_image_headers32]
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret 8

Function at 0x44c730
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
mov esi, edx
call fcn.0044c420
cmp eax, 0xffffffff
je 0x44c76a
lea ecx, [esp + 4]
push 0
push ecx
push 0x400
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 4]
cmp ecx, 0x400
jne 0x44c76a
mov eax, 1
pop esi
add esp, 4
ret
xor eax, eax
pop esi
add esp, 4
ret
Function at 0x44fa80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push ebx
push esi
push edi
push ebp
push eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x44fb00
mov ecx, dword [0x49e65c]
mov al, byte [esp + ebp + 0x14]
test al, 0x80
je 0x44faf7
mov al, byte [ebp + 0x4c5d90]
test al, al
je 0x44faf7
xor ebx, ebx
test ecx, ecx
jle 0x44faf7
mov edi, 0x476c00
mov esi, 0x465fb9
mov al, byte [ebp + 0x4c5d90]
mov dl, byte [esi]
cmp dl, al
jne 0x44faec
mov ecx, ebx
call fcn.0044fa50
mov eax, dword [esp + 0x10]
mov ecx, dword [edi]
or eax, ecx
mov ecx, dword [0x49e65c]
mov dword [esp + 0x10], eax
add edi, 8
add esi, 2
inc ebx
cmp ebx, ecx
jl 0x44fac7
inc ebp
cmp ebp, 0x100
jb 0x44faa5
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x4510c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
test edx, edx
push esi
push edi
mov dword [ecx], edx
push ebp
mov edi, ecx
jne 0x4510da
mov dword [edi + 4], 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret 4
mov eax, dword [edx]
mov dword [edi + 4], eax
cmp eax, 0x52445744
jg 0x451103
je 0x45112d
cmp eax, 0x52424c44
je 0x451117
mov ebx, dword [esp + 0x14]
pop ebp
mov dword [edi + 0xc], ebx
sar ebx, 8
mov dword [edi + 0x10], ebx
pop edi
pop esi
pop ebx
ret 4
cmp eax, 0x5248494c
je 0x4511d4
cmp eax, 0x524d544e
je 0x45112d
jmp 0x4510ef
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
add edx, 0x10
mov dword [edi + 8], edx
jmp 0x4510ef
mov ebx, dword [esp + 0x14]
lea ebp, [edi + 0x18]
test ebx, ebx
jne 0x45114a
lea ecx, [edi + 0x1c]
mov dword [ebp], 0
mov dword [ecx], 0
jmp 0x45115a
mov eax, dword [edx + 0xc]
lea ecx, [edi + 0x1c]
dec eax
mov dword [ebp], eax
mov eax, dword [edx + 0x10]
dec eax
mov dword [ecx], eax
lea esi, [edi + 0x20]
mov eax, dword [ebp]
shl eax, 4
mov ebp, dword [ecx]
add eax, edx
add eax, 0x18
mov dword [esi], eax
mov eax, dword [edx + 0xc]
add eax, ebp
shl eax, 4
add eax, edx
add eax, 0x18
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0x10]
add eax, dword [edx + 0xc]
mov ecx, 2
shl eax, 4
add eax, edx
add eax, 0x18
mov dword [edi + 8], eax
mov edx, dword [esi]
xor eax, eax
add esi, 4
mov al, byte [edx + 6]
add eax, eax
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 4], eax
xor eax, eax
mov edx, dword [esi - 4]
mov al, byte [edx + 0xb]
shl eax, 2
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
xor eax, eax
mov edx, dword [esi - 4]
mov al, byte [edx + 8]
shl eax, 2
cdq
sub eax, edx
sar eax, 1
dec ecx
mov dword [esi + 0x14], eax
jne 0x451192
jmp 0x4510f3
mov ebx, dword [esp + 0x14]
mov ecx, edi
push ebx
call fcn.00450fc0
jmp 0x4510f3
Function at 0x4555a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [edx]
mov eax, dword [eax]
mov edx, esi
dec esi
test edx, edx
je 0x4555d2
xor edx, edx
mov dl, byte [ecx]
inc ecx
xor edx, eax
shr eax, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x476dd8]
xor edx, eax
mov eax, edx
mov edx, esi
dec esi
test edx, edx
jne 0x4555b0
pop esi
ret 4

Function at 0x455ff0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
call fcn.00456080
mov dword [0x477d3c], 1
cmp dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
mov byte [0x477d38], bl
jne 0x456051
cmp dword [0x4c91c4], 0
je 0x45603f
mov esi, dword [0x4c91c0]
sub esi, 4
cmp esi, dword [0x4c91c4]
jb 0x45603f
mov eax, dword [esi]
test eax, eax
je 0x456034
call eax
sub esi, 4
cmp esi, dword [0x4c91c4]
jae 0x45602c
push 0x463024
push 0x46301c
call fcn.004560a0
add esp, 8
push 0x46302c
push 0x463028
call fcn.004560a0
add esp, 8
test ebx, ebx
je 0x45606f
call fcn.00456090
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x458240
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
push 0x74
push 1
call fcn.0045b040
add esp, 8
mov esi, eax
cmp esi, edi
je 0x4582a0
push esi
call fcn.00459290
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [esi + 0x48], eax
push edx
mov eax, dword [esp + 0x20]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
mov edx, dword [esp + 0x14]
push esi
mov dword [esi + 4], 0xffffffff
push 0x4582c0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4582b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.00455d90
add esp, 4
test edi, edi
je 0x4582b6
push edi
call fcn.00459a70
add esp, 4
xor eax, eax
pop edi
pop esi
ret
Function at 0x4583c0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4626e0
push 0x45cc98
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x477d04], eax
xor eax, eax
mov al, byte [0x477d05]
mov dword [0x477d10], eax
mov eax, dword [0x477d04]
shr dword [0x477d04], 0x10
and eax, 0xff
mov dword [0x477d0c], eax
shl eax, 8
add eax, dword [0x477d10]
mov dword [0x477d08], eax
call fcn.00458590
call fcn.00459230
test eax, eax
jne 0x458439
push 0x10
call fcn.00458560
add esp, 4
mov dword [ebp - 4], 0
call fcn.00459890
call fcn.0045d5e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4c81b4], eax
call fcn.0045d130
mov dword [0x478154], eax
test eax, eax
je 0x45846c
cmp dword [0x4c81b4], 0
jne 0x458476
push 0xffffffffffffffff
call fcn.00455fb0
add esp, 4
call fcn.0045ceb0
call fcn.0045cdd0
call fcn.00455f80
mov esi, dword [0x4c81b4]
mov al, byte [esi]
cmp al, 0x22
je 0x45849d
cmp al, 0x20
jbe 0x4584ca
inc esi
cmp byte [esi], 0x20
ja 0x458495
jmp 0x4584ca
inc esi
cmp byte [esi], 0x22
je 0x4584c9
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4584c4
xor eax, eax
mov al, bl
push eax
call fcn.0045cd70
add esp, 4
test eax, eax
je 0x4584be
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4584a6
cmp byte [esi], 0x22
jne 0x4584ca
inc esi
cmp byte [esi], 0
je 0x4584da
cmp byte [esi], 0x20
ja 0x4584da
inc esi
cmp byte [esi], 0
jne 0x4584cf
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4584fe
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00455fb0
jmp 0x45853f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459230
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.00459500
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x478190], eax
cmp eax, 0xffffffff
jne 0x45924a
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.0045b040
add esp, 8
mov esi, eax
test esi, esi
je 0x45928c
push esi
mov eax, dword [0x478190]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x45928c
push esi
call fcn.00459290
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4592b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x478190]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x459313
push 0x74
push 1
call fcn.0045b040
add esp, 8
mov edi, eax
test edi, edi
je 0x459309
push edi
mov eax, dword [0x478190]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x459309
push edi
call fcn.00459290
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x459313
push 0x10
call fcn.00458560
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x459320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x478190], 0xffffffff
push esi
je 0x4593bf
mov esi, dword [esp + 8]
test esi, esi
jne 0x459348
mov eax, dword [0x478190]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4593b1
mov eax, dword [esi + 0x24]
test eax, eax
je 0x459358
push eax
call fcn.00455d90
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x459368
push eax
call fcn.00455d90
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x459378
push eax
call fcn.00455d90
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x459388
push eax
call fcn.00455d90
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x459398
push eax
call fcn.00455d90
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4593a8
push eax
call fcn.00455d90
add esp, 4
push esi
call fcn.00455d90
add esp, 4
push 0
mov eax, dword [0x478190]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x459b90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x459bb8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x4c80b0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x459bf9
push 2
push 0
push edx
call fcn.00459800
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x459c95
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x459cce
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x459c5c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x459c4a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x459c31
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
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 0x459cc4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x459c1c
jmp 0x459cce
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 0x459cc4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x459cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x459d7a
cmp dword [esp + 0x10], 0
je 0x459d2a
cmp dword [esp + 0x10], 5
jne 0x459d0d
call fcn.00459af0
mov dword [eax], 9
call fcn.00459b00
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00459a70
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 0x459d54
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x459d54
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.00459af0
mov dword [eax], 0x1c
call fcn.00459b00
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x45d130
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x47892c], 0
push ebx
push esi
push edi
push ebp
jne 0x45d180
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x45d15e
mov dword [0x47892c], 1
mov ebx, dword [esp + 0x10]
jmp 0x45d18e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x45d176
mov dword [0x47892c], 2
jmp 0x45d18e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x47892c], 1
jne 0x45d23d
test edi, edi
jne 0x45d1b1
call esi
mov edi, eax
test edi, edi
jne 0x45d1b1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x45d1cb
add esi, 2
cmp word [esi], 0
jne 0x45d1b9
add esi, 2
cmp word [esi], 0
jne 0x45d1b9
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 0x45d22c
push ebp
call fcn.00455db0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x45d22c
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 0x45d21b
push ebx
call fcn.00455d90
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 [0x47892c], 2
jne 0x45d2c1
test ebx, ebx
jne 0x45d260
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x45d260
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x45d275
inc ebp
cmp byte [ebp], 0
jne 0x45d267
inc ebp
cmp byte [ebp], 0
jne 0x45d267
sub ebp, ebx
inc ebp
push ebp
call fcn.00455db0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x45d29a
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