joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462d14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x462d7e
mov eax, ebx
call fcn.00465100
test al, al
jne 0x462d7e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004050e8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x462d6b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x462d8b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040504c
jmp 0x462d8b
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040504c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x464224
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464292
mov eax, esi
call fcn.0044cd04
test al, al
je 0x464292
mov eax, dword [ebx + 0x84]
call fcn.0044c964
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464292
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x464286
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c964
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004447d4
jmp 0x464292
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00464060
pop esi
pop ebx
ret

Function at 0x4735f0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x47365a
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
call fcn.00405488
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x473647
mov edx, dword [eax + 0xc]
test edx, edx
je 0x473647
mov eax, dword [edx]
lea edx, [ebp - 4]
mov ecx, 4
call fcn.004030c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473661
call sub.wsock32.dll_WSACleanup
ret

Function at 0x4747a4
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.0040388c
ret

Function at 0x478e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x478ee0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.00405718
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
test esi, esi
je 0x478eaa
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx]
call fcn.00405488
push eax
push esi
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
xchg edx, eax
call fcn.00405718
lea edx, [ebp - 8]
mov eax, dword [ebx]
call fcn.00478a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478ee7
lea eax, [ebp - 8]
call fcn.00404ff8
ret
Function at 0x47d39c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47d3f6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0047d38c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00475fa4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00475b9c
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d3fd
lea eax, [ebp - 4]
call fcn.00404ff8
ret
Function at 0x4885d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4885d8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4887ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4887e0
mov eax, esi
call fcn.0047bcc0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040504c
lea ecx, [ebp - 0x10]
mov edx, 0x4887f4
mov eax, esi
call fcn.0047bcc0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040504c
lea ecx, [ebp - 0x14]
mov edx, 0x48880c
mov eax, esi
call fcn.0047bcc0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040504c
lea ecx, [ebp - 0x18]
mov edx, 0x488828
mov eax, esi
call fcn.0047bcc0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040504c
lea ecx, [ebp - 0x1c]
mov edx, 0x488844
mov eax, esi
call fcn.0047bcc0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040504c
lea ecx, [ebp - 0x24]
mov edx, 0x48885c
mov eax, esi
call fcn.0047bcc0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040920c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409668
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x488874
mov eax, esi
call fcn.0047bcc0
mov eax, dword [ebp - 0x28]
call fcn.00479770
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x488884
mov eax, esi
call fcn.0047bcc0
mov eax, dword [ebp - 0x2c]
call fcn.00479770
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x48889c
mov eax, esi
call fcn.0047bcc0
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409668
inc eax
je 0x48876d
lea ecx, [ebp - 0x34]
mov edx, 0x48889c
mov eax, esi
call fcn.0047bcc0
mov eax, dword [ebp - 0x34]
call fcn.0040962c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
movzx edx, word [ebp - 4]
movzx eax, word [ebp - 8]
call fcn.0040ac38
fstp qword [ebp - 0x3c]
wait
call fcn.0040afa0
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x488788
lea ecx, [ebp - 0x40]
mov edx, 0x48889c
mov eax, esi
call fcn.0047bcc0
mov eax, dword [ebp - 0x40]
call fcn.00479770
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4888ac
mov eax, esi
call fcn.0047bcc0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040504c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4887d1
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040501c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040501c
ret
Function at 0x10001580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100015a4
xor eax, eax
jmp 0x10001624
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100015bb
xor eax, eax
jmp 0x10001624
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10001607
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10001607
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x100015de
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10001613
xor eax, eax
jmp 0x10001624
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x10001621
xor eax, eax
jmp 0x10001624
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10002370
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b6c4
mov eax, dword fs:[0]
push eax
sub esp, 0xd2c
mov eax, dword [0x1002400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xd30], 0
push 4
mov ecx, dword [ebp + 8]
call fcn.10001ff0
push str.LOCALAPPDATA
call fcn.1000c2f6
add esp, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.10003150
mov dword [ebp - 0xd38], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xd30]
or eax, 1
mov dword [ebp - 0xd30], eax
push 0x10021d6e
mov ecx, dword [ebp + 8]
push ecx
call fcn.10003030
add esp, 8
movzx edx, al
test edx, edx
je 0x100024f7
mov dword [ebp - 0xd28], 0x400
lea eax, [ebp - 0xd28]
push eax
lea ecx, [ebp - 0xd24]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea edx, [ebp - 0xd24]
push edx
push str.C:Users_sAppDataLocal
lea eax, [ebp - 0x31c]
push eax
call fcn.10003c50
add esp, 0xc
push 0
lea ecx, [ebp - 0x31c]
push ecx
call fcn.1000904c
add esp, 8
test eax, eax
jne 0x10002466
lea edx, [ebp - 0x31c]
push edx
mov ecx, dword [ebp + 8]
call fcn.10003110
jmp 0x100024f7
mov dword [ebp - 0xd2c], 0
lea eax, [ebp - 0xd2c]
push eax
push 0
push 0x8000
push 0x1001c1e0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x100024b9
push 0x104
mov ecx, dword [ebp - 0xd2c]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.1000c10c
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003090
jmp 0x100024f7
push 0
push 0x1c
lea ecx, [ebp - 0x524]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0xd34], eax
cmp dword [ebp - 0xd34], 0
jne 0x100024e8
push 0x10021d6f
mov ecx, dword [ebp + 8]
call fcn.10003090
lea edx, [ebp - 0x524]
push edx
mov ecx, dword [ebp + 8]
call fcn.10003110
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100057e9
mov esp, ebp
pop ebp
ret
Function at 0x10004460
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x1000449f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x100045bb
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x1000452c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10004527
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10004500
xor eax, eax
jmp 0x100045c0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.100070d0
add esp, 0xc
jmp 0x1000448d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10004440
add esp, 8
test eax, eax
jne 0x1000454d
xor eax, eax
jmp 0x100045c0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10004584
xor eax, eax
jmp 0x100045c0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10006b50
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x1000448d
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10008d02
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1001b110
mov eax, dword [0x1002400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.1000e262
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10008d44
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10008ea0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1001b060
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10025010]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1000e56d
mov ecx, dword [esi*4 + 0x10025010]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x10008e99
cmp eax, dword [ecx + edi + 0x24]
jne 0x10008e99
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10008e99
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000e56d
add esp, 0x14
test edx, edx
jl 0x10008e99
jg 0x10008e0f
test eax, eax
jb 0x10008e99
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10008e99
jl 0x10008e29
cmp dword [ebp - 0x1008], eax
ja 0x10008e99
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10008e47
test ebx, ebx
je 0x10008e80
cmp ecx, edi
jae 0x10008e80
mov al, byte [ecx]
cmp al, 0xd
jne 0x10008e61
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10008e6d
cmp byte [ecx + 1], 0xa
jne 0x10008e6d
inc ecx
jmp 0x10008e6d
movzx eax, al
movsx eax, byte [eax + 0x100241c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10008e47
cmp edx, ebx
jne 0x10008e47
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10008e9e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100057e9
leave
ret

Function at 0x1000d36d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000d3ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000d3ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000d3ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000d3ac
cmp dword [ecx + 0x74], 0xe
jbe 0x1000d3ac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000ecde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10025010]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000ed1e
cmp byte [ebx], 0xa
jne 0x1000ed1e
or byte [edi + eax + 0x28], 4
jmp 0x1000ed23
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1000ee22
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1000ee05
inc eax
cmp dl, 0xd
je 0x1000ed4f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1000ed75
cmp eax, ecx
jae 0x1000ed83
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1000ed37
jmp 0x1000ee22
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000ee00
cmp dword [ebp - 0x10], 0
je 0x1000ee00
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10025010]
test byte [eax + edi + 0x28], 0x48
je 0x1000edda
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1000edc5
mov byte [esi], dl
jmp 0x1000edd6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10025010]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1000ee22
cmp byte [ebp - 1], 0xa
jne 0x1000ede9
cmp esi, ebx
jne 0x1000ede9
mov byte [esi], 0xa
jmp 0x1000ee21
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000e58b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1000ee22
mov byte [esi], 0xd
jmp 0x1000ee21
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10025010]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1000ee1f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1000ee22
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000ee2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10025010]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000ee71
cmp word [ebx], dx
jne 0x1000ee71
or byte [eax + edi + 0x28], 4
jmp 0x1000ee76
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1000efd9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1000efb9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000eeb7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000eeed
cmp eax, edx
jae 0x1000eefb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1000ee92
jmp 0x1000efd9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000efb4
cmp dword [ebp - 0x18], 0
je 0x1000efb4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10025010]
test byte [eax + edi + 0x28], 0x48
je 0x1000ef8a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1000ef4e
mov word [esi], cx
jmp 0x1000ef85
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10025010]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10025010]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10025010]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000efd9
pop eax
cmp word [ebp - 4], ax
jne 0x1000ef9a
cmp esi, ebx
jne 0x1000ef9a
mov word [esi], ax
jmp 0x1000efd6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000e58b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000efd9
push 0xd
pop eax
jmp 0x1000ef95
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10025010]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000efd3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000efd9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10012d5d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10012dfa
push ebx
push esi
call fcn.10012d26
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10010f38
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10012da7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012df9
push edi
push eax
call fcn.1000f88a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10012dc7
call fcn.1000f850
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10012df8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10010f38
add esp, 0x20
test eax, eax
jne 0x10012de6
push edi
call fcn.1000f850
jmp 0x10012dee
push ebx
call fcn.1000f850
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10012dfd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10012e0e
pop esi
ret
push ebx
push edi
push esi
call fcn.10012d26
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1000f88a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10012e36
push ebx
push esi
push edi
call fcn.10006b50
add esp, 0xc
push 0
call fcn.1000f850
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10013206
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10012e4b

Function at 0x10013485
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e610
push 0x1001e608
push str.FlsAlloc
push 0x1f
call fcn.10013344
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100134b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c188]
call esi
jmp 0x100134bf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10013503
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e620
push 0x1001e618
push str.FlsGetValue
push 0x21
call fcn.10013344
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001353a
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10013542
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001e628
push 0x1001e620
push str.FlsSetValue
push 0x22
call fcn.10013344
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001357c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001c188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]