joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440320
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440353
push esi
call fcn.00443420
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44034c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4403d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4403c2
mov eax, dword [esi + 8]
test eax, eax
je 0x440377
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4403be
cmp eax, 2
je 0x4403c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44036a
cmp eax, 3
je 0x44039d
cmp eax, 1
jne 0x44036a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44036a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44036a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440400
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4403e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440400
add esp, 4
pop esi
ret

Function at 0x44dfe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ab48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044dbc0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.0044dc30
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0044df10
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0044dbe0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x44dff8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48ab48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044dbc0
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.0044dc30
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0044df10
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0044dbe0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x44e310
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x48abc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0044dbc0
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.0044dbc0
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.0044dc30
cmp dword [esp + 0x40], ebx
jne 0x44e398
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.0044dbe0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0044dbe0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.0044e250
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.0044e060
cmp eax, esi
jb 0x44e41b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x58ecd4
lea ecx, [esp + 0x1c]
call fcn.0044dfe0
cmp eax, 1
jne 0x44e40d
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0044dd80
push ebx
lea ecx, [esp + 0x20]
call fcn.0044e0e0
push eax
call fcn.00467d01
add esp, 8
test eax, eax
jge 0x44e40d
push ebx
lea ecx, [esp + 0x20]
call fcn.0044e0d0
push eax
call edi
test eax, eax
je 0x44e450
lea ecx, [esp + 0xc]
inc esi
call fcn.0044e060
cmp esi, eax
jbe 0x44e3bd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.0044dbe0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0044dbe0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.0044dbe0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0044dbe0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4509d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4509db
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x450ade
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x572f84]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x572f84]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x572f84]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x572f84]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x572f84]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x572f84]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x572f84]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x572f84]
xor eax, edx
inc ecx
dec edi
jne 0x4509f6
pop edi
test esi, esi
je 0x450b00
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x572f84]
xor eax, edx
inc ecx
dec esi
jne 0x450ae2
pop esi
pop ebx
not eax
ret

Function at 0x4514a0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4514e1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4514d6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x4514f4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x452430
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4524e5
cmp dword [ebp + 4], 0xffffffff
jne 0x4524e5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x58ef5c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x4524ad
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4524ad
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00451230
add esp, 0x10
test eax, eax
jne 0x4524d0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00451770
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x452940
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x452a08
mov al, byte [ecx]
test al, al
je 0x452a08
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x45296b
cmp al, 0x5c
jne 0x45296d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x452963
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4529a4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004683aa
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.00452940
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4540b0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x48ad38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00480a1f
lea ecx, [esp + 0x20]
mov dword [esp + 0x60], 0
call fcn.00480a1f
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.00480a1f
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x40]
push eax
push 0x18
push edi
mov byte [esp + 0x6c], 2
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esi + 0x1a0d8]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
lea ecx, [esp + 0x10]
push ebp
call fcn.00480ad6
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x6c]
push edx
push eax
push ebp
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00480ad6
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, ecx
push eax
call ebx
push eax
lea ecx, [esp + 0x34]
call fcn.00480ad6
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
test edi, edi
je 0x45418b
mov ecx, dword [esp + 0x24]
push edi
push ecx
call ebx
jmp 0x45418d
xor eax, eax
mov edi, dword [esp + 0x68]
mov dword [esi + 0x1a2ec], eax
test edi, edi
je 0x4541a5
mov edx, dword [esp + 0x34]
push edi
push edx
call ebx
jmp 0x4541a7
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1a2f0], eax
lea eax, [esp + 0x20]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, ecx
mov ecx, dword [esp + 0x74]
mov edx, ecx
imul edx, dword [esp + 0x78]
push edx
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x1a2ec]
test eax, eax
je 0x4541f6
mov edx, dword [esp + 0x24]
push eax
push edx
call ebx
mov esi, dword [esi + 0x1a2f0]
test esi, esi
je 0x454208
mov eax, dword [esp + 0x34]
push esi
push eax
call ebx
lea ecx, [esp + 0x10]
call fcn.00480b0d
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
lea ecx, [esp + 0x30]
mov byte [esp + 0x60], 1
call fcn.00480b54
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 0
call fcn.00480b54
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.00480b54
mov ecx, dword [esp + 0x58]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0xc
Function at 0x4580c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, ebx
mov esi, ecx
mov ecx, dword [esp + 0x14]
and edi, 0xff
or edi, 0x200
mov edx, dword [esi + 0x19d6c]
shl edi, 8
and eax, 0xff
and ecx, 0xff
or edi, eax
shl edi, 8
or edi, ecx
push edi
push edx
call dword [sym.imp.GDI32.dll_GetNearestPaletteIndex]
mov ecx, dword [esi + 0x19d70]
xor edx, edx
mov dl, byte [ecx + eax*4 + 6]
mov ebp, edx
xor edx, edx
mov dl, byte [ecx + eax*4 + 5]
or ebp, 0x200
shl ebp, 8
or ebp, edx
xor edx, edx
mov dl, byte [ecx + eax*4 + 4]
shl ebp, 8
or ebp, edx
cmp ebp, edi
je 0x4581c6
mov cx, word [ecx + 2]
mov eax, dword [esi + 0x1a180]
mov edx, ecx
dec eax
and edx, 0xffff
cmp edx, eax
jge 0x4581c6
cmp cx, 0xff
jae 0x4581c6
mov eax, dword [esi + 0x19d6c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x19d70]
mov dl, byte [esp + 0x14]
xor ecx, ecx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 4], dl
mov eax, dword [esi + 0x19d70]
mov dl, byte [esp + 0x18]
xor ecx, ecx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 5], dl
mov eax, dword [esi + 0x19d70]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov byte [eax + ecx*4 + 6], bl
mov eax, dword [esi + 0x19d70]
mov dx, word [eax + 2]
mov byte [eax + edx*4 + 7], 0
mov eax, dword [esi + 0x19d70]
inc word [eax + 2]
mov eax, dword [esi + 0x19d70]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [esi + 0x19d6c], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x458970
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48ae61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x18]
mov dword [esi], 0x5735f4
mov ecx, edi
call fcn.004581d0
push fcn.00458950
push 0x458910
push 0x15
lea eax, [esi + 0x34]
xor ebp, ebp
push 0x1c
push eax
mov dword [esp + 0x2c], ebp
call fcn.00467624
mov ecx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x5735e8
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], 0xffffff
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], 1
mov dword [esi + 0x2c], ebp
call fcn.004583d0
mov dword [esi + 0x30], ebp
lea ecx, [esi + 0x280]
lea eax, [esi + 0x38]
mov edx, 0x15
mov dword [eax], 1
mov dword [ecx], ebp
add eax, 0x1c
add ecx, 4
dec edx
jne 0x4589f9
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x467d01
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x467d21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046a1ac
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x467d44
test byte [esp + 8], 2
je 0x467d44
call fcn.0046a21f
mov dword [eax], 0xd
call fcn.0046a228
mov dword [eax], 5
jmp 0x467d1d
xor eax, eax
ret

Function at 0x47cc99
Capabilities:
Get graphical window text

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

Function at 0x47e38f
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 0x47e3d1
call fcn.0048412d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47e3d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47e3c8
xor eax, eax
jmp 0x47e3d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047e3df
pop edi
pop esi
pop ebx
ret 4

Function at 0x48465d
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 0x48468b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4846a9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004845c3
jmp 0x4846a9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4846a9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004845c3
test edi, edi
mov eax, edi
jne 0x484693
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
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.00406a08
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.00406b44
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 0x405df4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x549050], 0
je 0x405e55
cmp word [0x54932c], 0xd7b2
jne 0x405e1d
cmp dword [0x549334], 0
jbe 0x405e1d
mov eax, 0x549328
call dword [0x549344]
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 0x405e80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x544030], 0
jne 0x405e71
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406000
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 [0x544034], 0
je 0x406026
mov edx, esi
mov eax, ebx
call dword [0x544034]
jmp 0x406035
mov eax, 8
call fcn.004041e8
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x549051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405fc8
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 0x40880c
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 0x408973
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a08
cmp si, word [0x5447dc]
jb 0x4088a6
cmp si, word [0x5449dc]
ja 0x4088a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4088a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5447dc]
jae 0x408880
mov edi, ebx
dec edi
jmp 0x4088a1
cmp si, word [ebx*8 + 0x5447dc]
jbe 0x408890
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4088a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5447e0]
call fcn.0040871c
jmp 0x4088a6
cmp edi, dword [ebp - 0xc]
jae 0x40886a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408955
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408955
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.00406c00
push dword [ebp - 0x164]
push 0x408990
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c00
push dword [ebp - 0x168]
push 0x4089a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c00
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406fb8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40897a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a00
ret
Function at 0x408b2c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408c31
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54bb58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x54bb70]
jne 0x408b78
mov eax, esi
mov edx, 0x54bb74
mov ecx, 0x55
call fcn.00406c00
push 0x54bb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408c1b
push 0x54bb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406a08
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408be9
cmp byte [0x54bb54], 0
je 0x408bae
mov edx, esi
mov eax, ebx
call fcn.00408a0c
jmp 0x408be9
mov edx, esi
mov eax, ebx
call fcn.0040880c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408be9
cmp dword [esi], 0
je 0x408bd2
mov eax, esi
mov edx, 0x408c4c
call fcn.00406e14
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040880c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e14
push 0x54bb58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x54bb70], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406a94
push eax
push 0x54bb74
call sub.kernel32.dll_lstrcpynW
push 0x54bb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c38
lea eax, [ebp - 4]
call fcn.004069f8
ret