joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x2c
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.004a7410
add esp, 0xc
mov dword [ebp - 0x48], 0x2c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48d91c
cmp dword [ebp - 0x30], 0x2c
jne 0x48d91c
mov esi, dword [ebp - 0x44]
push ebx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
mov eax, dword [ebp - 0x28]
sub eax, 2
je 0x48d815
sub eax, 1
jne 0x48d82b
and ebx, 0xdfffffff
or ebx, 0x1000000
jmp 0x48d821
and ebx, 0xfeffffff
or ebx, 0x20000000
push ebx
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x40]
shr ebx, 0x12
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
and bl, 1
je 0x48d85b
mov ecx, esi
sub ecx, eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x48d867
mov eax, dword [ebp - 0x40]
sub esi, eax
add esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
test bl, bl
je 0x48d879
mov eax, dword [ebp - 8]
mov ecx, edx
mov esi, dword [ebp - 0x3c]
sub eax, edi
sub ecx, esi
cmp eax, ecx
jge 0x48d883
jmp 0x48d87c
mov esi, dword [ebp - 0x3c]
sub edx, esi
add edx, edi
mov dword [ebp - 8], edx
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
call edi
push 0x4d
mov ebx, eax
call edi
push 0x4e
mov dword [ebp - 0x4c], eax
call edi
push 0x4c
mov esi, eax
call edi
push 0x4f
lea ecx, [esi + eax]
mov dword [ebp - 0x50], ecx
call edi
push 0x4d
mov esi, eax
call edi
mov ecx, dword [ebp - 8]
add eax, esi
mov esi, dword [sym.imp.USER32.dll_OffsetRect]
cmp ecx, eax
jle 0x48d8ca
sub eax, ecx
push eax
push 0
lea eax, [ebp - 0x14]
push eax
call esi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jge 0x48d8df
sub eax, ecx
push eax
push 0
lea eax, [ebp - 0x14]
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x50]
cmp ecx, eax
jle 0x48d8f4
push 0
sub eax, ecx
push eax
lea eax, [ebp - 0x14]
push eax
call esi
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jge 0x48d906
push 0
sub ebx, eax
lea eax, [ebp - 0x14]
push ebx
push eax
call esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0
push eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_SetWindowPlacement]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a4433
mov esp, ebp
pop ebp
ret
Function at 0x4968e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x51d010]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x23c], edx
push ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x234], ebx
push esi
test eax, eax
jne 0x496aa2
mov dword [ebp - 0x230], 0x4f4944
mov dword [ebp - 0x22c], 0x496b20
mov dword [ebp - 0x228], 0x4f4950
mov dword [ebp - 0x224], 0x496ea0
mov dword [ebp - 0x220], 0x4f495c
mov dword [ebp - 0x21c], 0x496ad0
cmp dword [0x51d00c], eax
jne 0x496a98
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x496a82
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004bbeb8
push 0x4f496c
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004bbf12
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4969df
push 0x4f4944
push edi
call ebx
test eax, eax
jne 0x496a34
push edi
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004bbeb8
push 0x4f4974
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004bbf12
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x496a7b
push 0x4f4944
push edi
call ebx
test eax, eax
jne 0x496a34
push edi
call esi
jmp 0x496a7b
xor esi, esi
push dword [ebp + esi*8 - 0x230]
push edi
call ebx
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x496a74
inc esi
cmp esi, 3
jl 0x496a36
mov eax, dword [ebp - 0x22c]
mov dword [0x517b80], eax
mov eax, dword [ebp - 0x224]
mov dword [0x517b88], eax
mov eax, dword [ebp - 0x21c]
mov dword [0x517b90], eax
jmp 0x496a7b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x234]
pop edi
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x23c]
mov dword [0x51d00c], 1
mov eax, dword [0x517b88]
mov dword [0x51d010], eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push ecx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4970e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c]
lea eax, [ebp - 0x407]
push edi
mov edi, dword [ebp + 8]
push 0x400
push 0
push eax
mov dword [ebp - 0x820], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x408], 0
call fcn.004a7410
push 0x400
lea eax, [ebp - 0x80b]
mov byte [ebp - 0x80c], 0
push 0
push eax
call fcn.004a7410
push 0x400
push edi
lea eax, [ebp - 0x408]
push 0x401
lea ebx, [ebp - 0x80c]
mov dword [ebp - 0x81c], eax
push eax
mov dword [ebp - 0x810], ebx
call fcn.004bbe77
add esp, 0x28
push dword [ebp - 0x820]
mov edi, esi
mov dword [esi], 0
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4972c6
cmp word [ebx + 8], 2
jne 0x4971d6
cmp word [ebx + 0xa], 4
jne 0x4971d6
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4971d6
nop word [eax + eax]
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00497310
mov dword [edi], eax
test eax, eax
je 0x4972bf
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4971b0
push 0x400
push dword [ebx]
mov ebx, dword [ebp - 0x810]
push 0x401
push ebx
call fcn.004bbe77
mov eax, dword [ebp - 0x814]
xor esi, esi
add esp, 0x10
cmp dword [eax], esi
jne 0x497274
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497202
sub ecx, edx
je case.0x4972d6.11003
mov edi, dword [ebp - 0x81c]
mov ecx, ebx
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x497237
test dl, dl
je 0x497233
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x497237
add eax, 2
add ecx, 2
test dl, dl
jne 0x497217
xor eax, eax
jmp 0x49723c
sbb eax, eax
or eax, 1
test eax, eax
je case.0x4972d6.11003
mov esi, dword [ebp - 0x818]
inc esi
mov dword [ebp - 0x818], esi
cmp esi, 0x10
je case.0x4972d6.11003
mov esi, dword [ebp - 0x814]
mov eax, edi
mov dword [ebp - 0x81c], ebx
mov ebx, eax
mov dword [ebp - 0x810], ebx
jmp 0x497172
mov esi, 0x2afb
jmp 0x4972e9
cmp dword [ebp + 0x18], esi
je 0x4972e9
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497280
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.004b2166
mov edi, eax
add esp, 8
test edi, edi
je 0x4972ad
push dword [ebp - 0x810]
push ebx
push edi
call fcn.004bbeb8
add esp, 0xc
mov ecx, dword [ebp - 0x814]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x4972e9
mov esi, 8
jmp 0x4972e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4972d6.11001
jmp dword [eax*4 + 0x497300]
mov esi, 0x2afa
jmp 0x4972e9
mov esi, 0x2af9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4433
mov esp, ebp
pop ebp
ret 0x18
Function at 0x498ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
test eax, eax
je 0x498f62
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
push 0
push 0
push 0
push edi
push eax
mov dword [ebp - 4], 0
call ebx
test eax, eax
jne 0x498f81
push dword [ebp - 4]
call fcn.004a4906
add esp, 4
mov dword [ebp + 8], eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push edi
push dword [esi]
call ebx
push dword [ebp - 4]
mov esi, dword [ebp + 8]
push esi
call fcn.0049fd60
mov edi, dword [ebp + 0xc]
add esp, 8
mov ebx, eax
mov ecx, dword [edi]
test ecx, ecx
je 0x498f4c
call fcn.0049fda0
push esi
mov dword [edi], ebx
call fcn.004a447f
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x498f81
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.004987e0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x498f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d829d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x517ba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
test eax, eax
je 0x498fea
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 4]
test eax, eax
je 0x49907e
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push dword [ebp + 8]
push eax
call fcn.004987e0
mov esi, dword [ebp - 0x10]
add esp, 0xc
test al, al
je 0x499054
test esi, esi
je 0x49903f
mov ecx, esi
call fcn.004744a0
mov ecx, esi
mov edi, eax
call fcn.0049fcc0
push edi
push eax
push dword [ebp + 0xc]
call fcn.004a7c70
add esp, 0xc
mov bl, 1
jmp 0x499056
xor edi, edi
xor eax, eax
push edi
push eax
push dword [ebp + 0xc]
call fcn.004a7c70
add esp, 0xc
mov bl, 1
jmp 0x499056
xor bl, bl
mov dword [ebp - 4], 2
test esi, esi
je 0x499068
mov ecx, esi
call fcn.0049fda0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x499980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x4999ce
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
test ecx, ecx
je 0x49999f
call fcn.004744a0
mov ebx, eax
jmp 0x4999a1
xor ebx, ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x4999ae
call fcn.0049fcc0
jmp 0x4999b0
xor eax, eax
push ebx
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
pop ebp
ret 0xc
cmp dword [esi + 4], 0
je 0x499a0e
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
test ecx, ecx
je 0x4999e6
call fcn.004744a0
mov ebx, eax
jmp 0x4999e8
xor ebx, ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x4999f5
call fcn.0049fcc0
jmp 0x4999f7
xor eax, eax
push ebx
push eax
push dword [ebp + 8]
push dword [esi + 4]
call fcn.004988f0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x499a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
test ecx, ecx
je 0x499a47
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x499a62
push 4
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.004988f0
add esp, 0x10
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x49c270
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov edi, dword [esi + 0x3c8]
neg eax
cdq
mov ebx, eax
mov eax, edx
and eax, dword [esi + 0x25c]
and ebx, dword [esi + 0x258]
mov dword [ebp - 4], eax
cmp dword [esi + 0x3cc], eax
jb 0x49c2d7
ja 0x49c2b2
cmp edi, ebx
jb 0x49c2d7
sub edi, ebx
push edi
push ebx
push eax
push 4
push dword [esi + 0x3c4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 0x558], ecx
test ecx, ecx
jne 0x49c2e0
mov dword [esi + 0x55c], eax
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x258]
mov eax, edx
sub eax, ebx
add eax, ecx
mov ecx, edx
mov dword [ebp - 8], eax
sub ecx, ebx
mov dword [esi + 0x55c], eax
mov eax, dword [esi + 0x25c]
sbb eax, dword [ebp - 4]
mov dword [ebp - 4], 0
cmp dword [ebp - 4], eax
jb 0x49c2d7
ja 0x49c314
cmp edi, ecx
jb 0x49c2d7
sub ebx, edx
lea ecx, [esi + 0x4f0]
add edi, ebx
push edi
push dword [ebp - 8]
call fcn.0047f350
mov ecx, dword [esi + 0x260]
mov edx, ecx
mov ebx, dword [esi + 0x258]
sub edx, ebx
mov eax, dword [esi + 0x264]
sbb eax, dword [esi + 0x25c]
mov dword [ebp - 4], 0
cmp dword [ebp - 4], eax
jb 0x49c2d7
ja 0x49c355
cmp edi, edx
jb 0x49c2d7
mov eax, ebx
sub eax, ecx
sub ecx, ebx
add ecx, dword [esi + 0x55c]
add eax, edi
push eax
push ecx
lea ecx, [esi + 0x4b8]
call fcn.00421cc0
mov ecx, dword [esi + 0x268]
mov edx, ecx
mov ebx, dword [esi + 0x258]
sub edx, ebx
mov eax, dword [esi + 0x26c]
sbb eax, dword [esi + 0x25c]
cmp dword [ebp - 4], eax
jb 0x49c2d7
ja 0x49c39f
cmp edi, edx
jb 0x49c2d7
sub ecx, ebx
add ecx, dword [esi + 0x55c]
push ecx
lea ecx, [esi + 0x524]
call fcn.00452d00
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1b60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8cc7
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4a1d29
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
push 0x7f89
push 0
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0xb4], 0x30
mov dword [ebp - 0xb0], 3
mov dword [ebp - 0xac], 0x4a1880
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp - 0x94], 0x10
mov dword [ebp - 0x8c], 0x4f6904
mov dword [ebp - 0x90], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
push 0x31
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x7c]
mov dword [esi + 4], eax
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x67], 1
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov byte [esi], 0
test edi, edi
je 0x4a1c5d
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4a1c5d
cmp dword [ecx], edi
je 0x4a1cbe
lea ecx, [esi + 0x10]
call fcn.00403090
push 0xc
call fcn.004a4441
mov esi, eax
add esp, 4
mov dword [ebp - 0x84], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4a1ca7
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x4a1ca9
test edi, edi
jne 0x4a1d47
jmp 0x4a1ca9
xor esi, esi
mov eax, dword [ebp - 0x80]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 0x10], esi
test esi, esi
je 0x4a1d51
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.USER32.dll_GetParent]
lea eax, [ebp - 0x20]
push 2
push eax
push ebx
call edi
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
mov esi, eax
call edi
push dword [ebp - 0x80]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push esi
push 0
push eax
mov eax, dword [ebp - 0x14]
sub eax, edx
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push 0x50000000
push 0x4e1a9c
push 0x4f6904
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4433
mov esp, ebp
pop ebp
ret 8
push 0x8007000e
call fcn.004a5e60
push 0x8007000e
call fcn.004a5e60
int3
Function at 0x4a1d60
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x517ba0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x51d520
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x51d4b0], esi
je 0x4a1dda
cmp dword [0x51d4bc], esi
je 0x4a1dda
push 0x12237
call dword [0x51d4c4]
mov eax, dword [0x51d4b0]
push esi
push esi
push edi
call eax
cmp dword [0x51d508], 0
mov esi, eax
je 0x4a1dda
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x4f6c50
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x804]
push eax
push edi
call dword [0x51d508]
push 0x51d520
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.004a4433
mov esp, ebp
pop ebp
ret
Function at 0x4a3dd0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4a3e57
push esi
push edi
call fcn.004b1722
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a3e4d
push 0x4f7110
push esi
call fcn.004a3f30
mov ecx, dword [ebp + 0x14]
add esp, 8
push eax
call fcn.0049f6f0
push 0x4e401c
push esi
call fcn.004a3f30
mov ecx, dword [ebp + 0x10]
add esp, 8
push eax
call fcn.0049f6f0
push 0x4e21dc
push esi
call fcn.004a3f30
mov ecx, dword [ebp + 0xc]
add esp, 8
push eax
call fcn.0049f6f0
mov bl, 1
push esi
call fcn.004b1707
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a56c4
Capabilities:
Parse pe header

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

Function at 0x4c17bf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4fb914
push 0x4fb90c
push 0x4f8c08
push 0x1f
call fcn.004c1666
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c17f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4da8ac]
call esi
jmp 0x4c17f9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4c183d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4fb924
push 0x4fb91c
push 0x4f8c2c
push 0x21
call fcn.004c1666
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c1874
push dword [ebp + 8]
mov ecx, esi
call dword [0x4da8ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4c187c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4fb92c
push 0x4fb924
push 0x4f8c40
push 0x22
call fcn.004c1666
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4c18b6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4da8ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4c4538
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x517ba0]
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 0x4c4583
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004c46d3
test al, al
jne 0x4c457d
sub edx, 2
cmp edx, edi
jne 0x4c4563
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4c45a5
lea eax, [edi + 2]
cmp edx, eax
je 0x4c45a5
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004c4484
add esp, 0x10
jmp 0x4c469f
push esi
lea ecx, [ebp - 0x255]
call fcn.004c46d3
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 0x4c45e8
push dword [ebp - 0x25c]
jmp 0x4c4595
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 0x4c4625
cmp word [ebp - 0x226], 0
je 0x4c4646
cmp word [ebp - 0x226], ax
jne 0x4c4625
cmp word [ebp - 0x224], 0
je 0x4c4646
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004c4484
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4c4692
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4c45ff
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4c467a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4c469f
push 0x4c42b4
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004cd4b0
add esp, 0x10
jmp 0x4c466f
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.004a4433
leave
ret

Function at 0x4c7923
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004bfc56
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 0x4c7992
cmp esi, dword [ebp - 4]
je 0x4c798d
cmp dword [ebp + 0xc], 0
je 0x4c798d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c796a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004c7475
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4c7994
xor eax, eax
inc eax
jmp 0x4c7994
xor eax, eax
pop edi
pop esi
leave
ret