joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x7c]
test eax, eax
push esi
push edi
je 0x44c372
mov eax, dword [esp + 0x10]
push eax
call fcn.00458b60
mov esi, eax
test esi, esi
jne 0x44c342
pop edi
pop esi
pop ebp
ret 0x10
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
push edx
push 3
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebp
ret 0x10
mov edi, dword [esp + 0x1c]
lea ecx, [edi + edi + 1]
push ecx
call fcn.004423f0
mov esi, eax
add esp, 4
xor eax, eax
test edi, edi
jbe 0x44c3ae
mov ecx, dword [esp + 0x18]
nop
mov dl, byte [eax + ecx]
and dl, 0xf
add dl, 0x41
mov byte [esi + eax*2], dl
mov dl, byte [eax + ecx]
shr dl, 4
add dl, 0x41
mov byte [esi + eax*2 + 1], dl
inc eax
cmp eax, edi
jb 0x44c390
mov ecx, dword [esp + 0x10]
mov byte [esi + eax*2], 0
mov eax, dword [esp + 0x14]
push esi
push eax
push ecx
mov ecx, ebp
call fcn.0044c260
push esi
mov edi, eax
call fcn.00442430
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x44d020
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x7c]
xor ebx, ebx
test eax, eax
push edi
jle 0x44d048
mov ecx, dword [esp + 0x18]
cmp ebx, ecx
je 0x44d043
mov edx, dword [esi + 0x78]
mov edx, dword [edx + ebx*4]
cmp edx, dword [esp + 0x14]
je 0x44d04b
inc ebx
cmp ebx, eax
jl 0x44d033
or ebx, 0xffffffff
mov ebp, dword [esp + 0x1c]
cmp ebp, 1
jne 0x44d0c5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x1c]
mov edi, dword [esi + 0x78]
lea ebp, [ebx*4]
push ecx
add edi, ebp
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
movzx edx, ax
mov dword [edi], edx
mov edx, dword [esi + 0x7c]
xor eax, eax
test edx, edx
jle 0x44d0ff
cmp eax, ebx
je 0x44d08f
mov ecx, dword [esi + 0x78]
mov edi, dword [ecx + eax*4]
cmp edi, dword [ecx + ebp]
je 0x44d096
inc eax
cmp eax, edx
jl 0x44d080
jmp 0x44d0ff
test eax, eax
jle 0x44d0ff
push 1
lea edi, [esi + 0x74]
push ebx
mov ecx, edi
call fcn.0043b140
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + ebp - 4]
add eax, ebp
test ecx, ecx
jne 0x44d0ff
cmp dword [eax], 0
jne 0x44d0ff
push 1
push ebx
mov ecx, edi
call fcn.0043b140
jmp 0x44d0ff
push 1
lea edi, [esi + 0x74]
push ebx
mov ecx, edi
call fcn.0043b140
mov ecx, dword [esi + 0x78]
lea eax, [ecx + ebx*4]
mov ecx, dword [eax - 4]
test ecx, ecx
jne 0x44d0ee
cmp dword [eax], 0
jne 0x44d0ee
push 1
push ebx
mov ecx, edi
call fcn.0043b140
cmp ebp, 0xffffffff
je 0x44d0ff
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call fcn.0044cfa0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
je 0x44d162
mov ecx, esi
call fcn.00454220
mov edi, eax
mov eax, dword [esi + 0x70]
test eax, eax
je 0x44d15b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xd0]
test eax, eax
jne 0x44d15b
mov ecx, esi
call fcn.0044cf30
test eax, eax
jne 0x44d146
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
mov ecx, dword [edi + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
or dword [edi + 0xb0], 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x44d870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, dword [edi + 0x5c]
mov eax, dword [edi + 0x7c]
xor ebx, ebx
and ebp, 0xa000
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
jle 0x44d9bf
nop
mov eax, dword [edi + 0x78]
mov esi, dword [eax + ebx*4]
cmp esi, 0xffff
jbe 0x44d97b
test esi, esi
je 0x44d97b
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xb8]
test eax, eax
je 0x44d97b
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 0x1c]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea edx, [esp + 0x20]
push edx
push eax
call esi
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
call esi
mov eax, dword [edi + 0x1c]
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x400000
je 0x44d91c
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], ecx
jmp 0x44d924
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
test ebp, ebp
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
je 0x44d936
mov eax, edx
sub eax, ebx
jmp 0x44d93b
mov eax, ecx
sub eax, esi
dec eax
cmp dword [esp + 0x10], eax
jg 0x44d94b
test ebp, ebp
je 0x44d959
sub edx, ebx
mov dword [esp + 0x10], edx
test ebp, ebp
je 0x44d960
mov ecx, dword [esp + 0x38]
xor eax, eax
cmp ecx, esi
jmp 0x44d968
sub ecx, esi
dec ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
xor eax, eax
cmp ecx, ebx
mov ebx, dword [esp + 0x18]
setg al
test eax, eax
je 0x44d9af
mov ecx, ebx
mov dword [esp + 0x14], ecx
jmp 0x44d9af
mov edx, dword [esp + 0x10]
mov esi, dword [0x4786e4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
sub edx, esi
add ecx, edx
test ebp, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0
jne 0x44d9a5
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x1c]
jl 0x44d9ee
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x7c]
inc ebx
cmp ebx, eax
mov dword [esp + 0x18], ebx
jl 0x44d8a0
mov esi, dword [esp + 0x14]
push 1
push 0
inc esi
add edi, 0x74
push esi
mov ecx, edi
call fcn.0043bcf0
mov edx, dword [esp + 0x34]
push 1
push edx
mov ecx, edi
push esi
call fcn.0043bcf0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
test ebx, ebx
jne 0x44da03
mov eax, dword [esp + 0x14]
push 1
push ebx
inc eax
push eax
lea ecx, [edi + 0x74]
call fcn.0043bcf0
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
push 1
push ecx
inc esi
lea ecx, [edi + 0x74]
push esi
call fcn.0043bcf0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
Function at 0x455320
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.0043e0a0
mov edi, eax
test edi, edi
jne 0x455338
mov edi, dword [esi + 0x64]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
mov ebx, dword [esp + 0x18]
je 0x455358
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xb4]
or dword [edi + 0xb0], 0xc
jmp 0x4553af
mov edx, dword [esi + 0x1c]
mov ecx, ebx
neg ecx
sbb ecx, ecx
and ecx, 0xffffffc0
add ecx, 0x80
or ecx, 0x17
push ecx
push 0
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xb4]
test ebx, ebx
jne 0x4553a3
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc0]
test eax, eax
je 0x4553db
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x4553af
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax + 0xb8]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc0]
test eax, eax
je 0x4553e9
mov eax, dword [esi + 0x70]
test eax, eax
je 0x455491
mov eax, dword [esi + 0x68]
test eax, eax
je 0x455402
mov ecx, eax
mov eax, dword [ecx]
call dword [eax + 0xd0]
jmp 0x455409
mov eax, dword [esi + 0x68]
test eax, eax
je 0x4553a3
mov ecx, dword [eax + 0x70]
test ecx, ecx
jmp 0x4553a1
mov eax, dword [esi + 0x68]
test eax, eax
je 0x455491
mov ecx, dword [eax + 0x70]
test ecx, ecx
jne 0x4553c8
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
xor eax, eax
test ebx, ebx
setne al
cmp eax, 1
jne 0x455450
test ebx, ebx
je 0x455482
test ebp, ebp
mov dword [edi + 0x80], 0xffffffff
je 0x45543d
mov edx, dword [edi]
mov ecx, edi
push 0
mov dword [edi + 0x80], 8
call dword [edx + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [edi + 0x1c]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
test eax, eax
jne 0x455482
test ebp, ebp
mov dword [edi + 0x80], 0xffffffff
je 0x45546f
mov dword [edi + 0x80], eax
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [edi + 0x1c]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
test ebp, ebp
jne 0x455491
mov edx, dword [edi]
mov ecx, edi
push ebp
call dword [edx + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x458620
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
cmp eax, edi
jne 0x45870a
mov ecx, dword [ebp - 0x14]
push 0x104
lea eax, [ebp - 0x124]
push eax
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
cmp esi, edi
jne 0x4586d7
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call fcn.00441a60
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.00458620
mov esi, eax
cmp esi, edi
lea ecx, [ebp - 0x18]
setne bl
mov byte [ebp - 4], 0
call fcn.004419e0
test bl, bl
jne 0x4586d7
mov dword [ebp - 4], 0xffffffff
jmp 0x458662
cmp esi, 0x103
je 0x4586e7
cmp esi, 0x3f2
jne 0x4586fe
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x4586fe
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x458c50
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45e2db
push eax
mov eax, 0x100c
mov dword fs:[0], esp
call fcn.0042e150
push esi
xor esi, esi
mov dword [esp + 0xc], esi
cmp dword [ecx + 0x7c], esi
je 0x458d75
mov eax, dword [esp + 0x1024]
push edi
push eax
call fcn.00458b60
mov edi, eax
cmp edi, esi
jne 0x458cc4
mov ecx, dword [esp + 0x1030]
mov esi, dword [esp + 0x1024]
push ecx
mov ecx, esi
call fcn.00441a60
pop edi
mov ecx, dword [esp + 0x1010]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1018
ret 0x10
mov edx, dword [0x47559c]
push ebx
push ebp
mov dword [esp + 0x10], edx
mov ebx, dword [esp + 0x1034]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x20]
push ecx
push esi
push ebx
push edi
mov dword [esp + 0x103c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call ebp
mov esi, eax
test esi, esi
jne 0x458d2d
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00441d40
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
push ebx
push edi
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00441dc0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov esi, dword [esp + 0x102c]
pop ebp
pop ebx
mov ecx, esi
jne 0x458d66
lea edx, [esp + 8]
push edx
call fcn.00441e80
lea ecx, [esp + 8]
mov dword [esp + 0x101c], 0xffffffff
call fcn.004419e0
jmp 0x458ca9
mov eax, dword [esp + 0x1030]
push eax
call fcn.00441a60
jmp 0x458d4d
mov eax, dword [esp + 0x102c]
cmp eax, esi
jne 0x458d85
mov eax, 0x47803c
mov ecx, dword [ecx + 0x90]
push ecx
mov ecx, dword [esp + 0x1028]
push 0x1000
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1038]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x1020]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.00441a60
jmp 0x458caa
Function at 0x458dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45e2f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x30]
mov dword [ebx], ebp
mov dword [edi], ebp
cmp dword [ecx + 0x7c], ebp
mov eax, dword [esp + 0x24]
je 0x458e9f
push eax
call fcn.00458b60
mov edi, eax
cmp edi, ebp
je 0x458e88
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x24]
push ecx
push ebp
lea edx, [esp + 0x18]
push edx
push ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x38]
push ebp
push edi
call ebx
mov ecx, dword [esp + 0x30]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
jne 0x458e64
push eax
call fcn.004423f0
mov edx, dword [esp + 0x30]
add esp, 4
lea ecx, [esp + 0x24]
push ecx
push eax
mov dword [edx], eax
lea edx, [esp + 0x18]
push edx
push esi
push ebp
push edi
call ebx
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x458f52
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
push eax
call fcn.00442430
add esp, 4
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
mov edx, dword [esp + 0x28]
push ebp
push edx
push eax
lea edx, [esp + 0x38]
push edx
call fcn.00458c50
mov eax, dword [esp + 0x2c]
mov esi, dword [eax - 8]
cmp esi, ebp
mov dword [esp + 0x1c], ebp
jne 0x458ee7
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004419e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
mov eax, esi
cdq
sub eax, edx
sar eax, 1
push eax
mov dword [edi], eax
call fcn.004423f0
add esp, 4
xor ecx, ecx
cmp esi, ebp
mov dword [ebx], eax
jle 0x458f41
mov edx, dword [esp + 0x2c]
lea eax, [ecx + 1]
cmp eax, ebp
jl 0x458f16
cmp eax, dword [edx - 8]
jge 0x458f16
mov al, byte [eax + edx]
jmp 0x458f18
xor al, al
cmp ecx, ebp
jl 0x458f26
cmp ecx, dword [edx - 8]
jge 0x458f26
mov dl, byte [ecx + edx]
jmp 0x458f28
xor dl, dl
mov edi, dword [ebx]
dec al
shl al, 4
add al, dl
mov edx, ecx
sub al, 0x41
shr edx, 1
add ecx, 2
cmp ecx, esi
mov byte [edx + edi], al
jl 0x458f01
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004419e0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x45a580
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x10]
test ebx, ebx
jle 0x45a5c3
cmp ebx, dword [esi + 0xc]
jge 0x45a5c3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45a5c3
cmp ebx, dword [eax + 8]
jge 0x45a5c3
mov ecx, dword [eax + 0xc]
mov ebx, dword [ecx + ebx*4]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x45a700
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x45a734
jmp fcn.00439ed0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x45a7f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ea70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
mov dword [ebp - 0x10], esp
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x45a950
cmp edi, dword [esi + 0xc]
jge 0x45a950
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x45a864
mov ecx, dword [ebx + 8]
cmp edi, ecx
lea eax, [ebx + 8]
mov dword [ebp - 0x14], eax
jl 0x45a939
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x45a939
jmp 0x45a8c2
push 0x10
push 0x40
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
jne 0x45a894
call fcn.00439ed0
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
call fcn.0042f00b
mov dword [eax], 0x46bea0
lea ecx, [eax + 8]
mov dword [ecx], 0
mov dword [eax + 0xc], 0
mov edx, dword [esi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + edx], ecx
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x45a8d9
mov edx, dword [esi + 0xc]
shl edx, 2
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x45a8e9
mov ecx, dword [esi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
jne 0x45a8fe
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00439ed0
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
mov dword [ebx + 0xc], edx
mov ecx, dword [esi + 0xc]
sub ecx, edi
shl ecx, 2
lea edi, [edx + edi*4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov edx, dword [esi]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x45a94a
cmp edi, dword [eax]
jge 0x45a94a
mov eax, dword [ebp + 0xc]
mov dword [ebx + edi*4], eax
mov ecx, dword [ebp - 0x18]
push ecx
jmp 0x45a951
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45a9a0
Capabilities:
Set thread local storage value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 8]
push edi
mov edi, 1
cmp eax, edi
mov ebx, ecx
mov dword [esp + 0xc], edi
jle 0x45aa0b
push ebp
mov ebp, dword [esp + 0x1c]
nop
test ebp, ebp
je 0x45a9e0
mov eax, dword [ebx + 0x10]
cmp dword [eax + edi*8 + 4], ebp
je 0x45a9e0
mov ecx, dword [esi + 0xc]
cmp dword [ecx + edi*4], 0
je 0x45a9fa
mov dword [esp + 0x10], 0
jmp 0x45a9fa
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0x45a9f0
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi*4], 0
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x45a9c0
mov eax, dword [esp + 0x10]
test eax, eax
pop ebp
je 0x45aa6d
lea edi, [ebx + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x45aa49
cmp eax, esi
mov edx, dword [ebx + 0x18]
jne 0x45aa30
mov eax, dword [esi + edx]
mov dword [ebx + 0x14], eax
jmp 0x45aa49
mov ecx, dword [edx + eax]
cmp ecx, esi
je 0x45aa3f
mov eax, ecx
test eax, eax
jne 0x45aa30
jmp 0x45aa49
test eax, eax
je 0x45aa49
mov ecx, dword [edx + esi]
mov dword [edx + eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x40455c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004069bc
test esi, esi
jne 0x404594
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406af8
jmp 0x4045b2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044a0
mov edi, eax
test esi, esi
je 0x4045b2
cmp dword [ebx], 0
je 0x4045b2
dec esi
jmp 0x40459b
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ddc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x521050], 0
je 0x405e3d
cmp word [0x52132c], 0xd7b2
jne 0x405e05
cmp dword [0x521334], 0
jbe 0x405e05
mov eax, 0x521328
call dword [0x521344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x405e68
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x51c030], 0
jne 0x405e59
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fe8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x51c034], 0
je 0x40600e
mov edx, esi
mov eax, ebx
call dword [0x51c034]
jmp 0x40601d
mov eax, 8
call fcn.004041e8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x521051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fb0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4087c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408927
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004069bc
cmp si, word [0x51c7dc]
jb 0x40885a
cmp si, word [0x51c9dc]
ja 0x40885a
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40885a
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x51c7dc]
jae 0x408834
mov edi, ebx
dec edi
jmp 0x408855
cmp si, word [ebx*8 + 0x51c7dc]
jbe 0x408844
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408855
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x51c7e0]
call fcn.004086d0
jmp 0x40885a
cmp edi, dword [ebp - 0xc]
jae 0x40881e
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408909
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408909
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406bb4
push dword [ebp - 0x164]
push 0x408944
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406bb4
push dword [ebp - 0x168]
push 0x408954
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406bb4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406f6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40892e
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004069b4
ret