joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
sub eax, 0x2a
dec esi
mov edi, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x44ff40
cmp esi, 0x28
jg 0x44ff02
sub esp, 0xc
push 0x33
push str.external_openssl_crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.00424900
xor eax, eax
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [edi + 0x15]
mov byte [edi], 0
mov dword [ebp - 0x34], eax
call fcn.00452650
push edx
push edx
push 0
push eax
push 0
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.0045b950
add esp, 0x20
test eax, eax
jne 0x44ff50
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 0x2d
push str.external_openssl_crypto_rsa_rsa_oaep.c
push 0x6e
jmp 0x44feec
lea eax, [edi + 1]
mov ebx, esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
sub ebx, eax
lea edx, [edi + 0x29]
push ecx
lea eax, [ebx - 0x29]
push eax
push 0
push edx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov byte [eax + ebx - 0x15], 1
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp + 0x14]
add eax, esi
mov esi, dword [ebp + 0x14]
sub eax, esi
push ebx
mov ecx, dword [ebp + 0x10]
sub eax, 0x14
push ecx
push eax
call sub.msvcrt.dll_memcpy
pop eax
pop edx
push 0x14
mov eax, dword [ebp - 0x30]
push eax
call fcn.00427980
add esp, 0x10
test eax, eax
jle 0x44ff2f
mov ebx, dword [ebp + 0xc]
push esi
sub ebx, 0x15
push 0x49
push str.external_openssl_crypto_rsa_rsa_oaep.c
push ebx
call fcn.00425130
add esp, 0x10
mov esi, eax
test eax, eax
je 0x45003a
sub esp, 0xc
mov edx, ebx
push 0x14
mov ecx, dword [ebp - 0x30]
call fcn.0044fc70
add esp, 0x10
test eax, eax
js 0x44ff2f
xor edx, edx
mov al, byte [edx + esi]
xor byte [edx + edi + 0x15], al
inc edx
cmp edx, ebx
jne 0x44ffe0
sub esp, 0xc
mov edx, 0x14
lea eax, [ebp - 0x20]
push ebx
mov ecx, dword [ebp - 0x34]
call fcn.0044fc70
add esp, 0x10
test eax, eax
js 0x44ff2f
mov al, byte [ebp - 0x20]
mov edx, 1
xor byte [edi + 1], al
mov al, byte [edx + ebp - 0x20]
xor byte [edx + edi + 1], al
inc edx
cmp edx, 0x14
jne 0x450016
sub esp, 0xc
push esi
call fcn.00425260
mov eax, 1
add esp, 0x10
jmp 0x44fefa
sub esp, 0xc
push 0x4c
push str.external_openssl_crypto_rsa_rsa_oaep.c
push 0x41
jmp 0x44feec
Function at 0x450280
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0x14]
jne 0x45029d
mov dl, byte [esi]
lea eax, [edx - 0x6a]
cmp al, 1
jbe 0x4502c8
sub esp, 0xc
push 0x72
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x89
push pe_nt_image_headers32
push 4
call fcn.00424900
or esi, 0xffffffff
mov eax, esi
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebx, [esi + 1]
cmp dl, 0x6b
je 0x4502f2
lea esi, [ecx - 2]
cmp byte [ebx + esi], 0xcc
jne 0x450345
push edx
push esi
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ecx - 3]
test edi, edi
jle 0x45035c
mov dl, byte [esi + 1]
cmp dl, 0xba
je 0x45035c
cmp dl, 0xbb
jne 0x45032e
lea ebx, [esi + 2]
xor eax, eax
mov ecx, edi
jmp 0x45031f
mov dl, byte [eax + esi + 1]
inc ebx
cmp dl, 0xba
je 0x450328
cmp dl, 0xbb
jne 0x45032e
inc eax
cmp eax, ecx
jne 0x450310
test eax, eax
je 0x45035c
mov esi, edi
sub esi, eax
jmp 0x4502d3
sub esp, 0xc
push 0x81
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x4502ac
sub esp, 0xc
push 0x93
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8b
jmp 0x4502ac
sub esp, 0xc
push 0x8a
push str.external_openssl_crypto_rsa_rsa_x931.c
push 0x8a
jmp 0x4502ac
Function at 0x45a040
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret

Function at 0x45a0f0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret
Function at 0x46eac0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 8
mov ebx, dword [ebp + 8]
push 0x70
push 0
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0x6a09e667
mov dword [ebx + 4], 0xbb67ae85
mov dword [ebx + 8], 0x3c6ef372
mov dword [ebx + 0xc], 0xa54ff53a
mov dword [ebx + 0x10], 0x510e527f
mov dword [ebx + 0x14], 0x9b05688c
mov dword [ebx + 0x18], 0x1f83d9ab
mov dword [ebx + 0x1c], 0x5be0cd19
mov dword [ebx + 0x6c], 0x20
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x46eb20
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 8
mov ebx, dword [ebp + 8]
push 0x70
push 0
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0xc1059ed8
mov dword [ebx + 4], 0x367cd507
mov dword [ebx + 8], 0x3070dd17
mov dword [ebx + 0xc], 0xf70e5939
mov dword [ebx + 0x10], 0xffc00b31
mov dword [ebx + 0x14], 0x68581511
mov dword [ebx + 0x18], 0x64f98fa7
mov dword [ebx + 0x1c], 0xbefa4fa4
mov dword [ebx + 0x6c], 0x1c
mov eax, 1
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x480a40
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00496360

Function at 0x480a50
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00495f50

Function at 0x48ada0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc
push str.OPENSSL_CONF
call sub.msvcrt.dll_getenv
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x48add2
sub esp, 0xc
push eax
call fcn.0042b7d0
add esp, 0x10
mov ebx, eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
call fcn.0049a3b0
sub esp, 0xc
push eax
call sub.msvcrt.dll_strlen
add esp, 0xc
lea esi, [eax + 0xd]
push 0x231
push str.external_openssl_crypto_conf_conf_mod.c
push esi
call fcn.00425130
add esp, 0x10
test eax, eax
je 0x48adc9
mov ebx, eax
call fcn.0049a3b0
push edx
push esi
push eax
push ebx
call fcn.0042b6c0
add esp, 0xc
push esi
push 0x4d2780
push ebx
call fcn.0042b720
add esp, 0xc
push esi
push str.openssl.cnf
push ebx
call fcn.0042b720
add esp, 0x10
jmp 0x48adc9
Function at 0x493c40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
mov edx, dword [ecx + 4]
cmp eax, edx
jl 0x493d12
mov edx, dword [ebp + 8]
mov ebx, esi
mov edi, ecx
cmp dword [edx + 8], eax
jl 0x493d24
mov eax, dword [edi + 4]
xor esi, esi
test eax, eax
jle 0x493c9b
mov ecx, dword [ebp + 8]
lea edx, [esi*4]
inc esi
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + edx]
xor eax, dword [ecx + edx]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + edx], eax
cmp dword [edi + 4], esi
jg 0x493c76
mov edx, dword [ebx + 4]
cmp esi, edx
jge 0x493cc8
lea ecx, [esi*4]
lea esi, [esi]
mov edx, dword [ebp + 8]
inc esi
mov eax, dword [edx]
mov edx, dword [ebx]
mov edx, dword [edx + ecx]
mov dword [eax + ecx], edx
add ecx, 4
mov edx, dword [ebx + 4]
cmp edx, esi
jg 0x493cb0
mov ecx, dword [ebp + 8]
test edx, edx
mov dword [ecx + 4], edx
mov ecx, 1
jle 0x493d08
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
sub eax, 4
lea eax, [eax + edx*4]
mov ecx, eax
mov eax, dword [eax]
test eax, eax
je 0x493cfa
jmp 0x493cfd
mov eax, dword [ecx - 4]
sub ecx, 4
test eax, eax
jne 0x493cfd
dec edx
jne 0x493cf0
mov eax, dword [ebp + 8]
mov ecx, 1
mov dword [eax + 4], edx
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edx
mov edx, dword [ebp + 8]
mov ebx, ecx
mov edi, esi
cmp dword [edx + 8], eax
jge 0x493c6d
push ecx
push ecx
push eax
push edx
call fcn.0041ce80
add esp, 0x10
xor ecx, ecx
test eax, eax
jne 0x493c6d
jmp 0x493d08
Function at 0x49b630
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x49b6b0
mov eax, dword [ebp + 8]
test eax, eax
je 0x49b6ba
test esi, esi
je 0x49b689
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esi
push eax
push eax
lea eax, [ebp - 0x18]
push eax
mov edi, dword [ebp + 8]
mov edi, dword [edi + 8]
push edi
call fcn.0043bda0
add esp, 0x10
test eax, eax
je 0x49b678
mov eax, dword [eax + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x4d61d3
mov ecx, 4
cld
mov edi, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x49b6c8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.default
mov dword [ebp - 0x14], ebx
push ecx
push ecx
push eax
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
push edx
call fcn.0043bda0
add esp, 0x10
test eax, eax
jne 0x49b66d
lea esi, [esi]
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push ebx
call sub.msvcrt.dll_getenv
add esp, 0x10
jmp 0x49b670
sub esp, 0xc
push ebx
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
jne 0x49b670
jmp 0x49b689
Function at 0x4a0cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x4a0e8e
cmp byte [ebx], 0
je 0x4a0e50
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a0e7c
test al, 0x10
je 0x4a0e50
push eax
push 0x104
push ebx
lea edi, [esp + 0x24]
push edi
call sub.msvcrt.dll__fullpath
pop eax
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x4a0d2e
test edx, 0x8080
je 0x4a0e42
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x233]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x4a0e6a
lea esi, [eax + 0x22c]
mov ebp, eax
push eax
push eax
push edi
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [ebx + 0x22c], 0
jne 0x4a0df4
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0xc
mov word [eax + esi], 0x2a
lea eax, [ebx + 0x120]
mov dword [ebx + 0x224], 0xffffffff
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
push 0x104
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
pop edx
pop ecx
push 0x2f
lea edi, [esi + eax - 1]
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp eax, edi
je 0x4a0d8f
push eax
push eax
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp edi, eax
je 0x4a0d8f
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [eax + esi], 0x5c
jmp 0x4a0d8f
shr edx, 0x10
add ecx, 2
jmp 0x4a0d52
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xc
jmp 0x4a0de7
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x4a0de7
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x4a0de7
Function at 0x401000
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
jne 0x40101b
mov eax, dword [ebp + 8]
push eax
call fcn.00401940
add esp, 4
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], 0x1505
mov dword [ebp - 4], 0
jmp 0x401034
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jae 0x401055
mov eax, dword [ebp - 8]
shl eax, 5
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
add eax, edx
mov dword [ebp - 8], eax
jmp 0x40102b
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x401670
Capabilities:
Resolve function by djb2 hash

Disassembly:
push ebp
mov ebp, esp
push 0x5fbff0fb
mov eax, dword [0xc588ac]
push eax
call fcn.00401a40
add esp, 8
mov dword [0xc588bc], eax
push 0x74e7c8
call dword [0xc588bc]
mov dword [0xc588a8], eax
push str.user32.dll
call dword [0xc588bc]
mov dword [0xc588b0], eax
push 0
push 0xe1db2410
mov ecx, dword [0xc588ac]
push ecx
call fcn.00401a40
add esp, 8
call eax
push eax
push 0xe321461e
mov edx, dword [0xc588b0]
push edx
call fcn.00401a40
add esp, 8
call eax
push 0xc6580d02
mov eax, dword [0xc588ac]
push eax
call fcn.00401a40
add esp, 8
mov dword [0xc588c0], eax
push 0xc0b381da
mov ecx, dword [0xc588a8]
push ecx
call fcn.00401a40
add esp, 8
mov dword [0xc588c4], eax
push 0x82962c8
mov edx, dword [0xc588a8]
push edx
call fcn.00401a40
add esp, 8
mov dword [0xc588b4], eax
push 0x6793c34c
mov eax, dword [0xc588a8]
push eax
call fcn.00401a40
add esp, 8
mov dword [0xc588b8], eax
pop ebp
ret

Function at 0x402525
Capabilities:
Parse pe header

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

Function at 0x40ed64
Capabilities:
Parse pe header

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

Function at 0x42eb49
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042ea1d
Function at 0x42f644
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0xc57e80]
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 0x42f68f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042fae4
test al, al
jne 0x42f689
sub edx, 2
cmp edx, edi
jne 0x42f66f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42f6b1
lea eax, [edi + 2]
cmp edx, eax
je 0x42f6b1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042f30b
add esp, 0x10
jmp 0x42f7ab
push esi
lea ecx, [ebp - 0x255]
call fcn.0042fae4
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 0x42f6f4
push dword [ebp - 0x25c]
jmp 0x42f6a1
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 0x42f731
cmp word [ebp - 0x226], 0
je 0x42f752
cmp word [ebp - 0x226], ax
jne 0x42f731
cmp word [ebp - 0x224], 0
je 0x42f752
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042f30b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42f79e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42f70b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42f786
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42f7ab
push 0x42ed5b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0043a760
add esp, 0x10
jmp 0x42f77b
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.00402c66
leave
ret
Function at 0x43102b
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 0x4310c8
push ebx
push esi
call fcn.00430fe7
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.00430f24
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x431075
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4310c7
push edi
push eax
call fcn.0043382e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x431095
call fcn.0042ed09
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4310c6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00430f24
add esp, 0x20
test eax, eax
jne 0x4310b4
push edi
call fcn.0042ed09
jmp 0x4310bc
push ebx
call fcn.0042ed09
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 0x4310cb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4310dc
pop esi
ret
push ebx
push edi
push esi
call fcn.00430fe7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043382e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x431104
push ebx
push esi
push edi
call fcn.0040b9a0
add esp, 0xc
push 0
call fcn.0042ed09
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4319f3
Capabilities:
Set environment variable

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

Function at 0x435b46
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042e063
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 0x435bb5
cmp esi, dword [ebp - 4]
je 0x435bb0
cmp dword [ebp + 0xc], 0
je 0x435bb0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x435b8d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00435698
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x435bb7
xor eax, eax
inc eax
jmp 0x435bb7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x435c1c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xc57e80]
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.0042e063
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.0042e063
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 0x435c93
cmp word [ecx], dx
je 0x435c93
mov eax, dword [0xa0ac5c]
push edi
dec eax
push eax
push 0xa0ab48
call fcn.00435bbb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x435d06
cmp word [eax], dx
je 0x435d06
mov eax, dword [edi]
test eax, eax
je 0x435cb7
cmp word [eax], dx
je 0x435cb7
lea eax, [ebp - 0x10]
push eax
call fcn.0043559e
jmp 0x435cc0
lea eax, [ebp - 0x10]
push eax
call fcn.00435639
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x435d30
mov eax, dword [0xa0ab44]
push dword [ebp - 0x14]
dec eax
push eax
push 0xa0a838
call fcn.00435bbb
add esp, 0xc
test al, al
je 0x435d30
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x435cfb
cmp word [eax], di
je 0x435cfb
lea eax, [ebp - 0x10]
push eax
call fcn.0043559e
pop ecx
jmp 0x435d32
lea eax, [ebp - 0x10]
push eax
call fcn.00435639
jmp 0x435cf8
mov eax, dword [edi]
test eax, eax
je 0x435d1d
cmp word [eax], dx
je 0x435d1d
lea eax, [ebp - 0x10]
push eax
call fcn.00435535
pop ecx
jmp 0x435d30
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 0x435dfb
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00435a40
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x435dfb
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x435dfb
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x435dfb
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x435d88
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00436b09
test ebx, ebx
je 0x435df6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00436b09
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435dfb
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 0x435dfb
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043bc23
add esp, 0x10
xor eax, eax
inc eax
jmp 0x435dfd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402c66
leave
ret
Function at 0x43677b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa0be84
push 0xa0be7c
push str.FlsAlloc
push 0x1f
call fcn.00436449
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4367af
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c14c]
call esi
jmp 0x4367b5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4367f9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa0be94
push 0xa0be8c
push str.FlsGetValue
push 0x21
call fcn.00436449
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436830
push dword [ebp + 8]
mov ecx, esi
call dword [0x44c14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x436838
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xa0be9c
push 0xa0be94
push str.FlsSetValue
push 0x22
call fcn.00436449
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436872
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44c14c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]