joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433dd0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x1000
jle 0x433e65
push ebx
push ebp
mov ebp, dword [esi + 0x1000]
push edi
lea edi, [eax + 8]
mov eax, dword [0x4da0cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
jne 0x433e02
mov ebx, 0x4d79e4
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push edi
mov ecx, ebx
call eax
mov edi, eax
test edi, edi
jne 0x433e17
call fcn.0041cdf0
add edi, 8
mov dword [edi - 8], ebx
jne 0x433e24
call fcn.0041cdf0
mov eax, dword [esi + 0x1004]
mov dword [esi + 0x1000], edi
test eax, eax
jle 0x433e3f
push eax
push ebp
push edi
call fcn.0044c0d0
add esp, 0xc
cmp ebp, esi
je 0x433e55
test ebp, ebp
je 0x433e55
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
lea eax, [ebp - 8]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
mov dword [esi + 0x1008], ecx
pop ebx
ret 4
mov ecx, dword [esi + 0x1000]
cmp ecx, esi
je 0x433eac
mov eax, dword [esi + 0x1004]
test eax, eax
jle 0x433e84
push eax
push ecx
push esi
call fcn.0044c0d0
add esp, 0xc
mov eax, dword [esi + 0x1000]
test eax, eax
je 0x433e9c
mov ecx, dword [eax - 8]
mov edx, dword [ecx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0x1000], esi
mov dword [esi + 0x1008], 0x1000
ret 4

Function at 0x434410
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4da0cc]
push ebp
mov ebp, dword [ebx + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
lea esi, [esi*4 + 8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test eax, eax
jne 0x434438
mov edi, 0x4d79e4
mov edx, dword [edi]
mov eax, dword [edx + 4]
push esi
mov ecx, edi
call eax
mov esi, eax
test esi, esi
jne 0x43444d
call fcn.0041cdf0
add esi, 8
mov dword [esi - 8], edi
jne 0x43445a
call fcn.0041cdf0
mov eax, dword [ebx]
mov dword [ebx + 4], esi
test eax, eax
jle 0x434475
lea ecx, [eax*4]
push ecx
push ebp
push esi
call fcn.00445c00
add esp, 0xc
test ebp, ebp
je 0x434494
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
lea eax, [ebp - 8]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 8], ecx
pop ebp
ret 4
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 8], edx
pop ebp
ret 4
Function at 0x434530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4a12a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4da0cc]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x434564
mov eax, 0x4d79e4
mov dword [esi], eax
mov ecx, dword [0x4da0cc]
push 0x4d79e4
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 0x4da0d0
mov dword [esp + 0x18], 0
call fcn.00434680
mov dl, byte [eax]
mov byte [esi + 4], dl
mov al, byte [eax + 1]
mov byte [esi + 5], al
mov eax, 0x4da0d0
call fcn.00434680
cmp byte [eax + 1], 0
mov edi, dword [esp + 0x20]
je 0x4345ca
cmp edi, 1
jne 0x4345ca
mov ecx, dword [0x4da734]
add ecx, 0xc
push 0x1010
push ecx
call fcn.00423a70
add esp, 8
call fcn.0044766f
cmp byte [esi + 5], 0
jne 0x4345d9
cmp edi, 1
je 0x4345d9
xor ebx, ebx
jmp 0x4345de
mov ebx, 1
mov eax, 0x4da0d0
call fcn.00434680
mov byte [eax + 1], bl
cmp byte [esi + 4], 0
jne 0x4345f9
test edi, edi
je 0x4345f9
xor ebx, ebx
jmp 0x4345fe
mov ebx, 1
mov eax, 0x4da0d0
call fcn.00434680
mov ecx, dword [esp + 0x10]
mov byte [eax], bl
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x434620
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49eab8
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
mov eax, 0x4da0d0
mov dword [esp + 0xc], 0
call fcn.00434680
mov cx, word [esi + 4]
mov word [eax], cx
mov dword [esp + 0xc], 0xffffffff
mov edx, dword [esi]
mov eax, dword [0x4da0cc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x435060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a21f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x4d9fb0
mov esi, ecx
mov dword [esp + 0x1c], 0x4d9fb0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1c], 1
xor ebx, ebx
mov dword [esp + 0x2c], ebx
cmp byte [esi + 0xd], bl
jne 0x4350ad
mov eax, esi
call fcn.004351c0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00434830
add esp, 8
mov byte [esp + 0x2c], 1
cmp dword [esi + 8], 2
push ebx
jne 0x4350eb
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax + 4]
push ecx
add eax, 0xc
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x435165
cmp byte [esi + 0xc], bl
je 0x435144
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041bfe0
mov byte [esp + 0x2c], 2
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push ebx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
mov eax, dword [edi + 4]
push eax
lea eax, [edi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x435165
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
xor ebx, ebx
jmp 0x435165
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 4]
add ecx, ecx
push ecx
add eax, 0xc
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0x14]
call fcn.00434c80
mov byte [esp + 0x2c], bl
mov edi, dword [esp + 0xc]
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x435191
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
push 0x4d9fb0
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x435220
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov ecx, dword [esi + 4]
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
push ebx
push ecx
mov dword [esp + 0x24], ebx
call edi
mov edx, dword [esi + 4]
push ebx
push ebx
push ebx
push edx
mov ebp, eax
call edi
mov edx, dword [esi + 4]
push ebx
lea eax, [esp + 0x14]
push eax
push 2
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435283
cmp dword [esp + 0x10], 2
jne 0x435283
mov ax, word [esp + 0xc]
cmp al, 0xff
jne 0x435283
cmp ah, 0xfe
jne 0x435283
mov bl, 1
jmp 0x435285
xor bl, bl
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x18]
push eax
push ebp
push ecx
call edi
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x4355c0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push 0x4d9fe0
mov dword [esp + 0xc], 0x4d9fe0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0xc], 1
mov dword [esp + 0x1c], 0
cmp dword [esi + 4], 0
jne 0x43560a
push esi
call fcn.00435660
mov eax, dword [esi + 4]
test eax, eax
je 0x43563b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
push 0
push 2
push 0
push 1
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x10]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push 0x4d9fe0
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x435660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a26d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.0042b370
add esp, 4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push str.SYSTEMCurrentControlSetServicesEventLogApplication_
xor esi, esi
push edx
mov dword [esp + 0x50], esi
call fcn.00401920
add esp, 0xc
mov byte [esp + 0x44], 1
mov ebx, 2
push 0x4d9f40
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x34], 0x4d9f40
push esi
mov byte [esp + 0x48], bl
mov eax, dword [esp + 0x18]
push 1
add eax, 0xc
push eax
push SysReAllocStringLen
lea ecx, [esp + 0x38]
push ecx
call fcn.0041f780
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [esp + 0x28], esi
je 0x4357a6
push str.FObjEventSrc.dll
lea edx, [esp + 0x20]
push edx
lea esi, [ebx + 0xe]
call fcn.00419c10
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x48], 3
call fcn.00419a40
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x50], 4
call fcn.00424880
add esp, 0xc
mov byte [esp + 0x44], 6
mov edi, dword [esp + 0x24]
push edi
call ebp
test eax, eax
jg 0x435756
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x44], 7
mov edi, dword [esp + 0x1c]
push edi
call ebp
test eax, eax
jg 0x435773
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x28]
add esi, 0xc
push eax
mov edi, str.EventMessageFile
call fcn.0041fff0
mov byte [esp + 0x44], 2
mov edi, dword [esp + 0x20]
push edi
call ebp
test eax, eax
jg 0x4357a6
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x4c]
cmp dword [esi + 4], 0
je 0x4357d0
push 0
push 0x1d7
push str.d:_build10_fineobjects_srcmessagehandlers.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
mov eax, dword [esp + 0x18]
add eax, 0xc
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
lea ecx, [esp + 0x28]
push ecx
mov dword [esi + 4], eax
mov byte [esp + 0x48], 1
call fcn.0041f6f0
mov byte [esp + 0x44], 0
mov esi, dword [esp + 0x14]
push esi
call ebp
test eax, eax
jg 0x435811
mov ebx, dword [esi + 8]
mov edi, esi
mov esi, 0x4da170
call fcn.00432310
mov dword [esp + 0x44], 0xffffffff
mov edi, dword [esp + 0x18]
push edi
call ebp
test eax, eax
jg 0x435831
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4
Function at 0x435f30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a0358
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x435ffa
push 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x43603a
call fcn.0041cdf0
mov ecx, dword [edi]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x4da010
mov dword [esp + 0x10], 0x4da010
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x10], 1
add edi, 8
mov dword [esp + 0x1c], 0
mov eax, dword [edi]
mov ebx, dword [edi + 8]
lea ecx, [eax + 1]
cmp ecx, ebx
jle 0x435fd7
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
cmp eax, 8
jg 0x435fc7
mov eax, 8
sub ecx, ebx
cmp ecx, eax
jle 0x435fcf
mov eax, ecx
add ebx, eax
push ebx
call fcn.0043afb0
mov edx, dword [edi]
mov eax, dword [edi + 4]
lea eax, [eax + edx*4]
test eax, eax
je 0x435fe5
mov dword [eax], esi
inc dword [edi]
push 0x4da010
mov dword [esp + 0x20], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esi]
mov ebx, dword [esp + 0x24]
cmp edi, ebx
jg 0x436055
lea ecx, [esp + 0x24]
mov eax, ebx
sub eax, edi
push ecx
inc eax
push esi
mov dword [esp + 0x2c], 0
call fcn.00436110
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x28]
mov dword [edx + ebx*4], eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, eax
jmp 0x435f7d
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x28]
mov dword [ecx + ebx*4], edx
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 8
Function at 0x4363a0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49eadb
push eax
mov dword fs:[0], esp
mov eax, dword [0x4d77bc]
sub esp, 0x40c
shr eax, 0xd
push ebp
mov ebp, dword [esp + 0x420]
test al, 1
jne 0x4364a7
push esi
xor eax, eax
mov ecx, 0x200
lea edx, [esp + 8]
push edi
mov dword [esp + 0x410], eax
mov dword [esp + 0x414], ecx
mov dword [esp + 0x40c], edx
mov dword [esp + 0x420], eax
mov edi, ecx
jmp 0x436407
mov ecx, dword [esp + 0x414]
cmp edi, ecx
jle 0x436436
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x200
mov edx, eax
jg 0x436420
mov edx, 0x200
mov eax, edi
sub eax, ecx
cmp eax, edx
jg 0x43642a
mov eax, edx
add ecx, eax
push ecx
lea esi, [esp + 0x10]
call fcn.00431c60
push ebx
mov eax, edi
neg eax
push ebp
lea ecx, [edi - 1]
sbb eax, eax
and eax, dword [esp + 0x414]
push ecx
push edi
push eax
mov dword [esp + 0x424], edi
call fcn.0044764f
add esp, 0x14
add edi, edi
test eax, eax
jl 0x436400
mov eax, dword [esp + 0x410]
neg eax
sbb eax, eax
and eax, dword [esp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esp + 0x420], 0xffffffff
mov eax, dword [esp + 0x40c]
lea edx, [esp + 0xc]
pop edi
pop esi
cmp eax, edx
je 0x4364a7
test eax, eax
je 0x4364a7
mov ecx, dword [eax - 8]
mov edx, dword [ecx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x410]
pop ebp
mov dword fs:[0], ecx
add esp, 0x418
ret

Function at 0x436740
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49ed58
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push eax
mov dword [esi], eax
call edi
mov ecx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [ecx]
push eax
mov dword [esi + 4], eax
call edi
mov ecx, dword [esp + 0xc]
mov byte [esi + 8], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 1
lea eax, [esi + 0xc]
mov dword [eax + 4], eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 0x1f
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
pop edi
mov dword [esi + 0x40], 0x80
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x439500
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49ecd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov esi, 0x4da778
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x1c], 1
mov dword [esp + 0x2c], 0
call fcn.00438b00
cmp dword [0x4da7fc], 0
mov dword [esp + 0xc], eax
jne 0x439554
or eax, 0xffffffff
jmp 0x43956f
xor edx, edx
div dword [0x4da80c]
mov ecx, dword [0x4da800]
mov eax, edx
test byte [ecx + eax*4], 1
je 0x43956f
mov eax, dword [ecx + eax*4]
shr eax, 1
lea edi, [esp + 0xc]
mov esi, 0x4da7fc
call fcn.004307f0
cmp eax, 0xffffffff
je 0x439598
mov eax, edi
mov ecx, esi
call fcn.00439c50
mov eax, dword [eax]
mov edi, dword [eax]
add edi, 0xffffffff
mov dword [esp + 0xc], eax
jns 0x439609
mov esi, dword [ebp + 8]
push 0x4da778
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4da790
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], 0x4da790
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x10], 1
mov byte [esp + 0x2c], 1
mov edi, dword [0x4da7f0]
add edi, 0xffffffff
js 0x439695
jmp 0x4395e0
mov ecx, dword [0x4da7f4]
mov eax, dword [ecx + edi*4]
mov eax, dword [eax]
cmp esi, 6
jne 0x43967a
push 2
lea edx, [esp + 0x18]
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x439683
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 4]
mov esi, dword [ebp + 8]
mov eax, dword [eax + edi*4]
mov eax, dword [eax]
cmp esi, 6
jne 0x43962a
push 2
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x439633
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
setne al
test al, al
jne 0x439646
sub edi, 1
jns 0x439605
jmp 0x43959b
mov edx, dword [esp + 0xc]
mov eax, dword [edx + 4]
mov edi, dword [eax + edi*4]
mov edi, dword [edi]
push 0x4da778
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
setne al
test al, al
jne 0x4396ba
sub edi, 1
jns 0x4395e0
push 0x4da790
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4da7f4]
mov edi, dword [eax + edi*4]
mov edi, dword [edi]
push 0x4da790
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4396f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a19aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x4da778
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x10], 0x4da778
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x10], 1
push edi
mov dword [esp + 0x30], 0
call fcn.00439500
mov esi, eax
test esi, esi
jne 0x43975d
push 0x4b84f0
push 0x4b84f0
push 0x4b84f0
push 0x4d7a60
call fcn.0041d860
add esp, 0x10
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x439788
push 0x4b84f0
push 0x4b84f0
push 0x4b84f0
push 0x4d7a60
call fcn.0041d860
add esp, 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4397b2
push 0x4b84f0
push 0x4b84f0
push 0x4b84f0
push 0x4d7a60
call fcn.0041d860
add esp, 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
xor ebx, ebx
cmp esi, ebx
mov edi, eax
jle 0x4397cf
cmp edi, ebx
jne 0x4397ed
push ebx
push 0x403
push str.d:_build10_fineobjects_src_resourceinfo.cpp
push 0x4b84f0
push 0x4b84f0
push ebx
call fcn.0041d410
add esp, 0x18
mov eax, dword [ebp + 8]
mov byte [esp + 0x2c], 1
push 0x1021
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], vtable.FObj::CFile.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00420b70
push esi
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call fcn.00420e80
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x439840
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x30], 0
call fcn.00420aa0
push 0x4da778
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43b040
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0x14
jle 0x43b0d2
push ebx
push ebp
mov ebp, dword [esi + 0x50]
push edi
lea edi, [eax*4 + 8]
mov eax, dword [0x4da0cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
jne 0x43b071
mov ebx, 0x4d79e4
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push edi
mov ecx, ebx
call eax
mov edi, eax
test edi, edi
jne 0x43b086
call fcn.0041cdf0
add edi, 8
mov dword [edi - 8], ebx
jne 0x43b093
call fcn.0041cdf0
mov eax, dword [esi + 0x54]
mov dword [esi + 0x50], edi
test eax, eax
jle 0x43b0af
lea ecx, [eax*4]
push ecx
push ebp
push edi
call fcn.0044c0d0
add esp, 0xc
cmp ebp, esi
je 0x43b0c5
test ebp, ebp
je 0x43b0c5
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
lea eax, [ebp - 8]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
mov dword [esi + 0x58], ecx
pop ebx
ret 4
mov ecx, dword [esi + 0x50]
cmp ecx, esi
je 0x43b111
mov eax, dword [esi + 0x54]
test eax, eax
jle 0x43b0f2
lea edx, [eax*4]
push edx
push ecx
push esi
call fcn.0044c0d0
add esp, 0xc
mov eax, dword [esi + 0x50]
test eax, eax
je 0x43b107
mov ecx, dword [eax - 8]
mov edx, dword [ecx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0x50], esi
mov dword [esi + 0x58], 0x14
ret 4
Function at 0x43b4d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x24], 0
mov eax, dword [edi + 4]
sub eax, 2
je 0x43b54b
sub eax, 1
je 0x43b538
push 0
push 0xa1
push str.d:_build10_fineobjects_src_nativefilesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
jmp 0x43b578
movzx eax, word [edi + 0x10]
cmp ax, 0x5c
je 0x43b578
push 0
push 0x9e
jmp 0x43b51d
push 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x5c
call fcn.00419ec0
mov cx, word [esp + 0x14]
mov edi, dword [esp + 0x10]
mov word [eax + 4], cx
xor edx, edx
mov dword [edi + 4], 3
mov word [edi + 0x12], dx
movzx eax, word [edi + 0xc]
lea esi, [edi + 0xc]
cmp ax, 0x5c
jne 0x43b5a5
push 0
push 0xa4
push str.d:_build10_fineobjects_src_nativefilesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
movzx eax, word [edi + 0xe]
cmp ax, 0x3a
je 0x43b5cf
push 0
push 0xa5
push str.d:_build10_fineobjects_src_nativefilesystem.cpp
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
setne bl
push edi
mov byte [esp + 0x13], bl
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43b625
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43b640
Capabilities:
Get common file path

Disassembly:
push ecx
push edi
push 0x104
mov ecx, esi
call fcn.00419ec0
push eax
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x43b690
mov edx, dword [esi]
lea eax, [edx + 0xc]
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43b670
sub eax, edi
sar eax, 1
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2 + 0xc], dx
mov al, 1
pop edi
pop ecx
ret
mov eax, dword [esi]
mov dword [eax + 4], 0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + 0xc], dx
xor al, al
pop edi
pop ecx
ret