joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4721c4
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x472261
mov esi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 1
call esi
test eax, eax
jne 0x4721f0
push 0xd
call esi
test eax, eax
je 0x472261
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x472225
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x472257
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x472257
push 0xffffffffffffffff
push eax
lea eax, [ebp - 4]
push eax
call fcn.00443581
jmp 0x47223c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x472257
push 0xffffffffffffffff
push eax
lea eax, [ebp - 4]
push eax
call fcn.004435f6
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.004431cd
lea ecx, [ebp - 4]
call fcn.004431b6
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x472264
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x472269
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x472280
inc eax
jmp 0x47230c
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax + 8], edi
jne 0x47229c
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x472308
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add eax, eax
mov dword [ebp + 8], eax
add eax, 2
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4722ca
call dword [sym.imp.USER32.dll_CloseClipboard]
xor edi, edi
inc edi
jmp 0x472308
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebx]
push dword [eax + 0xc]
push esi
call fcn.0047b690
mov eax, dword [ebp + 8]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4

Function at 0x47b267
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47b2a6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47b2a6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47b2a6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47b2a6
cmp dword [ecx + 0x74], 0xe
jbe 0x47b2a6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x48562c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x508188]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x48566e
cmp byte [ebx], 0xa
jne 0x48566e
or byte [edi + eax + 0x28], 4
jmp 0x485673
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x485776
mov cl, byte [eax]
cmp cl, 0x1a
je 0x485751
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4856a2
mov eax, dword [ebp - 8]
jmp 0x4856c2
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4856de
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4856bc
add eax, 2
mov cl, 0xa
jmp 0x4856bf
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x485684
jmp 0x485776
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48574c
cmp dword [ebp - 0x10], 0
je 0x48574c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x508188]
test byte [eax + edi + 0x28], 0x48
je 0x48572b
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x48571b
mov byte [esi], 0xa
jmp 0x485775
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x508188]
mov byte [eax + edi + 0x2a], cl
jmp 0x485775
cmp byte [ebp - 1], 0xa
jne 0x485735
cmp esi, ebx
je 0x485716
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004855ce
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x485776
mov byte [esi], 0xd
jmp 0x485775
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x508188]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x485773
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x485776
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48577f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x508188]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4857c3
push 0xa
pop esi
cmp word [ebx], si
jne 0x4857c3
or byte [eax + edi + 0x28], 4
jmp 0x4857c8
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x485933
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x48590b
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x485815
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x48583f
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x48585e
push 0xa
pop ebx
cmp word [edx], bx
jne 0x48582c
push ebx
add eax, 4
pop edx
jmp 0x485834
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4857da
jmp 0x485933
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485906
cmp dword [ebp - 0x14], 0
je 0x485906
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x508188]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4858e2
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4858aa
mov word [esi], ax
jmp 0x485930
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x508188]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x508188]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x508188]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x485930
cmp word [ebp - 4], ax
jne 0x4858ec
cmp esi, ebx
je 0x4858a2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004855ce
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x485933
push 0xd
pop eax
jmp 0x4858a2
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x508188]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x48592d
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x485933
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48966f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0047aac0
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00492658
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4896b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x489828
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047ad90
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x508188]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004855b0
mov ecx, dword [esi*4 + 0x508188]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x489821
cmp eax, dword [edi + ecx + 0x24]
jne 0x489821
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x489821
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004855b0
add esp, 0x14
cmp edx, esi
jl 0x489821
jg 0x48977c
cmp eax, esi
jb 0x489821
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x489821
jl 0x48979e
cmp dword [ebp - 0x1008], eax
ja 0x489821
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x4897c3
cmp ebx, esi
je 0x489808
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x489808
mov al, byte [ecx]
cmp al, 0xd
jne 0x4897e9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4897f5
cmp byte [ecx + 1], 0xa
jne 0x4897f5
inc ecx
jmp 0x4897f5
movzx eax, al
movsx eax, byte [eax + 0x500f50]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4897cf
cmp edx, ebx
jne 0x4897cf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x489826
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0047a65d
leave
ret
Function at 0x49389a
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00493816
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x493a09
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x493a09
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4939be
jg 0x4938f6
test eax, eax
je 0x4939b4
push 1
push 0x1000
call fcn.00493b70
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x493919
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4939ab
push 0x8000
push ebx
call fcn.0048f484
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x493942
jg 0x49393d
cmp ecx, 0x1000
jb 0x493942
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004868a6
add esp, 0x10
cmp eax, 0xffffffff
je 0x493987
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x49393d
jl 0x49396e
test ecx, ecx
jne 0x49392f
push dword [ebp - 0xc]
push ebx
call fcn.0048f484
push esi
call fcn.004912a0
add esp, 0xc
xor ebx, ebx
jmp 0x493a17
cmp byte [edi + 0x24], 0
je 0x49399e
cmp dword [edi + 0x20], 5
jne 0x49399e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4939a9
mov ebx, dword [edi + 0x18]
jmp 0x4939ab
xor ebx, ebx
push esi
call fcn.004912a0
pop ecx
jmp 0x493a17
test ecx, ecx
jg 0x493980
jl 0x4939be
test eax, eax
jae 0x493980
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004855ce
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4939de
cmp byte [edi + 0x1c], 0
je 0x493980
jmp 0x493a0f
push ebx
call fcn.00492d9e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x493980
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x493a17
cmp byte [edi + 0x1c], 0
je 0x493a14
mov ebx, dword [edi + 0x18]
jmp 0x493a17
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004855ce
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494f3e
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x494f58
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x494f6f
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x494fc7
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00492d9e
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x494fc7
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x494fc7
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x494fc7
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x494fc1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x494fc3
xor bl, bl
mov al, bl
jmp 0x494fc9
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4997b1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x500ef0]
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 0x4997fc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049994a
test al, al
jne 0x4997f6
sub edx, 2
cmp edx, edi
jne 0x4997dc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49981e
lea eax, [edi + 2]
cmp edx, eax
je 0x49981e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004996fd
add esp, 0x10
jmp 0x499916
push esi
lea ecx, [ebp - 0x255]
call fcn.0049994a
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49985f
push dword [ebp - 0x25c]
jmp 0x49980e
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 0x49989c
cmp word [ebp - 0x226], 0
je 0x4998bd
cmp word [ebp - 0x226], ax
jne 0x49989c
cmp word [ebp - 0x224], 0
je 0x4998bd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004996fd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x499909
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499876
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4998f1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499916
push 0x49952d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0049db30
add esp, 0x10
jmp 0x4998e6
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.0047a65d
leave
ret

Function at 0x49c875
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00491122
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 0x49c8e4
cmp esi, dword [ebp - 4]
je 0x49c8df
cmp dword [ebp + 0xc], 0
je 0x49c8df
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x49c8bc
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049c3ca
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x49c8e6
xor eax, eax
inc eax
jmp 0x49c8e6
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x49c951
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x500ef0]
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.00491122
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.00491122
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 0x49c9c8
cmp word [ecx], dx
je 0x49c9c8
mov eax, dword [0x4cfda4]
push edi
dec eax
push eax
push 0x4cfc90
call fcn.0049c8ea
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x49ca3b
cmp word [eax], dx
je 0x49ca3b
mov eax, dword [edi]
test eax, eax
je 0x49c9ec
cmp word [eax], dx
je 0x49c9ec
lea eax, [ebp - 0x10]
push eax
call fcn.0049c2d0
jmp 0x49c9f5
lea eax, [ebp - 0x10]
push eax
call fcn.0049c36b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x49ca65
mov eax, dword [0x4cfc8c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4cf980
call fcn.0049c8ea
add esp, 0xc
test al, al
je 0x49ca65
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x49ca30
cmp word [eax], di
je 0x49ca30
lea eax, [ebp - 0x10]
push eax
call fcn.0049c2d0
pop ecx
jmp 0x49ca67
lea eax, [ebp - 0x10]
push eax
call fcn.0049c36b
jmp 0x49ca2d
mov eax, dword [edi]
test eax, eax
je 0x49ca52
cmp word [eax], dx
je 0x49ca52
lea eax, [ebp - 0x10]
push eax
call fcn.0049c285
pop ecx
jmp 0x49ca65
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 0x49cb30
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0049c76f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x49cb30
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x49cb30
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x49cb30
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49cabd
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004935f6
test ebx, ebx
je 0x49cb2b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004935f6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x49cb30
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 0x49cb30
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0048a508
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49cb32
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a65d
leave
ret
Function at 0x49e3e0
Capabilities:
Resolve dns

Disassembly:
push 0x5c
mov eax, 0x4b4d0f
call fcn.0047a6c1
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
call fcn.00434158
cmp dword [0x50850c], 0
jne 0x49e407
call fcn.0049e526
push 0
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00433adf
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x68], eax
test eax, eax
je 0x49e50e
mov ecx, dword [eax + 0xc]
xor edx, edx
mov ebx, edx
cmp dword [ecx], edx
je 0x49e50e
mov eax, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], dl
push 4
push dword [eax + ecx]
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
call fcn.0047b690
add esp, 0xc
push dword [ebp - 0x5c]
call sub.WS2_32.dll_inet_ntoa
mov esi, eax
push esi
call fcn.0047fe20
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004139b8
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00433c07
add esp, 0xc
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
je 0x49e4b3
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
push dword [edi]
call fcn.0043e175
lea ecx, [ebp - 0x58]
call fcn.00411fa2
mov eax, dword [ebp - 0x14]
xor edx, edx
mov byte [ebp - 4], dl
cmp eax, 0x10
jb 0x49e4f9
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
cmp eax, 0x1000
jb 0x49e4ee
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00411cec
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
push eax
push ecx
call fcn.00479ff8
pop ecx
pop ecx
xor edx, edx
mov ecx, dword [ebp - 0x68]
inc ebx
mov eax, ebx
shl eax, 2
mov ecx, dword [ecx + 0xc]
cmp dword [eax + ecx], edx
jne 0x49e447
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x40]
call fcn.00411f7c
xor eax, eax
test esi, esi
setne al
call fcn.0047a67f
ret

Function at 0x49e526
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x500ef0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.0047bc10
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
mov dword [0x50850c], eax
call fcn.0047a65d
leave
ret

Function at 0x49fdf2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x4a0360
Capabilities:
Parse pe header

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