joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6810
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x502837
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004ec3d7
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004ec3d7
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004b7330
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4b7380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x502910
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004f7f41
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4b73b3
xor al, al
jmp 0x4b74df
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4b73d5
xor al, al
jmp 0x4b74df
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4b73e8
xor al, al
jmp 0x4b74df
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4b73fc
xor al, al
jmp 0x4b74df
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004ec487
test eax, eax
jne 0x4b7430
xor al, al
jmp 0x4b74df
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x52986c
mov dword [esp + 0x20], ebp
call fcn.004f7f41
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004f4b93
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004f4bea
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4b74c4
mov ax, word [ebx]
test ax, ax
je 0x4b74b6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004b7500
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4b749a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004f4bea
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4b9630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
cmp di, 0x76d
jb 0x4b9785
cmp di, 0x801
ja 0x4b9785
mov ebx, dword [esp + 0x28]
cmp bx, 1
jb 0x4b9785
cmp bx, 0xc
ja 0x4b9785
mov al, byte [esp + 0x30]
test al, al
je 0x4b9684
push edi
call fcn.004b9bc0
add esp, 4
cmp ax, bx
je 0x4b9684
mov byte [esp + 0x30], 0
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x14]
mov word [esi], di
mov edi, dword [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
mov word [edi], bx
mov ebx, dword [esp + 0x30]
push ecx
lea eax, [esp + 0x24]
mov word [ebp], bx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ebx
push ecx
push edx
call fcn.004b9790
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
call fcn.004b95b0
add esp, 0x34
mov ebx, eax
xor eax, eax
inc eax
cmp eax, 0x64
mov dword [esp + 0x34], eax
jg 0x4b9785
test ebx, ebx
jne 0x4b9719
mov al, byte [esp + 0x13]
mov cl, byte [esp + 0x30]
cmp al, cl
je 0x4b977b
test al, al
je 0x4b970c
push 0xffffffffffffffe1
jmp 0x4b970e
push 0x1f
push ebp
push edi
push esi
call fcn.004b9560
add esp, 0x10
neg ebx
push ebx
push ebp
push edi
push esi
call fcn.004b9560
lea edx, [esp + 0x23]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x2c]
push eax
mov ax, word [ebp]
lea edx, [esp + 0x34]
push ecx
mov cx, word [edi]
push edx
mov dx, word [esi]
push eax
push ecx
push edx
call fcn.004b9790
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.004b95b0
mov ebx, eax
mov eax, dword [esp + 0x78]
add esp, 0x44
jmp 0x4b96e6
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
Function at 0x4bae10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x502c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push 0x5d6c4c
lea ecx, [esp + 4]
call fcn.004edb30
push 0x554a80
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0
call fcn.004edb30
push 0x554a7c
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.004edb30
push 0x554a78
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 2
call fcn.004edb30
push 0x554a74
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 3
call fcn.004edb30
push 0x554a70
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.004edb30
push 0x554a6c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 5
call fcn.004edb30
push 0x554a68
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 6
call fcn.004edb30
push 0x554a64
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], 7
call fcn.004edb30
push 0x554a60
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 8
call fcn.004edb30
push 0x554a5c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 9
call fcn.004edb30
push 0x554a58
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 0xa
call fcn.004edb30
push 0x554a54
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 0xb
call fcn.004edb30
mov eax, dword [esp + 0x44]
mov byte [esp + 0x3c], 0xc
cmp eax, 1
jge 0x4baf40
cmp eax, 0xc
jle 0x4baf40
mov ecx, dword [esp + 0x48]
push 0x5d6c4c
call fcn.004edbff
jmp 0x4baf4e
mov ecx, dword [esp + 0x48]
lea eax, [esp + eax*4]
push eax
call fcn.004edbaf
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 0xb
call fcn.004edac2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 0xa
call fcn.004edac2
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 9
call fcn.004edac2
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 8
call fcn.004edac2
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 7
call fcn.004edac2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 6
call fcn.004edac2
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 5
call fcn.004edac2
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 4
call fcn.004edac2
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.004edac2
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 2
call fcn.004edac2
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 1
call fcn.004edac2
lea ecx, [esp + 4]
mov byte [esp + 0x3c], 0
call fcn.004edac2
lea ecx, [esp]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004edac2
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x4c5e80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5fc670]
xor edx, edx
cmp eax, edx
jne 0x4c5ea6
xor eax, eax
mov byte [eax + 0x5fc570], al
inc eax
cmp eax, 0x100
jl 0x4c5e8e
mov dword [0x5fc670], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5fc570
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c5f37
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4c5f0a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4c5ed8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c5f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4c5f93
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4c5f7a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4cc950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5031ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004cd270
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x52b7f4
call fcn.004ed803
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4cc9e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ed803
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4cc9dc
push 0
mov ecx, eax
call fcn.004c3ac0
mov dword [esi + 0xc], eax
jmp 0x4cc9e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4cc9e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4eff36
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4eff6e
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.004edf1d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004edef5
jmp 0x4eff7a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4f187f
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 0x4f18c1
call fcn.004f7f41
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f18c1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f18b8
xor eax, eax
jmp 0x4f18c9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f18cf
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f8471
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 0x4f849f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f84bd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f83d7
jmp 0x4f84bd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f84bd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f83d7
test edi, edi
mov eax, edi
jne 0x4f84a7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4fad16
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4fad3e
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4fad4f
push 2
call edi
test ax, ax
jge 0x4fad4f
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004ef56c
cmp dword [esi + 0x30], ebx
jne 0x4fae29
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004ef56c
cmp eax, dword [esp + 0x34]
jne 0x4fae29
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4fadc5
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4fae0a
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4fae29
cmp eax, 0x205
je 0x4fae29
cmp eax, 0x201
je 0x4fae29
cmp eax, 0x204
je 0x4fae29
cmp eax, ebx
jne 0x4fadf0
cmp dword [esp + 0x1c], 0x1b
je 0x4fae29
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x60e174]
jbe 0x4fae1f
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4fad82
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x43c500
Capabilities:
Parse pe header

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

Function at 0x43d7d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x43d7fa
jl 0x43d7f1
test edi, edi
jne 0x43d7fa
xor eax, eax
xor edx, edx
jmp 0x43d8bb
cmp dword [ebx + 0x38], 0
je 0x43d80f
push eax
push edi
push dword [ebp + 8]
call fcn.0043d8c1
jmp 0x43d8bb
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x43d856
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x43d856
cmp eax, edi
jb 0x43d830
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0043e820
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x43d85c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x43d8b0
mov ecx, ebx
call fcn.0043d033
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x43d89b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.004478e0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x43d8b0
jmp 0x43d86e
test edx, edx
je 0x43d8b0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004478e0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x44aae5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aa2e8
push 0x4aa2e0
push str.FlsAlloc
push 0x1f
call fcn.0044a950
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44ab19
push dword [ebp + 8]
mov ecx, esi
call dword [0x45a164]
call esi
jmp 0x44ab1f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44ab63
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aa2f8
push 0x4aa2f0
push str.FlsGetValue
push 0x21
call fcn.0044a950
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44ab9a
push dword [ebp + 8]
mov ecx, esi
call dword [0x45a164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44aba2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4aa300
push 0x4aa2f8
push str.FlsSetValue
push 0x22
call fcn.0044a950
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44abdc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45a164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x44e2ed
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x44e38a
push ebx
push esi
call fcn.0044e2b6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044e24a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x44e337
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e389
push edi
push eax
call fcn.0044bdee
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44e357
call fcn.0044bdb4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44e388
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044e24a
add esp, 0x20
test eax, eax
jne 0x44e376
push edi
call fcn.0044bdb4
jmp 0x44e37e
push ebx
call fcn.0044bdb4
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x450fde
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0044a3c0
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 0x45104d
cmp esi, dword [ebp - 4]
je 0x451048
cmp dword [ebp + 0xc], 0
je 0x451048
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x451025
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00450b30
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x45104f
xor eax, eax
inc eax
jmp 0x45104f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4510b4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b12c0]
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.0044a3c0
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.0044a3c0
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 0x45112b
cmp word [ecx], dx
je 0x45112b
mov eax, dword [0x4aae8c]
push edi
dec eax
push eax
push 0x4aad78
call fcn.00451053
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45119e
cmp word [eax], dx
je 0x45119e
mov eax, dword [edi]
test eax, eax
je 0x45114f
cmp word [eax], dx
je 0x45114f
lea eax, [ebp - 0x10]
push eax
call fcn.00450a36
jmp 0x451158
lea eax, [ebp - 0x10]
push eax
call fcn.00450ad1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4511c8
mov eax, dword [0x4aad74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4aaa68
call fcn.00451053
add esp, 0xc
test al, al
je 0x4511c8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x451193
cmp word [eax], di
je 0x451193
lea eax, [ebp - 0x10]
push eax
call fcn.00450a36
pop ecx
jmp 0x4511ca
lea eax, [ebp - 0x10]
push eax
call fcn.00450ad1
jmp 0x451190
mov eax, dword [edi]
test eax, eax
je 0x4511b5
cmp word [eax], dx
je 0x4511b5
lea eax, [ebp - 0x10]
push eax
call fcn.004509eb
pop ecx
jmp 0x4511c8
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 0x451293
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00450ed8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x451293
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x451293
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x451293
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x451220
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0044ace2
test ebx, ebx
je 0x45128e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0044ace2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x451293
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 0x451293
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0045709a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x451295
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b9a0
leave
ret