joyce8/EMBER2024-capa huggingface dataset:
Function at 0x531af0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x531b80
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.005986a0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x531b4f
sub eax, ebp
jmp 0x531b51
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x531b40
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x531b70
sub eax, ebp
jmp 0x531b72
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x531b61
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x531caf
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [esp + 0xc]
mov ebx, ecx
mov dword [esp + 0x10], eax
cmp ebx, edx
jbe 0x531ba8
mov ebx, edx
test ebx, ebx
je 0x531bf9
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x531bcb
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.0054ea60
jmp 0x531bdd
cmp ecx, 2
jne 0x531be7
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.0052fea0
mov dword [edi + 0x30], eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call fcn.005986a0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x531c23
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x531c37
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x531b00
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x531caf
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x531c7e
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x531c5e
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.005985f0
add esp, 0xc
add ebx, edi
pop edi
pop ebp
mov dword [esi + 0x16c0], ebx
pop ebx
add esp, 8
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x531caf
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x531c98
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.005985f0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x538c80
Capabilities:
Terminate thread

Disassembly:
push 0
call fcn.004fab70
ret
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
lea eax, [esi + 0x4c]
push eax
lea ecx, [esp + 0xc]
call fcn.004d26e0
cmp byte [esi + 0x50], 0
jne 0x500a46
mov eax, dword [esp + 8]
test al, 1
je 0x500a77
and eax, 0xfffffffe
mov ecx, eax
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x500a2a
pop edi
pop esi
add esp, 4
jmp fcn.004fc910
mov esi, eax
xor edx, edx
mov eax, 1
lock cmpxchg dword [esi], edx
cmp eax, 1
je 0x500a77
pop edi
pop esi
add esp, 4
jmp fcn.004fc940
cmp byte [esi + 0x70], 0
jne 0x500a56
mov eax, dword [esp + 8]
mov byte [esi + 0x71], 1
jmp 0x500a0f
mov eax, dword [esi + 0x64]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push edi
mov byte [esi + 0x52], 1
call fcn.00500810
mov eax, dword [esp + 0x10]
add esp, 8
jmp 0x500a0f
pop edi
pop esi
pop ecx
ret
cmp dword [esp + 8], 0
jne case.default.0x538c90
mov eax, dword [esp + 0xc]
cmp eax, 6
ja case.default.0x538c90
jmp dword [eax*4 + 0x538ce4]
mov ecx, dword [esp + 4]
jmp fcn.00538c20
mov ecx, dword [esp + 4]
jmp fcn.00538c40
mov ecx, dword [esp + 4]
jmp fcn.00538c60
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [esp + 4]
push edx
call fcn.00500f00
ret
mov ecx, dword [esp + 4]
push 7
call fcn.00500f00
ret
mov ecx, dword [esp + 4]
jmp 0x5009f0
mov ecx, dword [esp + 4]
jmp 0x4fac10

Function at 0x539d90
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x2c
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x28], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
push edi
jne 0x539e7a
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 8
lea eax, [esp + 0xc]
push eax
push 0x1014
push ecx
call edi
test eax, eax
jne 0x539de1
mov eax, 3
pop edi
mov dword [esi + 8], eax
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0059393a
add esp, 0x2c
ret
mov ax, word [esp + 8]
cmp ax, 0x31
jne 0x539e07
mov dword [esi + 8], 3
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0059393a
add esp, 0x2c
ret
cmp ax, 0x30
jne 0x539e28
mov dword [esi + 8], 1
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0059393a
add esp, 0x2c
ret
cmp ax, 0x32
jne 0x539e49
mov dword [esi + 8], 2
mov eax, dword [esi + 8]
pop edi
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0059393a
add esp, 0x2c
ret
mov eax, dword [esi + 4]
push 0xb
lea edx, [esp + 0x1c]
push edx
push 0x13
push eax
call edi
test eax, eax
je 0x539dc8
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 8]
add ecx, 2
xor eax, eax
cmp edx, ecx
setne al
add eax, 2
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
xor ecx, esp
call fcn.0059393a
add esp, 0x2c
ret
Function at 0x539f10
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x208
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x204], eax
mov dword [esi], 0x6d00d4
mov eax, 0x6d00d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x20c]
push 0xff
lea edx, [esp + 8]
push edx
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x539f8a
push 0xffffffffffffffff
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
call fcn.004db100
add esp, 0xc
push eax
mov ecx, esi
call fcn.004d5a10
mov eax, dword [esp]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x539f8a
mov edx, dword [esp]
push edx
call fcn.004d8200
add esp, 4
mov ecx, dword [esp + 0x204]
xor ecx, esp
mov eax, esi
call fcn.0059393a
add esp, 0x208
ret

Function at 0x539ff0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 0xc
push esi
push 2
lea eax, [esp + 0xc]
push eax
push 0xd
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53a083
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004db100
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0x6a2734
call fcn.004d8260
test al, al
je 0x53a069
mov esi, dword [esp + 0x14]
push 1
mov ecx, esi
call fcn.004e8230
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x53a090
mov ecx, dword [esp + 4]
push ecx
call fcn.004d8200
add esp, 4
mov eax, esi
pop esi
add esp, 0xc
ret 4
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x53a083
mov ecx, dword [esp + 4]
push ecx
call fcn.004d8200
add esp, 4
mov esi, dword [esp + 0x14]
push 0
mov ecx, esi
call fcn.004e8230
mov eax, esi
pop esi
add esp, 0xc
ret 4

Function at 0x53a0a0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x30]
push 0xf
lea eax, [esp + 0xc]
push eax
push 0x28
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53a114
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004db100
add esp, 0xc
push eax
mov ecx, esi
call fcn.004ea340
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x53a121
mov eax, dword [esp + 4]
push eax
call fcn.004d8200
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0059393a
add esp, 0x28
ret 4
mov dword [esi + 8], closesocket
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0059393a
add esp, 0x28
ret 4
Function at 0x53a140
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x28
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x30]
push 0xf
lea eax, [esp + 0xc]
push eax
push 0x29
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53a1b4
push 0xffffffffffffffff
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
call fcn.004db100
add esp, 0xc
push eax
mov ecx, esi
call fcn.004ea340
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x53a1c1
mov eax, dword [esp + 4]
push eax
call fcn.004d8200
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0059393a
add esp, 0x28
ret 4
mov dword [esi + 8], closesocket
mov dword [esi], 0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0059393a
add esp, 0x28
ret 4

Function at 0x53a1e0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x10
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0xc], eax
mov ecx, dword [ecx + 4]
push esi
mov esi, dword [esp + 0x18]
push 4
lea eax, [esp + 0xc]
push eax
push 0x100c
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53a263
push 0xa
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004db100
add esp, 0xc
mov ecx, eax
call fcn.004d86e0
inc eax
push eax
mov ecx, esi
call fcn.004e8250
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x53a26c
mov eax, dword [esp + 4]
push eax
call fcn.004d8200
add esp, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0059393a
add esp, 0x10
ret 4
push 1
mov ecx, esi
call fcn.004e8230
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0059393a
add esp, 0x10
ret 4
Function at 0x53a280
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x21c
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, 0x6d00d4
push ebx
mov dword [esp + 8], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov dword [esp + 0x10], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xff
lea edx, [esp + 0x20]
push edx
push 1
push edi
call ebx
test eax, eax
je 0x53a307
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004db100
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004d5a10
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x53a307
mov ecx, dword [esp + 4]
push ecx
call fcn.004d8200
add esp, 4
mov edx, dword [esp + 0x10]
cmp dword [edx + 8], 0
je 0x53a382
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.004d9b20
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
lea edx, [esp + 0xf]
push edx
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0053cc90
add esp, 0x10
cmp byte [esp + 0xf], 0
je 0x53a368
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x53a368
cmp eax, 0x814
jne 0x53a368
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0x664f00
call fcn.004dadd0
mov ecx, dword [esp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x53a382
mov eax, dword [esp + 4]
push eax
call fcn.004de870
add esp, 4
mov eax, dword [esp + 8]
cmp dword [eax + 8], 0
je 0x53a3cc
mov dword [esi], eax
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x10]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x53a3b1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004d8200
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x53a45a
mov ecx, dword [esp + 8]
push ecx
jmp 0x53a452
push 0xff
lea edx, [esp + 0x20]
push edx
push 0x59
push edi
call ebx
test eax, eax
je 0x53a417
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004db100
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
call fcn.004d5a10
mov edx, dword [esp + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x53a417
mov ecx, dword [esp + 4]
push ecx
call fcn.004d8200
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi], eax
mov edx, 1
lock xadd dword [eax], edx
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x53a440
mov edx, dword [esp + 0x10]
push edx
call fcn.004d8200
add esp, 4
mov eax, dword [esp + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x53a45a
mov edx, dword [esp + 8]
push edx
call fcn.004d8200
add esp, 4
mov ecx, dword [esp + 0x21c]
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0059393a
add esp, 0x21c
ret
Function at 0x53a830
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x9c
push ebx
push esi
push edi
mov ebx, ecx
test eax, eax
jne 0x53a848
mov eax, 0x40
cmp eax, 0x40
mov ecx, eax
mov dword [esp + 0x14], ecx
jle 0x53a868
add eax, eax
push eax
call fcn.004de860
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x10], ecx
jmp 0x53a874
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x40
mov esi, dword [esp + 0xb0]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ecx
mov ecx, dword [ebx + 4]
push eax
push esi
push ecx
mov dword [esp + 0x28], eax
call edi
test eax, eax
jne 0x53a8b2
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6d00d4
mov edx, 0x6d00d4
mov eax, 1
lock xadd dword [edx], eax
jmp 0x53a942
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x53a92b
mov edx, dword [ebx + 4]
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x53a8f3
mov esi, dword [esp + 0xac]
mov dword [esi], 0x6d00d4
mov eax, 0x6d00d4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
cmp eax, edx
jmp 0x53a94c
cmp eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
jl 0x53a905
lea ecx, [esp + 0xc]
mov ecx, dword [ecx]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.0051e210
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
push edx
push eax
push esi
push ecx
call edi
test eax, eax
je 0x53a892
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0xac]
push 0xffffffffffffffff
push edx
push esi
call fcn.004db100
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
cmp eax, ecx
je 0x53a957
push eax
call fcn.004de870
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 0xc
Function at 0x53abe0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xc8
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xd0]
sub eax, 0
push ebx
push esi
push edi
mov edi, dword [esp + 0xd8]
mov esi, ecx
je 0x53ad8a
sub eax, 1
je 0x53ad2a
sub eax, 1
jne 0x53ac70
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, 0x40
lea ecx, [esp + 0x2c]
push eax
mov edx, ecx
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
push 0x1008
push eax
mov dword [esp + 0x34], ecx
call ebx
test eax, eax
jne 0x53acd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x53ac99
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x53ac70
push eax
call fcn.004de870
add esp, 4
mov dword [edi + 8], closesocket
mov dword [edi], 0
mov ecx, dword [esp + 0xd0]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059393a
add esp, 0xc8
ret 8
mov ecx, 0xff
cmp dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x1c]
jg 0x53acb0
lea eax, [esp + 0x18]
mov edx, dword [eax]
push edx
push ecx
lea ecx, [esp + 0x24]
call fcn.0051e210
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 4]
push eax
push ecx
push 0x1008
push edx
call ebx
test eax, eax
je 0x53ac5b
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004db100
add esp, 0xc
push eax
mov ecx, edi
call fcn.004ea340
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x53ad0c
mov eax, dword [esp + 0x14]
push eax
call fcn.004d8200
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x53ac7d
push eax
call fcn.004de870
add esp, 4
jmp 0x53ac7d
mov eax, dword [esi + 4]
push 0xd
lea edx, [esp + 0xb8]
push edx
push 0x14
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53ac70
push 0xffffffffffffffff
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004db100
add esp, 0xc
push eax
mov ecx, edi
call fcn.004ea340
mov eax, dword [esp + 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x53ac7d
mov edx, dword [esp + 0x10]
push edx
call fcn.004d8200
add esp, 4
jmp 0x53ac7d
mov ecx, dword [esi + 4]
push 9
lea eax, [esp + 0xb8]
push eax
push 0x15
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x53ac70
push 0xffffffffffffffff
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.004db100
add esp, 0xc
push eax
mov ecx, edi
call fcn.004ea340
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x53ac7d
mov eax, dword [esp + 0xc]
push eax
call fcn.004d8200
add esp, 4
jmp 0x53ac7d
Function at 0x541b40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov ebx, dword [edi + 0xc]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], ebx
jl 0x541cf6
mov ebp, dword [esp + 0x24]
jg 0x541b6b
cmp ebp, eax
jb 0x541cf6
cmp ebp, ebp
jne 0x541cf6
cmp ecx, eax
jne 0x541cf6
push esi
xor esi, esi
mov dword [esp + 0x1c], eax
cmp dword [edi + 0x58], eax
je 0x541c38
mov byte [esp + 0x13], 1
mov eax, dword [edi + 0x58]
mov edx, dword [esp + 0x24]
push eax
mov ecx, ebp
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call fcn.00597b63
mov ecx, dword [edi + 0x58]
push ecx
mov ebx, eax
call fcn.0059785b
add esp, 0x14
test eax, eax
setne al
cmp byte [esp + 0x13], 0
mov byte [esp + 0x12], al
je 0x541bf3
test al, al
je 0x541bf3
test ebx, ebx
jne 0x541bf3
mov edx, dword [edi + 0x58]
push ebx
push edx
call fcn.0059a911
add esp, 4
push edx
push eax
mov eax, dword [edi + 0x58]
push eax
call fcn.0059c40f
mov al, byte [esp + 0x22]
add esp, 0x10
mov byte [esp + 0x13], bl
jmp 0x541bfa
add esi, ebx
adc dword [esp + 0x1c], 0
test al, al
jne 0x541ce6
test ebx, ebx
jne 0x541c1f
call fcn.00598f71
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x541b90
jmp 0x541c93
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x2c]
jg 0x541c97
jl 0x541b90
cmp esi, ebp
jae 0x541c97
jmp 0x541b90
cmp dword [edi + 0x70], 0xffffffff
je 0x541ca7
mov edi, edi
mov ecx, dword [esp + 0x24]
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [edi + 0x70]
lea edx, [esi + ecx]
push edx
push eax
call fcn.0059c276
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x541c6c
call fcn.00598f71
cmp dword [eax], 4
je 0x541c40
jmp 0x541c8b
test ebx, ebx
jle 0x541c8b
mov eax, ebx
cdq
add esi, eax
mov eax, dword [esp + 0x1c]
adc eax, edx
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
jl 0x541c40
jg 0x541c8b
cmp esi, ebp
jb 0x541c40
cmp ebx, 0xffffffff
setne byte [esp + 0x12]
mov al, byte [esp + 0x12]
test al, al
jne 0x541ce6
mov ecx, esi
or ecx, dword [esp + 0x1c]
jne 0x541ce6
mov ebx, dword [esp + 0x14]
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
call fcn.00598f71
mov edx, dword [eax]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004d1480
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.00544c20
mov ecx, dword [esp + 0x24]
or edx, esi
lock xadd dword [ecx], edx
jne 0x541ce6
mov eax, dword [esp + 0x24]
push eax
call fcn.004d8200
add esp, 4
mov edx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
lea ecx, [esp + 0x20]
push 0x16
push ecx
call fcn.004d1480
add esp, 8
push eax
push 1
mov ecx, ebx
call fcn.00544c20
mov edx, dword [esp + 0x20]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x541d29
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004d8200
add esp, 4
pop edi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x541e70
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], esi
test ecx, ecx
jl 0x541fab
mov edi, dword [esp + 0x18]
jg 0x541e97
test edi, edi
jb 0x541fab
xor eax, eax
cmp edi, edi
jne 0x541fab
cmp ecx, eax
jne 0x541fab
push ebx
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 0x58], eax
je 0x541efa
mov eax, dword [ebp + 0x58]
mov edx, dword [esp + 0x18]
push eax
mov ecx, edi
sub ecx, esi
push ecx
lea eax, [esi + edx]
push 1
push eax
call fcn.005976e6
add esp, 0x10
add esi, eax
adc ebx, 0
test eax, eax
jne 0x541eec
call fcn.00598f71
xor ecx, ecx
cmp dword [eax], 4
sete cl
mov eax, ecx
test eax, eax
jne 0x541eb3
jmp 0x541f3f
cmp ebx, dword [esp + 0x20]
jg 0x541f3f
jl 0x541eb3
cmp esi, edi
jae 0x541f3f
jmp 0x541eb3
cmp dword [ebp + 0x70], 0xffffffff
je 0x541f3f
mov eax, dword [esp + 0x18]
mov edx, edi
sub edx, esi
push edx
mov edx, dword [ebp + 0x70]
lea ecx, [esi + eax]
push ecx
push edx
call fcn.0059ccd9
add esp, 0xc
cmp eax, 0xffffffff
jne 0x541f2a
call fcn.00598f71
cmp dword [eax], 4
je 0x541f00
jmp 0x541f3f
test eax, eax
jle 0x541f3f
cdq
add esi, eax
adc ebx, edx
cmp ebx, dword [esp + 0x20]
jl 0x541f00
jg 0x541f3f
cmp esi, edi
jb 0x541f00
or edi, dword [esp + 0x20]
je 0x541f9f
mov eax, esi
or eax, ebx
jne 0x541f9f
or esi, 0xffffffff
or ebx, esi
call fcn.00598f71
mov edi, eax
call fcn.00598f71
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebp, eax
call fcn.004d1480
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
xor eax, eax
cmp dword [ebp], 0x1c
sete al
lea eax, [eax + eax + 2]
push eax
call fcn.00544c20
mov ecx, dword [esp + 0x18]
or edx, esi
lock xadd dword [ecx], edx
jne 0x541f9f
mov eax, dword [esp + 0x18]
push eax
call fcn.004d8200
add esp, 4
mov edx, ebx
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 0xc
lea ecx, [esp + 0x14]
push 0x16
push ecx
call fcn.004d1480
add esp, 8
push eax
push 2
mov ecx, esi
call fcn.00544c20
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x541fde
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004d8200
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
or edx, eax
pop ebp
pop ecx
ret 0xc