joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x34], 0x98
mov dword [ebp - 0x38], 0x48
mov dword [ebp - 0x3c], 0x3d4
mov dword [ebp - 0x40], 0x2ce
mov dword [ebp - 0x44], 0x17
mov dword [ebp - 0x48], 0x34b
mov dword [ebp - 0x28], 0x13d
mov dword [ebp - 0x20], 0x2df
mov dword [ebp - 0x18], 0x3c2
mov dword [ebp - 0x4c], 0x3ac
mov dword [ebp - 0x50], 0x29b
mov dword [ebp - 0x54], 0x376
mov dword [ebp - 0x2c], 0x16f
mov dword [ebp - 0x58], 0x3d8
mov dword [ebp - 0x5c], 0x386
mov dword [ebp - 0x60], 0xb8
mov dword [ebp - 0x1c], 0x117
mov dword [ebp - 8], 0x288
mov dword [ebp - 0x30], 0x120
mov dword [ebp - 0x14], 0x18a
mov dword [ebp - 0x64], 0x1c3
mov dword [ebp - 0x68], 0x3e6
mov dword [ebp - 0x24], 0x34f
mov dword [ebp - 0x6c], 0x345
mov dword [ebp - 4], 0x301
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 0x13
push ecx
mov edx, dword [ebp - 8]
sub edx, 0x21e
push edx
mov eax, dword [ebp - 0x24]
sub eax, 0x1b5
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x11
push ecx
mov edx, dword [ebp - 8]
sub edx, 0x288
push edx
mov eax, dword [ebp - 0x28]
add eax, 0xed
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xf5
push ecx
call fcn.0042b440
add esp, 0x1c
mov dword [ebp - 0xc], 0
jmp 0x423b96
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x2c]
sub eax, 0x1880f
cmp dword [ebp - 0xc], eax
jge 0x423beb
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x30]
jge 0x423be9
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
push 0xc680
push 0x16a79
push 0x13918
push 0x47b2
push 0x8253
push 0x6756
push 0xa472
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x1c
jmp 0x423b8d
mov dword [ebp - 0x10], 0
jmp 0x423bfd
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
sub edx, 0x189a2
cmp dword [ebp - 0x10], edx
jge 0x423c38
push 0xbfd4
push 0x96fe
push 0x3238
push 0x87a0
push 0xdbd4
call dword [sym.imp.USER32.dll_AppendMenuA]
add esp, 0x14
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x423bf4
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov esp, ebp
pop ebp
ret
Function at 0x424670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov dword [ebp - 4], 0x3a6
mov dword [ebp - 0x54], 0x395
mov dword [ebp - 0x50], 0x6b
mov dword [ebp - 0x58], 0xb3
mov dword [ebp - 0x48], 0x24a
mov dword [ebp - 0x14], 0x220
mov dword [ebp - 0x5c], 0x162
mov dword [ebp - 0x40], 0x25e
mov dword [ebp - 0x34], 0xf1
mov dword [ebp - 0x38], 0x2d0
mov dword [ebp - 0x60], 0x61
mov dword [ebp - 0x30], 0x131
mov dword [ebp - 0x64], 0x1e
mov dword [ebp - 0x3c], 0x2be
mov dword [ebp - 0x68], 0x2b1
mov dword [ebp - 0x44], 0x1a9
mov dword [ebp - 0x2c], 0x11d
mov dword [ebp - 0x6c], 0x239
mov dword [ebp - 0x70], 0x3d
mov dword [ebp - 0x74], 0x14d
mov dword [ebp - 0x78], 0x8c
mov dword [ebp - 8], 0x3d2
mov dword [ebp - 0x4c], 0x1be
mov dword [ebp - 0x7c], 0xae
mov dword [ebp - 0xc], 0
jmp 0x424730
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x1c]
sub ecx, 0x18706
cmp dword [ebp - 0xc], ecx
jge 0x4247da
push 0x2c01
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 4
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x30]
jge 0x424761
mov dword [ebp - 0x18], 1
jmp 0x424768
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x14]
jge 0x424785
mov dword [ebp - 0x1c], 1
jmp 0x42478c
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x18]
or edx, dword [ebp - 0x1c]
je 0x4247d5
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 8]
jge 0x4247a5
mov dword [ebp - 0x20], 1
jmp 0x4247ac
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x38]
jge 0x4247bd
mov dword [ebp - 0x24], 1
jmp 0x4247c4
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x20]
or edx, dword [ebp - 0x24]
je 0x4247d5
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x424727
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x3c]
jge 0x4247eb
mov dword [ebp - 0x28], 1
jmp 0x4247f2
mov dword [ebp - 0x28], 0
mov edx, dword [ebp + 0x1c]
sub edx, 1
mov dword [ebp + 0x1c], edx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x40]
or ecx, dword [ebp - 0x28]
or ecx, eax
je 0x424814
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x424826
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 0x21f
cmp dword [ebp - 0x10], ecx
jge 0x42483f
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
jmp 0x42481d
mov eax, dword [ebp - 0x44]
add eax, 0x34
push eax
mov ecx, dword [ebp - 8]
sub ecx, 0x213
push ecx
mov edx, dword [ebp - 0x48]
add edx, 0x17b
push edx
mov eax, dword [ebp - 0x4c]
add eax, 7
push eax
mov ecx, dword [ebp - 0x14]
sub ecx, 0xbb
push ecx
mov edx, dword [ebp - 0x50]
add edx, 0x182
push edx
mov eax, dword [ebp - 0x2c]
add eax, 0xda
push eax
mov ecx, dword [ebp + 0x20]
add ecx, 0xde
push ecx
call fcn.0041e410
add esp, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x4287f0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov dword [ebp - 0x44], 0x347
mov dword [ebp - 0x18], 0x26d
mov dword [ebp - 0x24], 0x176
mov dword [ebp - 0xc], 0x29d
mov dword [ebp - 0x48], 0x104
mov dword [ebp - 0x4c], 0xf9
mov dword [ebp - 0x50], 0x34f
mov dword [ebp - 0x54], 0x314
mov dword [ebp - 0x58], 0x320
mov dword [ebp - 0x40], 0x212
mov dword [ebp - 0x34], 0x2df
mov dword [ebp - 0x3c], 0x19e
mov dword [ebp - 0x28], 0x2f8
mov dword [ebp - 0x5c], 0x3b7
mov dword [ebp - 0x1c], 0x319
mov dword [ebp - 0x20], 0x38f
mov dword [ebp - 0x60], 0x24e
mov dword [ebp - 8], 0x34d
mov dword [ebp - 0x64], 0x3cb
mov dword [ebp - 0x68], 0x154
mov dword [ebp - 0x6c], 0x10c
mov dword [ebp - 0x38], 0x19e
mov dword [ebp - 0x70], 0x38f
mov dword [ebp - 0x30], 0x28d
mov dword [ebp - 4], 0
jmp 0x4288b0
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
sub ecx, 0xac
cmp dword [ebp - 4], ecx
jge 0x4288f3
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
imul ecx, dword [ebp - 0x28]
and ecx, eax
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x2c], 0
je 0x4288f1
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4288a7
mov dword [ebp - 0x10], 0
jmp 0x428905
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x30]
sub edx, 0x1892d
cmp dword [ebp - 0x10], edx
jge 0x42894c
push 0xc41f
push 0x1b
push 0x1437d
push 0x11cb6
push 0x15271
push 0xe4ce
push 0x7854
push 0xb93a
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x20
mov eax, dword [ebp + 0x14]
add eax, 1
mov dword [ebp + 0x14], eax
jmp 0x4288fc
mov dword [ebp - 0x14], 0
jmp 0x42895e
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x20]
sub edx, 0x18a2f
cmp dword [ebp - 0x14], edx
jge 0x428999
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
push 0xca44
push 0xe703
push 0x6853
push 0x10953
push 0x3b5d
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
add esp, 0x14
jmp 0x428955
mov ecx, dword [ebp - 0x18]
add ecx, 0x128
push ecx
mov edx, dword [ebp - 0x34]
sub edx, 0x2e
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x193
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x73
push ecx
mov edx, dword [ebp - 0x20]
sub edx, 0x10e
push edx
mov eax, dword [ebp - 0x40]
add eax, 0x90
push eax
mov ecx, dword [ebp - 0x44]
sub ecx, 0x2c
push ecx
call fcn.00422bf0
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x470760
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x64], 0x122
mov dword [ebp - 0x68], 0x1b8
mov dword [ebp - 0x6c], 0xb0
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x70], 0x246
mov dword [ebp - 0x44], 0x271
mov dword [ebp - 0x74], 0x144
mov dword [ebp - 0x5c], 0x6f
mov dword [ebp - 0x78], 0x224
mov dword [ebp - 0x50], 0x22e
mov dword [ebp - 0x40], 0x58
mov dword [ebp - 0x20], 0x77
mov dword [ebp - 0x48], 0x141
mov dword [ebp - 0x7c], 0x14b
mov dword [ebp - 0x58], 0x146
mov dword [ebp - 0x80], 0x292
mov dword [ebp - 0x30], 0x3e2
mov dword [ebp - 0x28], 0x385
mov dword [ebp - 0x60], 0x1fc
mov dword [ebp - 0x84], 0x6b
mov dword [ebp - 0x10], 0x318
mov dword [ebp - 0x4c], 0x12c
mov dword [ebp - 0x54], 0x33c
mov dword [ebp - 0x2c], 0x62
mov dword [ebp - 0xc], 0x1c
mov eax, dword [0x50cf90]
add eax, dword [ebp - 0x48]
cmp eax, dword [0x50cf9c]
jge 0x470834
mov dword [ebp - 0x14], 1
jmp 0x47083b
mov dword [ebp - 0x14], 0
mov ecx, dword [0x50cf94]
cmp ecx, dword [0x50cf7c]
jge 0x470852
mov dword [ebp - 0x18], 1
jmp 0x470859
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x4c]
jge 0x47086a
mov dword [ebp - 0x1c], 1
jmp 0x470871
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x1c]
je 0x47088b
mov ecx, dword [0x50cf98]
sub ecx, 1
mov dword [0x50cf98], ecx
mov dword [ebp - 4], 0
jmp 0x47089d
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x2c]
sub eax, 0x18702
cmp dword [ebp - 4], eax
jge 0x4708c9
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x44]
jge 0x4708c7
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0xc]
jge 0x4708c7
mov eax, dword [0x50cfa0]
sub eax, 1
mov dword [0x50cfa0], eax
jmp 0x470894
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x481d00
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x481d3f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x481d3f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x481d3f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x481d3f
cmp dword [ecx + 0x74], 0xe
jbe 0x481d3f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48e3c4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48e403
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48e403
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48e403
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48e403
cmp dword [ecx + 0x74], 0xe
jbe 0x48e403
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4ae049
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004adf1d
Function at 0x4aeb44
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x516e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4aeb8f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004aefe4
test al, al
jne 0x4aeb89
sub edx, 2
cmp edx, edi
jne 0x4aeb6f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4aebb1
lea eax, [edi + 2]
cmp edx, eax
je 0x4aebb1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ae80b
add esp, 0x10
jmp 0x4aecab
push esi
lea ecx, [ebp - 0x255]
call fcn.004aefe4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4aebf4
push dword [ebp - 0x25c]
jmp 0x4aeba1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4aec31
cmp word [ebp - 0x226], 0
je 0x4aec52
cmp word [ebp - 0x226], ax
jne 0x4aec31
cmp word [ebp - 0x224], 0
je 0x4aec52
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ae80b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4aec9e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4aec0b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4aec86
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4aecab
push 0x4ae25b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004b9dc0
add esp, 0x10
jmp 0x4aec7b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482279
leave
ret
Function at 0x4b052b
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 0x4b05c8
push ebx
push esi
call fcn.004b04e7
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.004b0424
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b0575
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b05c7
push edi
push eax
call fcn.004b2d2e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4b0595
call fcn.004ae209
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4b05c6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004b0424
add esp, 0x20
test eax, eax
jne 0x4b05b4
push edi
call fcn.004ae209
jmp 0x4b05bc
push ebx
call fcn.004ae209
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 0x4b05cb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b05dc
pop esi
ret
push ebx
push edi
push esi
call fcn.004b04e7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b2d2e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b0604
push ebx
push esi
push edi
call fcn.0048ae30
add esp, 0xc
push 0
call fcn.004ae209
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b0ef3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b0879

Function at 0x4b5046
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ad563
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b50b5
cmp esi, dword [ebp - 4]
je 0x4b50b0
cmp dword [ebp + 0xc], 0
je 0x4b50b0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4b508d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004b4b98
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4b50b7
xor eax, eax
inc eax
jmp 0x4b50b7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4b511c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x516e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004ad563
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004ad563
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4b5193
cmp word [ecx], dx
je 0x4b5193
mov eax, dword [0x502d2c]
push edi
dec eax
push eax
push 0x502c18
call fcn.004b50bb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4b5206
cmp word [eax], dx
je 0x4b5206
mov eax, dword [edi]
test eax, eax
je 0x4b51b7
cmp word [eax], dx
je 0x4b51b7
lea eax, [ebp - 0x10]
push eax
call fcn.004b4a9e
jmp 0x4b51c0
lea eax, [ebp - 0x10]
push eax
call fcn.004b4b39
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4b5230
mov eax, dword [0x502c14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x502908
call fcn.004b50bb
add esp, 0xc
test al, al
je 0x4b5230
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4b51fb
cmp word [eax], di
je 0x4b51fb
lea eax, [ebp - 0x10]
push eax
call fcn.004b4a9e
pop ecx
jmp 0x4b5232
lea eax, [ebp - 0x10]
push eax
call fcn.004b4b39
jmp 0x4b51f8
mov eax, dword [edi]
test eax, eax
je 0x4b521d
cmp word [eax], dx
je 0x4b521d
lea eax, [ebp - 0x10]
push eax
call fcn.004b4a35
pop ecx
jmp 0x4b5230
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4b52fb
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004b4f40
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4b52fb
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4b52fb
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4b52fb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4b5288
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004b6009
test ebx, ebx
je 0x4b52f6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004b6009
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b52fb
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4b52fb
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004bb283
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4b52fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482279
leave
ret
Function at 0x4b5c7b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x503f54
push 0x503f4c
push str.FlsAlloc
push 0x1f
call fcn.004b5949
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b5caf
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cb33c]
call esi
jmp 0x4b5cb5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4b5cf9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x503f64
push 0x503f5c
push str.FlsGetValue
push 0x21
call fcn.004b5949
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b5d30
push dword [ebp + 8]
mov ecx, esi
call dword [0x4cb33c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4b5d38
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x503f6c
push 0x503f64
push str.FlsSetValue
push 0x22
call fcn.004b5949
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b5d72
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4cb33c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4c23eb
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 + 0x518790]
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 0x4c242b
cmp byte [ebx], 0xa
jne 0x4c242b
or byte [edi + eax + 0x28], 4
jmp 0x4c2430
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 0x4c252f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4c2512
inc eax
cmp dl, 0xd
je 0x4c245c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4c2482
cmp eax, ecx
jae 0x4c2490
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 0x4c2444
jmp 0x4c252f
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 0x4c250d
cmp dword [ebp - 0x10], 0
je 0x4c250d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x518790]
test byte [eax + edi + 0x28], 0x48
je 0x4c24e7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c24d2
mov byte [esi], dl
jmp 0x4c24e3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x518790]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c252f
cmp byte [ebp - 1], 0xa
jne 0x4c24f6
cmp esi, ebx
jne 0x4c24f6
mov byte [esi], 0xa
jmp 0x4c252e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c223d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c252f
mov byte [esi], 0xd
jmp 0x4c252e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x518790]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c252c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c252f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret