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

Disassembly:
mov eax, 0x42aa85
call fcn.00428650
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.00410e09
push dword [esi + 0x24]
call fcn.00402153
push dword [esi + 0x18]
call fcn.00402153
push dword [esi + 0xc]
call fcn.00402153
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi], 0x42d13c
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x41221f
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x42acb0
call fcn.00428650
sub esp, 0x320
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.00402679
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp byte [esi], 0
je 0x41228c
push dword [esi + 0xc]
lea ecx, [ebp - 0x40]
push dword [esi + 8]
call fcn.004120db
push eax
mov edx, 0xdb0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0041217b
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040281c
push dword [ebp - 0x58]
call fcn.00402153
push dword [ebp - 0x40]
and byte [ebp - 4], 0
call fcn.00402153
pop ecx
pop ecx
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00402b19
lea ebx, [eax + 1]
lea eax, [ebp - 0x4c]
push ebx
push eax
mov ecx, edi
call fcn.004096fb
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
lea eax, [eax + ebx*2]
push eax
call fcn.004026bc
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004121c1
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.004121c1
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040274c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00402996
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402a09
lea ecx, [ebp - 0x18]
call fcn.00402996
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402a09
lea ecx, [ebp - 0x18]
call fcn.00402996
cmp byte [esi + 1], 0
je 0x412368
mov edx, 0x3f4
lea ecx, [ebp - 0x40]
call fcn.00405970
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00402a09
push dword [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402153
lea ecx, [ebp - 0x18]
mov dword [esp], 0x42d230
call fcn.00402a45
push 0
lea edx, [ebp - 0x78]
lea ecx, [esi + 0x10]
call fcn.00405924
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402a45
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi]
push 0x110
lea eax, [ebp - 0x32c]
push 0x2b4
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4123bf
push dword [ebp + 0xc]
push dword [ebx + 4]
call esi
push 0
push dword [ebp - 0x32c]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x18]
call fcn.00402153
push dword [ebp - 0x34]
call fcn.00402153
push dword [ebp - 0x4c]
call fcn.00402153
push dword [ebp - 0x28]
call fcn.00402153
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x412596
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x42ace8
call fcn.00428650
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
or eax, 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x38]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov byte [esi + 3], bl
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
call fcn.00402679
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.00402679
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.00402679
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 3
call fcn.0041262c
lea ecx, [esi + 0x98]
call fcn.004273d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41405e
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x42af98
call fcn.00428650
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.00412c39
push 1
mov ecx, esi
call fcn.004135b5
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.0040f4d7
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.00402153
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
lea ecx, [ebp - 0x50]
call fcn.004141f4
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.004141f4
lea eax, [esi + 0x200]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c8], ebx
lea ebx, [esi + 0x1d0]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.00414225
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.00414225
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x414178
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x21b], 1
jne 0x41416e
push 0x42d350
lea ecx, [ebp - 0x50]
call fcn.0040291a
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x4141a3
cmp byte [ebp - 0xd], 0
jne 0x4141b9
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x21b], 1
je 0x4141d2
cmp dword [ebp - 0x34], ebx
jne 0x41419c
push 0x42d350
lea ecx, [ebp - 0x38]
call fcn.0040291a
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0xd], 0
je 0x4141d2
cmp byte [esi + 0x156], 0
jne 0x4141d2
mov ecx, esi
mov byte [esi + 0x155], 1
call fcn.004145fc
jmp 0x4141db
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.00412ad7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x414dc7
Capabilities:
Get file system object information

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
ret 0xc

Function at 0x414fd8
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
neg cl
sbb ecx, ecx
and cl, 1
add ecx, 0x100
or cx, 0x4010
push ecx
push 0x2b4
push eax
push 0x90
push 0x42c960
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0x2b4
ret
Function at 0x415587
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42b163
call fcn.00428650
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x42d108
lea ecx, [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi + 8], ebx
call fcn.00402679
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00402679
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], bl
mov byte [esi + 0x25], bl
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], bl
mov dword [esi], 0x42d3cc
mov byte [esi + 0x30], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x421730
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x42176d
push str.SetDefaultDllDirectories
push 0x42c874
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42176d
push 0xc00
call eax
test eax, eax
jne 0x421806
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x421806
cmp eax, 0x104
ja 0x421806
cmp word [esp + eax*2 + 6], 0x5c
je 0x42179c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x421806
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x4217db
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x4217c7
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x4217bc
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x425002
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x42506b
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x4250ac
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x425091
mov ecx, ebx
call fcn.00424cf0
add ebx, 0x28
dec ebp
jne 0x425085
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x4250a7
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00424c20
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.00425150
mov ebx, eax
cmp ebx, edi
jne 0x42510f
lea ecx, [ebp + 0x20]
call fcn.00427270
mov ebx, eax
cmp ebx, edi
jne 0x42510f
lea ecx, [ebp + 0x1c]
call fcn.00427270
mov ebx, eax
cmp ebx, edi
jne 0x42510f
push ebp
call fcn.00425190
mov ebx, eax
cmp ebx, edi
je 0x425124
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.00425170
cmp ebx, edi
jle 0x42511f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x425124
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x425136
cmp dword [esi + 0x40], edi
jne 0x425136
cmp dword [esi + 0x3c], edi
jne 0x425136
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x4261c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push edi
push 0x98
xor ebx, ebx
lea eax, [esi + 0x110]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0xc
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x42621b
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
mov edx, 0x100
mov word [eax], dx
mov edx, 0x101
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
xor edx, edx
lea eax, [ecx + 2]
lea esp, [esp]
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x426260
lea edx, [esi + 0x9fc]
mov dword [esp + 8], edx
push ebp
jmp 0x426290
mov edi, dword [esp + 0xc]
xor ebp, ebp
jmp 0x4262a0
movzx eax, word [ebp + 0x42dcd0]
xor edx, edx
lea ecx, [ebx + 2]
div ecx
mov edx, 0x4000
sub edx, eax
movzx ecx, dx
xor eax, eax
lea ebx, [ebx]
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x4262c0
add ebp, 2
add edi, 2
cmp ebp, 0x10
jb 0x4262a0
sub dword [esp + 0xc], 0xffffff80
inc ebx
cmp ebx, 0x80
jb 0x426290
mov ecx, 0x50
lea edi, [esi + 0x3bc]
lea ebx, [ecx - 0x4c]
pop ebp
mov eax, edi
mov edx, 0x10
jmp 0x426300
mov word [eax], cx
mov word [eax + 2], 0x403
add eax, ebx
dec edx
jne 0x426300
add ecx, 0x28
add edi, 0x40
cmp ecx, 0x438
jb 0x4262f4
pop edi
mov dword [esi + 0x3b8], 0x40070000
pop ebx
pop ecx
ret
Function at 0x427230
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x427258
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x427267
mov eax, 1
ret 4

Function at 0x427ee0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x433158]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x4284f0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x428533
cmp eax, 0x40
je 0x428525
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x428578
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3cd609a4
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x431060
nop
nop
nop
nop
mov eax, section..7LWLf
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5b09587b
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x5cc390
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e49b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
lea esi, [ebx + 0x10]
mov dword [ebp - 0x14], 0
push edi
lea ecx, [ebx + 0x68]
mov dword [ebx], 0x68d564
mov dword [esi], 0x68d3f0
call fcn.005ccc40
mov dword [ebp - 4], 0
lea edi, [ebx + 0x18]
mov eax, dword [ebx]
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ecx
push edi
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.005cceb0
mov eax, dword [esi]
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 5
mov eax, dword [ebx]
mov dword [ebp - 0x18], edi
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
lea eax, [edi + 4]
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov ecx, ebx
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
add edi, 0x28
mov dword [ebp - 0x18], eax
mov dword [eax], 0
mov dword [ecx + 0x44], 0
mov dword [edi], 0
mov dword [ecx + 0x48], 0
call fcn.005d0aa5
mov esi, eax
push 1
mov byte [ebp - 4], 6
call fcn.005d0005
add esp, 8
mov dword [esi + 4], eax
mov eax, ebx
lea ecx, [eax + 0x2c]
lea edx, [eax + 0x20]
mov dword [eax + 0x4c], esi
lea esi, [eax + 0x1c]
mov dword [eax + 0x24], esi
mov esi, ebx
mov dword [eax + 0x34], ecx
lea ebx, [esi + 0x3c]
mov dword [eax + 0x28], edx
lea eax, [esi + 0x30]
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], edi
mov esi, dword [ebp - 0x18]
mov dword [edx], 0
mov dword [eax], 0
mov dword [edi], 0
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0x10]
mov eax, ecx
mov dword [ebx], 0
pop edi
pop esi
mov dword [ecx + 0x18], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x5d152a
Capabilities:
Parse pe header

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

Function at 0x5da6dc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e8440
push 0x5e8438
push str.FlsAlloc
push 0x1f
call fcn.005da5a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5da710
push dword [ebp + 8]
mov ecx, esi
call dword [0x5e52a8]
call esi
jmp 0x5da716
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5da75a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e8450
push 0x5e8448
push str.FlsGetValue
push 0x21
call fcn.005da5a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5da791
push dword [ebp + 8]
mov ecx, esi
call dword [0x5e52a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5da799
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5e8458
push 0x5e8450
push str.FlsSetValue
push 0x22
call fcn.005da5a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5da7d3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5e52a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5ddd32
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 0x5dddcf
push ebx
push esi
call fcn.005ddcfb
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.005dca9b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5ddd7c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5dddce
push edi
push eax
call fcn.005d9a12
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5ddd9c
call fcn.005d9a60
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5dddcd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005dca9b
add esp, 0x20
test eax, eax
jne 0x5dddbb
push edi
call fcn.005d9a60
jmp 0x5dddc3
push ebx
call fcn.005d9a60
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 0x5e053f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005d9e24
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 0x5e05ae
cmp esi, dword [ebp - 4]
je 0x5e05a9
cmp dword [ebp + 0xc], 0
je 0x5e05a9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5e0586
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005e0091
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5e05b0
xor eax, eax
inc eax
jmp 0x5e05b0
xor eax, eax
pop edi
pop esi
leave
ret