joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e8c0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [eax]
mov dword [esp + 0xc], ebx
mov dword [esi], eax
test eax, eax
je 0x44e8ed
mov ecx, 1
add eax, 4
lock xadd dword [eax], ecx
mov eax, dword [0x4d9434]
test eax, 0xfffffffe
jne 0x44e919
push 0x4d9434
call fcn.0042d6a0
add esp, 4
test al, al
je 0x44e919
mov ecx, 0x4d9438
call fcn.00428100
mov dword [0x4d9434], eax
mov eax, dword [0x4d9434]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x44e968
cmp dword [0x4d8374], 3
jg 0x44e95a
push 3
push 0x23
push 0x416758
lea ecx, [esp + 0x1c]
lea ebx, [eax + 4]
call fcn.0041b540
add eax, 8
push 0x4167a4
push eax
call fcn.004200c0
add esp, 8
test bl, 4
je 0x44e968
lea ecx, [esp + 0x10]
call fcn.0041b6f0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44e980
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
mov eax, dword [0x4d9434]
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov esi, ecx
test eax, 0xfffffffe
jne 0x44e9c2
push 0x4d9434
call fcn.0042d6a0
add esp, 4
test al, al
je 0x44e9c2
mov ecx, 0x4d9438
call fcn.00428100
mov dword [0x4d9434], eax
mov eax, dword [0x4d9434]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x44ea12
cmp dword [0x4d8374], 3
jg 0x44ea04
push 3
push 0x23
push 0x416758
lea ecx, [esp + 0x1c]
lea ebx, [eax + 2]
call fcn.0041b540
add eax, 8
push 0x4167a4
push eax
call fcn.004200c0
add esp, 8
test bl, 2
je 0x44ea12
lea ecx, [esp + 0x10]
call fcn.0041b6f0
mov ecx, dword [esi]
test ecx, ecx
je 0x44ea4e
add ecx, 4
or eax, 0xffffffff
lock xadd dword [ecx], eax
sub eax, 1
setne al
test al, al
jne 0x44ea4e
test ecx, ecx
je 0x44ea35
add ecx, 0xfffffffc
jmp 0x44ea37
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x417184
jne 0x44ea54
push 1
call dword [eax + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
jmp 0x44ea4e
Function at 0x44fbb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x4d8484]
mov dword [esp], 0
push ebx
push esi
push edi
mov edi, ecx
test eax, 0xfffffffe
jne 0x44fbf1
push 0x4d8484
call fcn.0042d6a0
add esp, 4
test al, al
je 0x44fbf1
mov ecx, 0x4d8488
call fcn.00428100
mov dword [0x4d8484], eax
mov eax, dword [0x4d8484]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 1
cmp byte [eax + 0x6d], 0
lea eax, [esp + 0x28]
je 0x44fc3d
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0xf
push 0xf
push 0
push eax
call esi
test eax, eax
jne 0x44fc39
push 1
push 0x113
push 0x113
push eax
lea eax, [esp + 0x34]
push eax
call esi
test eax, eax
jne 0x44fc39
xor bl, bl
jmp 0x44fc4f
mov bl, 1
jmp 0x44fc4f
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
setne bl
mov esi, dword [0x4d9450]
test esi, esi
jne 0x44fc7d
call fcn.0044c850
test eax, eax
jne 0x44fc69
mov esi, 0x4d93c1
jmp 0x44fc77
push 0x4174e4
mov ecx, eax
call fcn.0044abd0
mov esi, eax
mov dword [0x4d9450], esi
mov dword [esp + 0x10], 0
test byte [esi], 0xd
je 0x44fcc2
lea eax, [esp + 0x28]
mov edx, esi
push eax
push 0x41753c
sub esp, 0x18
push 0x4174fc
call fcn.00450570
mov dword [esp + 0x40], eax
add esp, 0x24
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x4174fc
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
xor ecx, ecx
lea eax, [edi + 0x28]
xchg dword [eax], ecx
test bl, bl
je 0x44fce2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.0044f8a0
mov bl, al
cmp dword [esp + 0x10], 0
je 0x44fd0e
mov ecx, dword [esp + 0x14]
cmp byte [ecx], 0
je 0x44fd0e
call fcn.0044c850
push dword [esp + 0x20]
mov ecx, eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0044bd80
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450730
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4d8484]
push esi
mov esi, ecx
test eax, 0xfffffffe
jne 0x45075f
push 0x4d8484
call fcn.0042d6a0
add esp, 4
test al, al
je 0x45075f
mov ecx, 0x4d8488
call fcn.00428100
mov dword [0x4d8484], eax
mov eax, dword [0x4d8484]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi], eax
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], esi
pop esi
ret
Function at 0x450ac0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ecx
push edi
mov eax, ecx
mov dword [ebp - 8], ebx
mov edi, 8
or ecx, 0xffffffff
mov esi, edi
cmp edi, ecx
mov dword [ebp - 8], ecx
cmova esi, ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x450afd
cmp byte [0x4d9358], al
jne 0x450b23
int3
test bl, 1
je 0x450b10
lea ecx, [ebp - 0xb8]
and ebx, 0xfffffffe
call fcn.0041b6f0
mov eax, dword [ebp - 4]
add eax, esi
mov dword [ebp - 4], eax
sub edi, esi
jne 0x450adb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.004b94a2
int3
Function at 0x450c60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x450c8c
xor ecx, ecx
jmp 0x450ca9
cmp byte [edi], 0
jne 0x450c95
xor ecx, ecx
jmp 0x450ca9
mov ecx, edi
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450ca0
sub ecx, esi
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.00429c10
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x450cc0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp ecx, 8
jb 0x450ce1
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.0041fc80
test esi, esi
jne 0x450cfa
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x450e10
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aa4a5
add esp, 4
mov esi, eax
push dword [ebp - 0x38]
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x450d49
cmp byte [edi], 0
jne 0x450d37
xor edi, edi
jmp 0x450d49
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x450d40
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.00429c10
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x450d60
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x450d7c
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.0041fc80
push esi
lea ecx, [ebp - 0x1c]
call fcn.0041c120
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00429b00
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x450dc7
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x450dae
inc ecx
push ecx
push dword [ebx]
mov ecx, ebx
call fcn.0041e500
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.0041e2b0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x450ddc
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.0041e500
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 8
jb 0x450e03
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.0041fc80
test esi, esi
je 0x450e10
push esi
call fcn.004aa39f
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret 8
Function at 0x4510c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x68]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x60]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x64], eax
call fcn.00458f70
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x70]
call fcn.00459090
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call fcn.00451020
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret

Function at 0x451b90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x451c00
push ebx
push esi
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x417620]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x417620]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x417620]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x417620]
sub ebx, 1
jne 0x451ba7
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4529c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4d40d4]
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x40c], ebx
push esi
push edi
cmp ebx, 0xffffffff
jne 0x452a60
mov edi, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
cmp eax, ebx
je 0x452a0d
mov ebx, eax
mov dword [ebp - 0x40c], ebx
jmp 0x452a3e
cmp byte [0x4d9358], 0
jne 0x452ad7
int3
mov ecx, ebx
mov edx, 0x4d40d4
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x452a60
push ebx
call esi
mov ebx, dword [0x4d40d4]
mov dword [ebp - 0x40c], ebx
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x452a75
cmp byte [0x4d9358], 0
jne 0x452ae5
int3
push 0x400
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.0045ff61
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x400
call fcn.004aa4a5
add esp, 4
lea esi, [ebp - 0x408]
mov ebx, eax
mov ecx, 0x100
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
push 1
call fcn.004b94a2
push 1
call fcn.004b94a2
push 1
call fcn.004b94a2
int3
Function at 0x452af0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4d33b4]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4d40d4]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.004aa39f
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x4d9480]
xor dl, dl
test esi, esi
jle 0x452b88
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x452b83
mov eax, dword [esi*4 + 0x4d8db0]
test eax, eax
je 0x452b83
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x452b60
dec edi
test edi, edi
jle 0x452b91
test dl, dl
jne 0x452b50
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret

Function at 0x454b30
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4d40d4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x454b4a
call fcn.004529c0
mov ecx, eax
mov eax, dword [0x4d94d0]
mov eax, dword [ecx + eax*4]
test eax, eax
jne 0x454b96
push 0xc
call fcn.004aa0fc
mov esi, eax
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [0x4d40d4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x454b8b
call fcn.004529c0
mov ecx, dword [0x4d94d0]
mov dword [eax + ecx*4], esi
mov eax, esi
pop esi
ret
Function at 0x455ef0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [ebx + 4]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
shl ecx, 3
mov dword [ebp - 4], ecx
add ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
cmp esi, eax
je 0x455f73
mov esi, dword [ecx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x455f73
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x455f61
cmp esi, eax
jne 0x455f53
jmp 0x455f76
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
push edx
push dword [eax]
call fcn.00456010
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, dword [edi]
cmp esi, eax
je 0x455fb0
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x455fca
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x455fec
cmp eax, esi
jne 0x455fd2
mov dword [ecx], edi
jmp 0x455fec
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x455fec
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0044d910
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45c5b0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x168], 0
mov dword [ecx + 0x170], 0
mov dword [ecx + 0x174], 0
mov dword [ecx + 0x14], 0x67452301
mov dword [ecx + 0x18], 0xefcdab89
mov dword [ecx + 0x1c], 0x98badcfe
mov dword [ecx + 0x20], 0x10325476
mov dword [ecx + 0x24], 0xc3d2e1f0
ret
Function at 0x45d820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea esi, [edi + 4]
mov ecx, esi
call fcn.0042d2e0
add esp, 4
test al, al
jne 0x45d8a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x45d894
cmp eax, 0x21
je 0x45d894
cmp eax, 5
jne 0x45d86d
mov eax, 0x3e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x45d875
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x45dac0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, 0x1400
cmp ax, di
je 0x45db6f
push 9
lea eax, [ebp - 0x18]
mov ebx, edi
push eax
push 0x59
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x45db6f
mov ecx, dword [ebp - 0x1c]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041db30
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x45db27
mov eax, dword [esi]
jmp 0x45db29
mov eax, esi
xor ecx, ecx
and edi, 0xfc00
mov word [eax], cx
xor eax, eax
cmp ax, di
je 0x45db5c
push 9
lea eax, [ebp - 0x18]
push eax
push 0x5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, 1
jle 0x45db5c
dec eax
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041db30
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
Function at 0x45dfbc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
mov dword [esi + 0xc], eax
push ebx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi + 4], eax
test eax, eax
je 0x45e09e
push edi
xor edi, edi
inc edi
cmp dword [ebx], edi
jle 0x45e086
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov eax, dword [esi + 4]
push 0x4011f4
push dword [eax + edi*4]
call ebx
test eax, eax
jne 0x45e008
mov byte [esi + 0x1c], 1
jmp 0x45e07c
mov eax, dword [esi + 4]
push 0x401210
push dword [eax + edi*4]
call ebx
test eax, eax
jne 0x45e01f
mov byte [esi + 0x18], 1
jmp 0x45e07c
mov eax, dword [esi + 4]
push 0x401224
push dword [eax + edi*4]
call ebx
test eax, eax
jne 0x45e036
mov byte [esi + 0x19], 1
jmp 0x45e07c
mov eax, dword [esi + 4]
push 0x401244
push dword [eax + edi*4]
call ebx
test eax, eax
jne 0x45e04d
mov byte [esi + 0x1a], 1
jmp 0x45e07c
mov eax, dword [esi + 4]
push 0x401264
push dword [eax + edi*4]
call ebx
test eax, eax
jne 0x45e064
mov byte [esi + 0x1b], 1
jmp 0x45e07c
mov eax, dword [esi + 4]
push 0x401284
push dword [eax + edi*4]
call ebx
test eax, eax
jne 0x45e07c
mov dword [esi + 0x14], 1
inc edi
cmp edi, dword [esi + 0x10]
jl 0x45dff1
mov ecx, esi
call fcn.0045e161
cmp byte [esi + 0x1a], 0
pop edi
jne 0x45e09e
cmp byte [esi + 0x19], 0
sete al
mov byte [esi + 0x18], al
xor eax, eax
cmp dword [esi + 4], eax
pop esi
setne al
pop ebx
pop ebp
ret 4

Function at 0x45e365
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d4380]
sub esp, 0x208
push ebx
xor ebx, ebx
push esi
test eax, eax
jne 0x45e3ea
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
call fcn.0045ff61
add esp, 0xc
mov esi, ebx
xor eax, eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [esi + 0x401298]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x45e3d2
push 8
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x4d4380], eax
jmp 0x45e3d7
mov eax, dword [0x4d4380]
test eax, eax
jne 0x45e3ea
add esi, 4
cmp esi, 0xc
jb 0x45e392
mov eax, dword [0x4d438c]
jmp 0x45e421
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401368
push eax
call esi
push 0x401374
push dword [0x4d4380]
mov dword [0x4d4384], eax
call esi
push 0x401380
push dword [0x4d4380]
mov dword [0x4d4388], eax
call esi
mov dword [0x4d438c], eax
cmp dword [0x4d4384], ebx
je 0x45e438
cmp dword [0x4d4388], ebx
je 0x45e438
test eax, eax
je 0x45e438
xor ebx, ebx
inc ebx
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e76c
Capabilities:
Create directory
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
mov edi, 0x104
and dword [esi + 4], 0
push edi
push ebx
mov dword [esi], 0x6c
call fcn.004600c8
add esp, 0xc
test al, al
je 0x45e7f8
push 0x401750
push edi
push ebx
call fcn.004600a0
add esp, 0xc
test al, al
je 0x45e7f8
push edi
push ebx
call fcn.00460105
pop ecx
pop ecx
mov ecx, eax
mov eax, edi
sub eax, ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], eax
cmp eax, 0xb
jb 0x45e7f8
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], 0xc
call fcn.0045f73d
pop ecx
pop ecx
test al, al
jne 0x45e801
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], 0x75
mov dword [esi + 4], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
and dword [esi + 4], 0
mov edi, dword [ebp - 4]
mov dword [esi], 0x6d
lea ecx, [ebx + eax*2]
mov dword [ebp + 0x10], 0xa
add eax, 5
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
push 4
lea eax, [ebp - 8]
push eax
call sub.ADVAPI32.dll_SystemFunction036
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push 4
push eax
call fcn.00460045
add esp, 0x10
mov ecx, ebx
push dword [ebp - 0xc]
call fcn.0045ff44
push 0x401528
push 0x104
push ebx
call fcn.004600a0
add esp, 0xc
lea eax, [ebp - 0x18]
xor ecx, ecx
cmp dword [ebp - 0x14], ecx
cmove eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45e87d
sub dword [ebp + 0x10], 1
jne 0x45e824
jmp 0x45e897
push 0x4163b8
push 0x104
push ebx
call fcn.004600a0
and dword [esi], 0
add esp, 0xc
and dword [esi + 4], 0
cmp dword [ebp - 0x14], 0
je 0x45e8a6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
cmp dword [esi], eax
sete al
jmp 0x45e7fa