joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ffb80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 8], eax
push 0x5abbd8
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x4ffbbc
cmp byte [0x5abbdc], 0
je 0x4ffbcf
mov eax, dword [0x5abbec]
mov ecx, dword [0x5abbe8]
jmp 0x4ffc39
mov ecx, 0x5abbd8
call fcn.0047f4c0
cmp byte [0x5abbdc], 0
jne 0x4ffbaf
xorps xmm0, xmm0
movups xmmword [0x5abbe0], xmm0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
mov esi, esp
push 8
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4ffcaf
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [0x5abbe4], ecx
mov dword [0x5abbe0], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0xffffffff
push 8
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x4ffcb2
mov ecx, dword [esp]
mov eax, dword [esp + 4]
mov byte [0x5abbdc], 1
mov edx, dword [0x5abbe0]
mov ebx, dword [0x5abbe4]
mov esi, ebx
shld esi, edx, 0x17
mov edi, edx
shl edi, 0x17
xor edi, edx
xor esi, ebx
mov ebx, esi
shld ebx, edi, 0xf
mov edx, eax
shld edx, ecx, 6
xor edx, ecx
xor edx, edi
xor edx, ebx
mov edi, eax
shr edi, 0x1a
xor edi, eax
xor edi, esi
shr esi, 0x11
xor esi, edi
mov dword [0x5abbe0], ecx
mov dword [0x5abbe4], eax
mov dword [0x5abbe8], edx
add edx, ecx
mov dword [0x5abbec], esi
adc esi, eax
push 0x5abbd8
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [esp + 8]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3
Function at 0x502c6e
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [0x597010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov dword [edx], 0xffffffff
mov esi, 5
cmp eax, 3
jne 0x502d0f
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0xb], 0
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
jns 0x502cb2
mov esi, dword [esi]
mov ebx, dword [ebx]
push 0
push edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
je 0x502cfc
mov esi, eax
lea eax, [ebp - 0x14]
mov dword [eax], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edi, edi
push 3
push edi
push edi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb edi, edi
lea eax, [ebp - 0x14]
or edi, dword [eax]
jmp 0x502cff
xor edi, edi
dec edi
mov eax, dword [ebp + 0x2c]
mov dword [eax], edi
xor eax, eax
cmp edi, 0xffffffff
sete al
lea esi, [eax + eax*4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x50a0e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x14]
mov dword [esi], eax
lea edi, [ebp - 0x18]
mov dword [edi], eax
lea eax, [ebp - 0x1c]
mov dword [eax], 4
push eax
push edi
push esi
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x50a12d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x50a1e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0xcc
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0xc], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x30]
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
mov dword [esi + 0x20], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x14]
cmp eax, 0x100
jb 0x50a268
cmp dword [0x59d910], 1
jg 0x50a268
cmp dword [0x599b48], 0
je 0x50a268
lea esi, [ebp - 0xd4]
mov ecx, esi
push 1
push 0x10a
push str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
call fcn.00470c60
lea eax, [ebp - 0xcc]
push 0x2c
push str.dwNumberOfProcessors_exceeds_uint8_t_storage
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, esi
call fcn.00471070
mov eax, dword [ebp - 0x1c]
cmp eax, 0x100
mov ebx, 0xff
cmovb ebx, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xcc
pop esi
pop ebx
pop ebp
ret
Function at 0x51c15b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x3c]
cmp ecx, 9
jbe 0x51c176
xor eax, eax
jmp 0x51c270
mov al, 1
test ecx, ecx
je 0x51c270
lea ebx, [edx + 0x48]
xor esi, esi
cmp ecx, esi
jbe 0x51c1ef
mov eax, dword [ebx - 8]
mov ecx, dword [ebx]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx - 4]
add ecx, edx
mov edi, edx
mov edx, dword [ebp + 0x10]
mov dword [edx + esi*4], ecx
mov edx, edi
je case.0x51c1b2.3
mov ecx, dword [ebp + 0xc]
mov dword [ecx + esi*4 + 4], eax
mov ecx, dword [ebp + 0x10]
dec eax
cmp eax, 5
ja case.0x51c1b2.3
jmp dword [eax*4 + 0x58f348]
push 0xc
call fcn.005283f4
add esp, 4
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
push esi
call fcn.0051a426
test al, al
je 0x51c289
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + esi*4], ecx
mov edx, edi
jmp case.0x51c1b2.3
mov eax, dword [ebp + 0x10]
mov dword [eax + esi*4], 0
inc esi
mov ecx, dword [edx + 0x3c]
add ebx, 0xc
cmp esi, ecx
jb 0x51c185
jmp 0x51c26e
cmp dword [edx + 0x3c], esi
jbe 0x51c278
mov eax, dword [ebx - 4]
add eax, edx
je 0x51c278
cmp dword [ebx], 4
jne 0x51c278
cmp dword [ebx - 8], 2
je 0x51c236
jmp 0x51c278
cmp dword [edx + 0x3c], esi
jbe 0x51c278
mov eax, dword [ebx - 4]
add eax, edx
je 0x51c278
cmp dword [ebx], 4
jne 0x51c278
cmp dword [ebx - 8], 4
jne 0x51c278
mov eax, dword [eax]
mov dword [ecx + esi*4], eax
jmp case.0x51c1b2.3
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x51c278
push 8
mov dword [ebp - 0x18], eax
call fcn.005283f4
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0051c2b4
mov edx, edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + esi*4], ecx
jmp case.0x51c1b2.3
mov al, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
push ecx
push dword [ebp + 0xc]
call fcn.0051c0c8
add esp, 8
jmp 0x51c16f
mov eax, dword [ebp + 0x10]
mov dword [eax + esi*4], 0
push eax
push dword [ebp + 0xc]
call fcn.0051c0c8
add esp, 8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x51c16f
call fcn.0051c2fc
jmp 0x51c16f
Function at 0x51f8be
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf0
mov dword [ebp - 0xfc], edx
mov ebx, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x50]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.0042c59a
mov dword [ebp - 0xf8], ebx
mov ecx, ebx
push esi
push 0
push 0x40
push edx
push eax
call fcn.00526784
test al, al
je 0x51f982
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x51f9c9
mov ecx, edi
call fcn.0042c59a
mov edi, eax
mov eax, dword [ebp - 0x14]
mov esi, eax
sar esi, 0x1f
add edi, eax
adc esi, edx
mov ecx, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0xfc]
push ebx
push 0
push 0x108
push esi
push edi
call fcn.00526784
test al, al
je 0x51fa0d
cmp dword [ebx], 0x4550
jne 0x51fa51
mov eax, dword [ebp + 8]
mov bl, 1
test eax, eax
je 0x51fabb
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x51fabb
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x51fabb
cmp dword [0x599b48], 0
je 0x51fabb
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x154
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.00470c60
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x51fa8b
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x51fabb
cmp dword [0x599b48], 0
je 0x51fabb
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x15a
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.00470c60
lea eax, [ebp - 0xec]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x51fa8b
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x51fabb
cmp dword [0x599b48], 0
je 0x51fabb
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x162
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.00470c60
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x51fa8b
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x51fabb
cmp dword [0x599b48], 0
je 0x51fabb
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x168
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.00470c60
lea eax, [ebp - 0xec]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.0042d698
add esp, 0xc
mov edx, dword [ebp - 0xf8]
movzx ecx, byte [edx + 0xb]
test cl, cl
jns 0x51faa7
mov ecx, dword [edx + 4]
mov edx, dword [edx]
push ecx
push edx
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, edi
call fcn.00471070
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xf0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x51fad2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf0
mov dword [ebp - 0xfc], edx
mov ebx, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x50]
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
lea edi, [ecx + 0x10]
mov ecx, edi
call fcn.0042c59a
mov dword [ebp - 0xf8], ebx
mov ecx, ebx
push esi
push 0
push 0x40
push edx
push eax
call fcn.00526784
test al, al
je 0x51fb96
movzx eax, word [ebp - 0x50]
cmp eax, 0x5a4d
jne 0x51fbdd
mov ecx, edi
call fcn.0042c59a
mov edi, eax
mov eax, dword [ebp - 0x14]
mov esi, eax
sar esi, 0x1f
add edi, eax
adc esi, edx
mov ecx, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0xfc]
push ebx
push 0
push 0xf8
push esi
push edi
call fcn.00526784
test al, al
je 0x51fc21
cmp dword [ebx], 0x4550
jne 0x51fc65
mov eax, dword [ebp + 8]
mov bl, 1
test eax, eax
je 0x51fccf
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x51fccf
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x51fccf
cmp dword [0x599b48], 0
je 0x51fccf
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x154
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.00470c60
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_dos_header_from
jmp 0x51fc9f
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x51fccf
cmp dword [0x599b48], 0
je 0x51fccf
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x15a
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.00470c60
lea eax, [ebp - 0xec]
push 0x21
push str.invalid_e_magic_in_dos_header_of
jmp 0x51fc9f
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x51fccf
cmp dword [0x599b48], 0
je 0x51fccf
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x162
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.00470c60
lea eax, [ebp - 0xec]
push 0x1f
push str.could_not_read_nt_headers_from
jmp 0x51fc9f
xor ebx, ebx
cmp dword [0x59d910], 1
jg 0x51fccf
cmp dword [0x599b48], 0
je 0x51fccf
lea edi, [ebp - 0xf4]
mov ecx, edi
push 1
push 0x168
push str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
call fcn.00470c60
lea eax, [ebp - 0xec]
push 0x23
push str.invalid_signature_in_nt_headers_of
push eax
call fcn.0042d698
add esp, 0xc
mov edx, dword [ebp - 0xf8]
movzx ecx, byte [edx + 0xb]
test cl, cl
jns 0x51fcbb
mov ecx, dword [edx + 4]
mov edx, dword [edx]
push ecx
push edx
push eax
call fcn.0042d698
add esp, 0xc
mov ecx, edi
call fcn.00471070
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0xf0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x525ffe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
xor edx, edx
mov dword [edi], edx
mov ecx, dword [ebx]
sub esp, 0x1c
mov dword [esp + 0x18], eax
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edx
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x52605d
mov esi, eax
mov ebx, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 3
xor ecx, ecx
push ecx
push ecx
push edi
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx + ecx*4]
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00457010

Function at 0x528a03
Capabilities:
Parse pe header

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

Function at 0x53a0ea
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x56b200
push esi
call fcn.0054909f
pop ecx
pop ecx
test eax, eax
jne 0x53a118
xor al, al
jmp 0x53a195
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00539e79
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x53a152
push dword [ebp - 0x210]
call fcn.00460590
xor al, al
jmp 0x53a193
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x53a158
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x53a178
push edx
call fcn.0053a03c
pop ecx
test al, al
je 0x53a143
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x53a186
mov bl, 1
push dword [ebp - 0x210]
call fcn.00460590
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00528e13
leave
ret
Function at 0x53babe
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 + 0x59bae8]
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 0x53bafe
cmp byte [ebx], 0xa
jne 0x53bafe
or byte [edi + eax + 0x28], 4
jmp 0x53bb03
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 0x53bc02
mov dl, byte [eax]
cmp dl, 0x1a
je 0x53bbe5
inc eax
cmp dl, 0xd
je 0x53bb2f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x53bb55
cmp eax, ecx
jae 0x53bb63
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 0x53bb17
jmp 0x53bc02
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 0x53bbe0
cmp dword [ebp - 0x10], 0
je 0x53bbe0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x59bae8]
test byte [eax + edi + 0x28], 0x48
je 0x53bbba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x53bba5
mov byte [esi], dl
jmp 0x53bbb6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x59bae8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x53bc02
cmp byte [ebp - 1], 0xa
jne 0x53bbc9
cmp esi, ebx
jne 0x53bbc9
mov byte [esi], 0xa
jmp 0x53bc01
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0053b0d4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x53bc02
mov byte [esi], 0xd
jmp 0x53bc01
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x59bae8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x53bbff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x53bc02
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x53bc0b
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 + 0x59bae8]
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 0x53bc51
cmp word [ebx], dx
jne 0x53bc51
or byte [eax + edi + 0x28], 4
jmp 0x53bc56
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 0x53bdb9
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 0x53bd99
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x53bc97
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x53bccd
cmp eax, edx
jae 0x53bcdb
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 0x53bc72
jmp 0x53bdb9
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 0x53bd94
cmp dword [ebp - 0x18], 0
je 0x53bd94
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x59bae8]
test byte [eax + edi + 0x28], 0x48
je 0x53bd6a
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 0x53bd2e
mov word [esi], cx
jmp 0x53bd65
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x59bae8]
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 + 0x59bae8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x59bae8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x53bdb9
pop eax
cmp word [ebp - 4], ax
jne 0x53bd7a
cmp esi, ebx
jne 0x53bd7a
mov word [esi], ax
jmp 0x53bdb6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0053b0d4
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x53bdb9
push 0xd
pop eax
jmp 0x53bd75
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x59bae8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x53bdb3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x53bdb9
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 0x544b70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x544b9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x544b9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x545c36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x56c62c
push str.FlsAlloc
push 0x1f
call fcn.005460e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x545c6a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x545c70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x545cb4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x56c650
push str.FlsGetValue
push 0x21
call fcn.005460e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x545ceb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x545cf3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x56c664
push str.FlsSetValue
push 0x22
call fcn.005460e9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x545d2d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x549d97
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x597010]
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.0054546a
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.0054546a
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 0x549e0e
cmp word [ecx], dx
je 0x549e0e
mov eax, dword [0x56d024]
push edi
dec eax
push eax
push 0x56cf10
call fcn.00549f87
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x549e81
cmp word [eax], dx
je 0x549e81
mov eax, dword [edi]
test eax, eax
je 0x549e32
cmp word [eax], dx
je 0x549e32
lea eax, [ebp - 0x10]
push eax
call fcn.00549fe8
jmp 0x549e3b
lea eax, [ebp - 0x10]
push eax
call fcn.0054a2e3
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x549eab
mov eax, dword [0x56cf0c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x56cc00
call fcn.00549f87
add esp, 0xc
test al, al
je 0x549eab
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x549e76
cmp word [eax], di
je 0x549e76
lea eax, [ebp - 0x10]
push eax
call fcn.00549fe8
pop ecx
jmp 0x549ead
lea eax, [ebp - 0x10]
push eax
call fcn.0054a2e3
jmp 0x549e73
mov eax, dword [edi]
test eax, eax
je 0x549e98
cmp word [eax], dx
je 0x549e98
lea eax, [ebp - 0x10]
push eax
call fcn.0054a425
pop ecx
jmp 0x549eab
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 0x549f76
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0054a517
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x549f76
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x549f76
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x549f76
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x549f03
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00545f2c
test ebx, ebx
je 0x549f71
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00545f2c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x549f76
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 0x549f76
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0053af33
add esp, 0x10
xor eax, eax
inc eax
jmp 0x549f78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00528e13
leave
ret