joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf984
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cf9bc
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cd9d4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cd9ac
jmp 0x4cf9c8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d1075
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d10b7
call fcn.004d6dfd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d10b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d10ae
xor eax, eax
jmp 0x4d10bf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d10c5
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d732d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d735b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d7379
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d7293
jmp 0x4d7379
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d7379
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d7293
test edi, edi
mov eax, edi
jne 0x4d7363
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b74
test esi, esi
je 0x401b74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b50
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d60
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e88
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401dee
cmp eax, 4
jne 0x401e10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401dfe
cmp edx, 4
je 0x401dfe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d60
Function at 0x404620
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 8]
push eax
push str.SoftwareMicrosoft
push 0x80000001
call dword [0x41400c]
test eax, eax
jne 0x4046ce
mov edx, dword [esp + 8]
push esi
push edi
mov edi, dword [0x414010]
lea ecx, [esp + 0xc]
push ecx
push str.DateTime
push edx
call edi
test eax, eax
mov esi, dword [0x414014]
jne 0x4046c5
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push eax
push str.Calendars
push ecx
call edi
test eax, eax
jne 0x4046be
mov edx, dword [esp + 0x1c]
push 0x2d9
push edx
call dword [0x4142a0]
push 0
push 0
push 0x147
push eax
call dword [0x414320]
mov ecx, dword [esp + 8]
push 4
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.CalIndex
push ecx
call dword [0x414018]
mov edx, dword [esp + 8]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
mov eax, 1
add esp, 0x10
ret

Function at 0x4048f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x28
mov eax, dword [0x418cbc]
push ebx
mov ebx, dword [0x414008]
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esi + 0x104]
push ecx
push 0
push 0
push str.Display
mov ebp, 0x100
push edi
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
jne 0x4049aa
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ebp
lea ebp, [esi + 0x204]
push ebp
push eax
push eax
push 0x418a68
push edi
call ebx
test eax, eax
je 0x404962
mov eax, dword [esp + 0x44]
push 0x100
push eax
push ebp
call dword [0x4141cc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esi + 0x304]
push edx
push 0
push 0
push 0x418a70
push edi
mov dword [esp + 0x28], 0x100
call ebx
test eax, eax
jne 0x4049aa
lea eax, [esp + 0x10]
push eax
lea ebp, [esi + 0x418]
push ebp
push 0
push 0
push 0x418a78
push edi
mov dword [esp + 0x28], 0x2c
call ebx
test eax, eax
je 0x4049bd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
call fcn.0040c9bf
add esp, 0x28
ret
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push str.MapID
push edi
mov dword [esp + 0x28], 0x20
call ebx
test eax, eax
je 0x4049e6
mov word [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00404810
mov ecx, dword [ebp]
imul ecx, ecx, 0x164
mov eax, 0xb60b60b7
imul ecx
add edx, ecx
sar edx, 0xa
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add esp, 8
mov edx, 0x78
sub edx, ecx
mov ecx, dword [esp + 0x34]
pop edi
mov dword [esi + 0x410], edx
mov dword [esi + 0x414], 0x50
pop esi
pop ebp
mov eax, 1
pop ebx
call fcn.0040c9bf
add esp, 0x28
ret
Function at 0x404b10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push edi
lea eax, [esp + 0xc]
push eax
push str.SystemCurrentControlSetControlTimeZoneInformation
push 0x80000002
mov edi, 1
call dword [0x41400c]
test eax, eax
jne 0x404b92
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push 0
push str.DisableAutoDaylightTimeSet
push ecx
mov dword [esp + 0x1c], 4
call dword [0x414008]
test eax, eax
jne 0x404b87
mov eax, dword [esp + 0x10]
cmp eax, 4
je 0x404b71
cmp eax, 3
jne 0x404b87
cmp dword [esp + 4], 4
jne 0x404b87
mov eax, dword [esp + 8]
test eax, eax
je 0x404b87
cmp eax, 0xffffffff
je 0x404b87
xor edi, edi
mov edx, dword [esp + 0xc]
push edx
call dword [0x414014]
mov eax, edi
pop edi
add esp, 0x10
ret

Function at 0x404ba0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
push esi
mov esi, 1
mov dword [esp + 4], 0
je 0x404be2
lea eax, [esp + 4]
push eax
push str.SystemCurrentControlSetControlTimeZoneInformation
push 0x80000002
call dword [0x41400c]
test eax, eax
jne 0x404c1c
mov ecx, dword [esp + 4]
push str.DisableAutoDaylightTimeSet
push ecx
call dword [0x414004]
jmp 0x404c1e
lea edx, [esp + 4]
push edx
push str.SystemCurrentControlSetControlTimeZoneInformation
push 0x80000002
call dword [0x414010]
test eax, eax
jne 0x404c1c
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.DisableAutoDaylightTimeSet
push ecx
mov dword [esp + 0x24], esi
call dword [0x414018]
jmp 0x404c1e
xor esi, esi
mov eax, dword [esp + 4]
test eax, eax
je 0x404c2d
push eax
call dword [0x414014]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x404e30
Capabilities:
Hide graphical window

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push eax
call dword [0x41431c]
mov ebx, eax
test ebx, ebx
jne 0x404e46
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [0x4142a0]
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x18]
push 0
push esi
push 0x150
push ecx
call dword [0x414320]
mov edi, eax
test edi, edi
je 0x404e91
xor esi, esi
mov eax, dword [edi + esi*4]
test eax, eax
je 0x404e87
mov ecx, dword [edi + esi*4 + 0x10]
test ecx, ecx
jne 0x404e87
push eax
push ebx
call ebp
mov dword [edi + esi*4 + 0x10], eax
inc esi
cmp esi, 2
jl 0x404e70
mov esi, dword [esp + 0x10]
inc esi
cmp esi, 2
mov dword [esp + 0x10], esi
jl 0x404e55
mov edx, dword [esp + 0x18]
push 0
push 0
push 0x147
push edx
call dword [0x414320]
mov ebp, dword [0x4142e0]
mov dword [esp + 0x10], eax
xor ebx, ebx
jmp 0x404ec0
mov eax, dword [esp + 0x18]
push 0
push ebx
push 0x150
push eax
call dword [0x414320]
mov edi, eax
test edi, edi
je 0x404f0a
xor esi, esi
jmp 0x404ee0
mov eax, dword [edi + esi*4]
test eax, eax
je 0x404f04
cmp ebx, dword [esp + 0x10]
je 0x404f04
mov ecx, dword [edi + esi*4 + 0x10]
push eax
push 0xfffffffffffffff4
push ecx
call ebp
mov edx, dword [edi + esi*4 + 0x10]
push 0
push edx
call dword [0x414280]
inc esi
cmp esi, 2
jl 0x404ee0
inc ebx
cmp ebx, 2
jl 0x404ec0
xor edi, edi
mov eax, dword [esp + 0x18]
push 0
push edi
push 0x150
push eax
call dword [0x414320]
test eax, eax
je 0x404f5a
lea esi, [eax + 0x10]
mov ebx, 2
mov eax, dword [esi - 0x10]
test eax, eax
je 0x404f54
cmp edi, dword [esp + 0x10]
jne 0x404f54
mov ecx, dword [esi - 8]
mov edx, dword [esi]
push ecx
push 0xfffffffffffffff4
push edx
call ebp
mov eax, dword [esi]
push 5
push eax
call dword [0x414280]
add esi, 4
dec ebx
jne 0x404f31
inc edi
cmp edi, 2
jl 0x404f12
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x405010
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x418cbc]
push esi
mov dword [esp + 0x210], eax
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
xor esi, esi
call dword [0x41400c]
test eax, eax
jne 0x4050a8
mov eax, dword [esp + 0x218]
test eax, eax
je 0x405084
push 0x104
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [0x414184]
lea edx, [esp + 8]
push edx
call dword [0x4141d0]
mov edx, dword [esp + 4]
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
push str.MSCalsClocks
push edx
call dword [0x414018]
jmp 0x405094
mov eax, dword [esp + 4]
push str.MSCalsClocks
push eax
call dword [0x414004]
test eax, eax
jne 0x40509d
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [0x414014]
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
call fcn.0040c9bf
add esp, 0x210
ret
Function at 0x4050c0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x41c
mov eax, dword [0x418cbc]
push esi
mov dword [esp + 0x41c], eax
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
xor esi, esi
call dword [0x41400c]
test eax, eax
jne 0x405151
push 0x104
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x14], 0x208
call dword [0x414184]
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x218]
push eax
push esi
push esi
push str.MSCalsClocks
push ecx
call dword [0x414008]
test eax, eax
jne 0x405146
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x218]
push eax
call dword [0x41418c]
test eax, eax
jne 0x405146
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [0x414014]
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop esi
call fcn.0040c9bf
add esp, 0x41c
ret

Function at 0x4055c0
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 0xc
mov eax, dword [0x418cbc]
push esi
mov esi, dword [0x41400c]
mov dword [esp + 0xc], eax
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call esi
test eax, eax
jne 0x405603
mov ecx, dword [esp + 4]
push str.MSCalsClocks
push ecx
call dword [0x414004]
mov edx, dword [esp + 4]
push edx
call dword [0x414014]
lea eax, [esp + 8]
push eax
push str.SoftwareMicrosoft
push 0x80000001
call esi
test eax, eax
pop esi
jne 0x405629
mov ecx, dword [esp + 4]
push str.DateTime
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [esp + 8]
mov eax, 1
call fcn.0040c9bf
add esp, 0xc
ret

Function at 0x405730
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x338
mov eax, dword [0x418cbc]
push esi
push edi
mov dword [esp + 0x33c], eax
mov eax, dword [ebp + 8]
push 0x2cc
push eax
call dword [0x4142a0]
mov esi, eax
xor eax, eax
mov ecx, 0x2a
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x419348]
test eax, eax
je 0x405794
push 0
push esi
call dword [0x414280]
mov ecx, dword [esp + 0x33c]
call fcn.0040c9bf
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
call dword [0x4141ac]
cmp eax, 1
lea eax, [esp + 0xc]
je 0x4057ac
lea eax, [esp + 0x60]
push eax
push 0x80
lea edx, [esp + 0xc0]
push edx
call fcn.00401f70
cmp word [esp + 0xb8], 0
je 0x405820
push str.___First_Boot___
lea eax, [esp + 0xbc]
push eax
call dword [0x414188]
test eax, eax
je 0x405820
cmp word [0x419368], 0
jne 0x4057fc
push 0x80
push 0x419368
push esi
call dword [0x41426c]
lea ecx, [esp + 0xb8]
push ecx
push 0x419368
lea edx, [esp + 0x1c0]
push 0xc0
push edx
call fcn.00405700
add esp, 0x10
jmp 0x40582a
mov word [esp + 0x1b8], 0
lea eax, [esp + 0x1b8]
push eax
push esi
call dword [0x414270]
mov ecx, dword [esp + 0x33c]
call fcn.0040c9bf
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405c50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x418cbc]
push ebx
push edi
mov dword [esp + 0x1b0], eax
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoft
push 0x80000001
call dword [0x41400c]
test eax, eax
mov edi, dword [esp + 0x1b8]
mov ebx, dword [0x4142a0]
jne 0x405d9f
mov edx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [0x414010]
lea ecx, [esp + 0x10]
push ecx
push str.DateTime
push edx
call esi
test eax, eax
mov ebp, dword [0x414014]
jne 0x405d96
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push str.Calendars
push ecx
call esi
test eax, eax
jne 0x405d8f
push 0x2d9
push edi
mov dword [esp + 0x2c], 4
call ebx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.CalIndex
push ecx
call dword [0x414008]
test eax, eax
jne 0x405d27
mov edx, dword [esp + 0x14]
push eax
push edx
push 0x14e
push esi
call dword [0x414320]
mov eax, dword [esp + 0x1c4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x127c], ecx
jmp 0x405d88
mov eax, dword [0x41946c]
push 0xc8
lea edx, [esp + 0x2c]
push edx
push 0x850
push eax
mov word [esp + 0x38], 0
call dword [0x4142b0]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push 0x414690
push edx
call fcn.0040cdb8
add esp, 0xc
test eax, eax
jle 0x405d88
mov eax, dword [esp + 0x20]
push 0
push eax
push 0x14e
push esi
call dword [0x414320]
mov ecx, dword [esp + 0x1c4]
mov edx, dword [esp + 0x20]
mov dword [ecx + 0x127c], edx
mov eax, dword [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov edx, dword [esp + 0x18]
push edx
call ebp
pop esi
pop ebp
push 0x2d9
push edi
call ebx
push eax
call fcn.00404e30
mov ecx, dword [esp + 0x1b4]
add esp, 4
pop edi
mov eax, 1
pop ebx
call fcn.0040c9bf
add esp, 0x1ac
ret
Function at 0x405dd0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
mov eax, dword [0x418cbc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x114], eax
lea eax, [esp + 0xc]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionTime_Zones
xor ebx, ebx
push 0x80000002
mov dword [esp + 0x18], ebx
or esi, 0xffffffff
mov dword [edi], ebx
call dword [0x41400c]
test eax, eax
jne 0x405f40
mov edx, dword [esp + 0xc]
push ebp
push 0x80
lea ecx, [esp + 0x1c]
push ecx
xor ebp, ebp
push ebp
push edx
xor esi, esi
call dword [section..rdata]
test eax, eax
jne 0x405f1c
jmp 0x405e40
test esi, esi
mov dword [esp + 0x14], 0
jne 0x405e63
push 0x444
push 0x40
call dword [0x4141b8]
mov esi, eax
test esi, esi
je 0x405efc
lea eax, [esp + 0x18]
push eax
push 0x80
lea ecx, [esi + 4]
push ecx
mov dword [esi], 0
call fcn.00401f70
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [0x41400c]
test eax, eax
jne 0x405edb
push 0x80
lea edx, [esp + 0x1c]
push edx
lea eax, [esi + 0x204]
push eax
call dword [0x4141cc]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.004048f0
add esp, 0xc
test eax, eax
je 0x405ed0
push esi
push edi
call fcn.00404a40
add esp, 8
xor esi, esi
inc ebp
mov eax, dword [esp + 0x14]
push eax
call dword [0x414014]
mov edx, dword [esp + 0x10]
push 0x80
lea ecx, [esp + 0x1c]
push ecx
inc ebx
push ebx
push edx
call dword [section..rdata]
test eax, eax
je 0x405e40
jmp 0x405f07
mov esi, dword [edi]
mov dword [edi], 0
or ebp, 0xffffffff
test esi, esi
je 0x405f1c
mov ebx, dword [0x4141bc]
mov edi, dword [esi]
push esi
call ebx
test edi, edi
mov esi, edi
jne 0x405f11
mov eax, dword [esp + 0x10]
push eax
call dword [0x414014]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x108]
call fcn.0040c9bf
add esp, 0x10c
ret
mov ecx, dword [esp + 0x114]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0040c9bf
add esp, 0x10c
ret
Function at 0x406200
Capabilities:
Get geographical location
Set registry value

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x418cbc]
mov dword [esp + 0x1a8], eax
lea eax, [esp + 0x10]
push eax
push str.SoftwareMicrosoft
push 0x80000001
call dword [0x41400c]
test eax, eax
jne 0x406394
mov edx, dword [esp + 0x10]
push esi
mov esi, dword [0x414010]
lea ecx, [esp + 0x10]
push ecx
push str.DateTime
push edx
call esi
test eax, eax
jne 0x406388
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push str.TimeZones
push ecx
call esi
test eax, eax
jne 0x40637d
mov esi, dword [esp + 0x1b8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x1240]
push ebx
mov ebx, dword [0x414018]
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.BalloonTZ
push ecx
mov dword [esp + 0x24], edx
call ebx
mov ecx, dword [0x41935c]
xor eax, eax
test ecx, ecx
jle 0x406371
push ebp
mov ebp, dword [0x4141d0]
push edi
add esi, 0x100
lea edi, [eax + 1]
push edi
push str.TimeZone_d
lea edx, [esp + 0x30]
push 0xc8
push edx
mov dword [esp + 0x34], edi
call fcn.00405700
mov edx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [0x414010]
test eax, eax
jne 0x406359
lea edi, [esi - 0x100]
push edi
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push str.TimeZone
push ecx
call ebx
push esi
call ebp
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
push edx
push esi
push 1
push 0
push str.CityName
push eax
call ebx
mov edi, dword [esi + 0x20]
mov eax, dword [esp + 0x10]
push 4
xor ecx, ecx
lea edx, [esp + 0x18]
push edx
test edi, edi
push 4
setne cl
push 0
push str.Daylight
push eax
mov dword [esp + 0x2c], ecx
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x414014]
mov edi, dword [esp + 0x24]
mov ecx, dword [0x41935c]
mov eax, edi
add esi, 0x124
cmp eax, ecx
jl 0x4062b5
pop edi
pop ebp
mov edx, dword [esp + 0x10]
push edx
call dword [0x414014]
pop ebx
mov eax, dword [esp + 0x10]
push eax
call dword [0x414014]
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x414014]
pop esi
mov ecx, dword [esp + 0x1a8]
mov eax, 1
call fcn.0040c9bf
add esp, 0x1ac
ret
Function at 0x41001a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x410048
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41004f
cmp ebx, dword [eax + 4]
jae 0x41004f
xor eax, eax
jmp 0x41023f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x410060
xor eax, eax
inc eax
jmp 0x41023e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x410076
cmp ecx, edx
jae 0x4101bb
cmp dword [eax + 4], 0
je 0x41007f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x410067
cmp dword [ebp + 8], 0
je 0x4100a1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4101bb
cmp eax, esi
jae 0x4101bb
mov eax, dword [0x419728]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4100c6
cmp dword [esi*4 + 0x419730], edi
je 0x4101bf
inc esi
cmp esi, eax
jl 0x4100b4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x4140f0]
test eax, eax
je 0x41023b
cmp dword [ebp - 8], 0x1000000
jne 0x41023b
test byte [ebp - 0xc], 0xcc
je 0x410144
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41023b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41023b
cmp word [eax + 0x18], 0x10b
jne 0x41023b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41023b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x410144
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x410144
test byte [ecx + 0x27], 0x80
jne 0x4101bb
push 1
push 0x419770
call dword [0x4140f4]
test eax, eax
jne 0x410058
mov ecx, dword [0x419728]
test ecx, ecx
mov edx, ecx
jle 0x410178
lea eax, [ecx*4 + 0x41972c]
cmp dword [eax], edi
je 0x410178
dec edx
sub eax, 4
test edx, edx
jg 0x41016c
test edx, edx
jne 0x4101a9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x410185
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41019d
lea eax, [edx*4 + 0x419730]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41018b
cmp ecx, 0x10
jge 0x4101a9
inc ecx
mov dword [0x419728], ecx
push 0
push 0x419770
call dword [0x4140f4]
jmp 0x410058
xor eax, eax
jmp 0x41023e
test esi, esi
jle 0x410058
mov ebx, dword [0x4140f4]
push 1
push 0x419770
call ebx
test eax, eax
jne 0x410058
cmp dword [esi*4 + 0x419730], edi
je 0x410215
mov eax, dword [0x419728]
lea esi, [eax - 1]
test esi, esi
jl 0x410203
cmp dword [esi*4 + 0x419730], edi
je 0x4101ff
dec esi
jns 0x4101f3
test esi, esi
jge 0x410213
cmp eax, 0x10
jge 0x41020e
inc eax
mov dword [0x419728], eax
lea esi, [eax - 1]
jmp 0x410215
je 0x41022d
xor ecx, ecx
test esi, esi
jl 0x41022d
lea eax, [ecx*4 + 0x419730]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41021b
push 0
push 0x419770
call ebx
jmp 0x410058
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret