joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4121b0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x46f366
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0040dcb0
mov ebp, eax
mov dword [esp + 0x10], 0
lea edi, [esi + 0x48]
mov dword [esp + 0x9c], 0
lea ecx, [edi + 4]
call fcn.00416310
test eax, eax
jne 0x412209
push eax
mov eax, dword [edi]
push 2
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.00409a50
mov eax, dword [edi]
push 0
mov eax, dword [eax + 4]
lea ecx, [esi + 0x48]
push 0
add ecx, eax
call fcn.00409a10
cmp byte [esi + 0x34], 0
je 0x412260
lea eax, [esp + 0x5c]
lea ebx, [esi + 0xf0]
push eax
mov ecx, ebx
mov dword [esp + 0xa0], 0
call fcn.0040a2b0
push eax
call fcn.00458c70
add esp, 8
cmp eax, 0xffffffff
je 0x412259
mov eax, dword [esp + 0x70]
cmp eax, dword [esi + 0x150]
jge 0x412260
push 0xe
jmp 0x4123c1
mov edx, dword [esi + 0x154]
lea ebx, [esi + 0xf0]
test edx, edx
jle 0x41237a
mov ecx, ebx
call fcn.004107c0
push 0x47b9d0
mov edx, ebx
lea ecx, [esp + 0x18]
call fcn.00418170
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 3
call fcn.0040a2b0
push eax
call fcn.00456cab
add esp, 4
test eax, eax
je 0x4122b1
call fcn.004521b2
push ebx
mov edx, str.Renaming_file
lea ecx, [esp + 0x60]
call fcn.0040c740
add esp, 4
push str._to
mov edx, eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xa0], 4
call fcn.00417db0
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov edx, eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xa0], 5
call fcn.00417de0
add esp, 4
push 0
push eax
push str.log4cplus:
push 0x40c9b0
push 0x48fed8
mov ecx, ebp
mov byte [esp + 0xb0], 6
call fcn.0040cbd0
lea ecx, [esp + 0x2c]
call fcn.00407890
lea ecx, [esp + 0x44]
call fcn.00407890
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 3
call fcn.00407890
lea ecx, [esp + 0x14]
call fcn.0040a2b0
push eax
mov ecx, ebx
call fcn.0040a2b0
push eax
call fcn.00457208
add esp, 8
test eax, eax
je 0x412362
call fcn.004521b2
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
mov edx, ebx
mov ecx, ebp
call fcn.00410580
add esp, 8
lea ecx, [esp + 0x14]
jmp 0x4123b2
push str._has_no_backups_specified
mov edx, ebx
lea ecx, [esp + 0x60]
call fcn.00418170
add esp, 4
push 0
push eax
push str.log4cplus:
push 0x40c9b0
push 0x48fed8
mov ecx, ebp
mov byte [esp + 0xb0], 7
call fcn.0040cbd0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 0
call fcn.00407890
push 0x12
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
push ebx
mov edx, edi
mov ecx, ebp
call fcn.00410740
mov ecx, dword [esp + 0x98]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4
Function at 0x4144a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f390
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
cmp byte [edi + 0x34], 0
je 0x4144e9
cmp byte [ebp + 8], 0
jne 0x4144e9
mov byte [ebp - 4], 1
push dword [edi + 0x30]
lea ecx, [ebp - 0x18]
call fcn.00417e20
mov esi, dword [ebp - 0x18]
lea ebx, [edi + 0x48]
mov dword [ebp - 4], 0
lea ecx, [ebx + 4]
call fcn.00416310
test eax, eax
jne 0x41450e
push eax
mov eax, dword [ebx]
push 2
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00409a50
mov eax, dword [ebx]
push 0
mov eax, dword [eax + 4]
lea ecx, [edi + 0x48]
push 0
add ecx, eax
call fcn.00409a10
cmp dword [edi + 0x100], 0
je 0x414627
call fcn.0040dcb0
lea ebx, [edi + 0x16c]
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.0040a2b0
push eax
call fcn.00456cab
add esp, 4
test eax, eax
je 0x414555
call fcn.004521b2
lea eax, [edi + 0xf0]
push eax
mov edx, str.Renaming_file
lea ecx, [ebp - 0x64]
call fcn.0040c740
add esp, 4
push str._to
mov edx, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.00417db0
add esp, 4
push ebx
mov edx, eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.00417de0
add esp, 4
mov ecx, dword [ebp + 8]
push 0
push eax
push str.log4cplus:
push 0x40c9b0
push 0x48fed8
mov byte [ebp - 4], 5
call fcn.0040cbd0
lea ecx, [ebp - 0x4c]
call fcn.00407890
lea ecx, [ebp - 0x34]
call fcn.00407890
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.00407890
mov ecx, ebx
call fcn.0040a2b0
push eax
lea ecx, [edi + 0xf0]
call fcn.0040a2b0
push eax
call fcn.00457208
add esp, 8
test eax, eax
jne 0x41460d
jmp 0x414614
call fcn.004521b2
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
push ebx
lea edx, [edi + 0xf0]
call fcn.00410580
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004292e0
movq xmm0, qword [ebp - 0x2c]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movq qword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 8], xmm0
call fcn.004146c0
mov eax, dword [edi]
push 0x12
mov ecx, edi
call dword [eax + 0x28]
push dword [edi + 0x168]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.00412de0
movq xmm0, qword [ebp - 0x44]
movq qword [edi + 0x1a0], xmm0
mov dword [ebp - 0x3c], 0
movq xmm0, qword [ebp - 0x3c]
add esp, 4
movq qword [edi + 0x1a8], xmm0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41469e
mov ecx, esi
call fcn.00431320
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46ff08
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x416667
cmp byte [edi + 0x46], 0
je 0x416667
mov esi, dword [edi]
call fcn.00409d70
movzx eax, ax
push eax
mov ecx, edi
call dword [esi + 0xc]
movzx eax, ax
mov dword [esp + 0x1c], eax
call fcn.00409d70
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00409d30
add esp, 8
test al, al
je 0x4164c6
xor al, al
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x13]
call fcn.004030b0
push eax
lea ecx, [esp + 0x3c]
call fcn.004078e0
push 0
push 0
lea ecx, [esp + 0x40]
call fcn.004087c0
push 0
push 8
lea ecx, [esp + 0x40]
call fcn.00408860
test al, al
je 0x416517
lea ecx, [esp + 0x38]
mov byte [esp + 0x14], 0
call fcn.004083e0
xorps xmm0, xmm0
push 8
lea ecx, [esp + 0x3c]
movq qword [eax], xmm0
call fcn.00408950
mov dword [esp + 0x5c], 0
lea ebp, [edi + 0x48]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
call fcn.00406e80
mov ecx, eax
call fcn.00403090
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.00407940
add esi, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00406e80
mov ecx, eax
call fcn.00403090
mov ecx, dword [edi + 0x40]
lea ebx, [esp + 0x24]
mov edx, dword [ecx]
push ebx
push esi
push eax
push ebp
call dword [edx + 0x20]
sub eax, 0
je 0x41659a
dec eax
je 0x41659e
sub eax, 2
je 0x416647
lea ecx, [esp + 0x38]
xor bl, bl
call fcn.00408290
mov al, bl
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x46], 0
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x3c]
call fcn.00406e80
mov ecx, eax
call fcn.00403090
mov esi, dword [esp + 0x24]
sub esi, eax
je 0x4165e3
push dword [edi + 0x50]
lea eax, [esp + 0x38]
push esi
push 1
push eax
lea ecx, [esp + 0x48]
call fcn.00406e80
mov ecx, eax
call fcn.00403090
push eax
call fcn.0045718a
add esp, 0x10
cmp esi, eax
jne 0x41657a
cmp byte [edi + 0x46], 0
je 0x416647
test esi, esi
jne 0x416522
mov ecx, dword [esp + 0x48]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x41663e
lea ebx, [ecx + 8]
push esi
push ebx
lea ecx, [esp + 0x40]
call fcn.00408860
test al, al
je 0x416522
mov esi, dword [esp + 0x48]
lea ecx, [esp + 0x38]
mov byte [esp + 0x18], 0
call fcn.004083e0
xorps xmm0, xmm0
push ebx
lea ecx, [esp + 0x3c]
movq qword [eax + esi], xmm0
call fcn.00408950
jmp 0x416522
lea ecx, [esp + 0x38]
call fcn.00407b80
lea ecx, [esp + 0x38]
mov bl, 1
call fcn.00408290
mov al, bl
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x54]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x46f70b
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
push edi
push dword [0x490044]
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x418ecb
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x50], esi
test eax, eax
je 0x418eb4
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x418eb6
xor esi, esi
push esi
mov dword [esp + 0x54], 0xffffffff
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 0x5c]
mov eax, dword [ebp]
lea ebx, [esi + 0x300]
push ebx
mov ecx, ebp
mov dword [esp + 0x1c], ebx
call dword [eax + 4]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp + 8]
cmp eax, ecx
jbe 0x418f7c
test byte [ebp + 0xc], 2
je 0x418f3a
sub eax, ecx
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00414f90
push eax
push dword [esp + 0x5c]
mov dword [esp + 0x58], 1
call fcn.00409410
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00407890
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
push ecx
push 0
lea eax, [esp + 0x38]
push eax
mov ecx, ebx
call fcn.00414f90
push eax
push dword [esp + 0x5c]
mov dword [esp + 0x58], 2
call fcn.00409410
add esp, 8
lea ecx, [esp + 0x30]
call fcn.00407890
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
cmp eax, dword [ebp + 4]
jge 0x418ffe
mov ebx, dword [esp + 0x58]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00405b40
mov ecx, dword [ebx]
mov edi, eax
mov ecx, dword [ecx + 4]
mov eax, 0x20
movzx esi, word [ecx + ebx + 0x40]
mov word [ecx + ebx + 0x40], ax
mov ecx, dword [ebx]
test byte [ebp + 0xc], 1
mov ecx, dword [ecx + 4]
mov edx, 0x40
mov eax, 0x80
cmovne eax, edx
xor eax, dword [ecx + ebx + 0x14]
and eax, 0x1c0
xor dword [ecx + ebx + 0x14], eax
mov eax, dword [ebp + 4]
cdq
push edx
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.00409c10
push dword [esp + 0x14]
push ebx
call fcn.00409410
mov eax, dword [ebx]
movzx ecx, di
mov eax, dword [eax + 4]
mov word [eax + ebx + 0x40], si
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x14], ecx
jmp 0x419008
push ebx
push dword [esp + 0x5c]
call fcn.00409410
mov ecx, dword [esp + 0x50]
add esp, 8
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
Function at 0x419710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46f543
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41977c
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x2c], esi
test eax, eax
je 0x419765
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x419767
xor esi, esi
push esi
mov dword [esp + 0x30], 0xffffffff
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0xb0
mov ecx, esi
call fcn.0041d3e0
mov edx, dword [ebp + 0xc]
mov ecx, esi
call fcn.00432f40
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004091f0
push dword [ebp + 8]
mov ecx, eax
mov dword [esp + 0x30], 1
call fcn.0041b2a0
lea ecx, [esp + 8]
call fcn.00407890
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x419b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f523
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 7]
push eax
mov dword [esp + 0xc], edi
call fcn.004037a0
push eax
lea ecx, [esp + 9]
call fcn.00407460
lea eax, [esp + 5]
push eax
lea ecx, [esp + 0xa]
call fcn.00407460
lea eax, [esp + 6]
push eax
mov ecx, edi
call fcn.004078e0
push 0
push 0
mov ecx, edi
call fcn.00407e70
push 0xffffffffffffffff
push 0
push dword [esp + 0x24]
mov ecx, edi
call fcn.00407ad0
mov dword [esp + 0x14], 0
mov al, byte [edi + 0x20]
and al, 0xfe
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0xffffffff
or al, 2
mov byte [edi + 0x20], al
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [esp + 0x14], 1
lea ecx, [edi + 0x38]
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
call fcn.004075c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x50], eax
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x41bd90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x41be04
push esi
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0
test eax, eax
je 0x41bddf
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x41bde1
xor esi, esi
push esi
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 0x238]
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 4]
add eax, 0x238
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41d530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41d594
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], esi
test eax, eax
je 0x41d57d
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x41d57f
xor esi, esi
push esi
mov dword [esp + 0x14], 0xffffffff
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [esi + 0x18]
call fcn.0041d3e0
mov ecx, dword [esp + 8]
lea eax, [esi + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41d5b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
push dword [0x490044]
mov ebx, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x41d61a
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], esi
test eax, eax
je 0x41d603
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x41d605
xor esi, esi
push esi
mov dword [esp + 0x1c], 0xffffffff
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 0x2c]
mov eax, dword [edi + 4]
push dword [esp + 0x2c]
add eax, 0x18
push dword [esp + 0x2c]
add esi, 0x330
push dword [esp + 0x2c]
mov ecx, esi
push ebx
push eax
call fcn.004301f0
mov ecx, dword [edi + 4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x421360
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46fd54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
cmp dword [esp + 0x28], 0
push edi
mov dword [esp + 0x10], ebx
je 0x4213ae
lea ecx, [ebx + 0x40]
mov dword [ebx + 0x14], 0x47dd98
call fcn.004104d0
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 1
mov ecx, ebx
call fcn.00420850
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], 1
mov eax, dword [ebx + 0x14]
mov dword [ebx], vtable.log4cplus::spi::LoggerImpl.1.0
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x14], vtable.log4cplus::spi::LoggerImpl.0
lea eax, [esp + 0xb]
push eax
call fcn.004037a0
push eax
lea ecx, [esp + 0x30]
call fcn.00407460
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xe]
call fcn.00407460
lea eax, [esp + 0xa]
push eax
lea ecx, [ebx + 0x18]
call fcn.004078e0
push 0
push 0
lea ecx, [ebx + 0x18]
call fcn.00407e70
push 0xffffffffffffffff
push 0
push dword [esp + 0x2c]
lea ecx, [ebx + 0x18]
call fcn.00407ad0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x30], 0xffffffff
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x38], 1
pop edi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x421850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x470fab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push dword [0x490044]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4218b7
push 0x418
call fcn.0044e4b5
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], esi
test eax, eax
je 0x4218a0
mov ecx, eax
call fcn.0040ddc0
mov esi, eax
jmp 0x4218a2
xor esi, esi
push esi
mov dword [esp + 0x18], 0xffffffff
push dword [0x490044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 0x2c]
lea eax, [edi + 0x18]
push dword [esp + 0x2c]
add esi, 0x330
push dword [esp + 0x2c]
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push eax
call fcn.004301f0
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x1c]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x4219d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46fdd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebp + 0x3c]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], 0x47cdfc
call fcn.004104d0
mov ebx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x3c], 0
push ebx
mov ecx, ebp
mov dword [esp + 0x18], 1
call fcn.0041bfe0
mov dword [esp + 0x38], 1
mov eax, dword [ebp + 4]
mov dword [ebp], vtable.log4cplus::ConsoleAppender.0
mov eax, dword [eax + 4]
lea esi, [ebp + 0x38]
mov dword [eax + ebp + 4], vtable.log4cplus::ConsoleAppender.1.0
lea edi, [ebp + 0x39]
push 0x47ce30
lea ecx, [esp + 0x1c]
mov byte [esi], 0
mov byte [edi], 0
call fcn.00408180
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebx
mov byte [esp + 0x40], 2
call fcn.00431ad0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00407890
push str.ImmediateFlush
lea ecx, [esp + 0x1c]
call fcn.00408180
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0x40], 3
call fcn.00431ad0
lea ecx, [esp + 0x18]
call fcn.00407890
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x422f50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x470199
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov dword [esp + 0x28], 0
push edi
lea ecx, [esp + 0xb]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
call fcn.004030b0
push eax
mov ecx, esi
call fcn.004078e0
push 0
push 0
mov ecx, esi
call fcn.00407e70
push 0
push 0x8000
mov ecx, esi
call fcn.00407f10
test al, al
je 0x422fde
mov ecx, esi
mov dword [esp + 0x14], 0
call fcn.00407a90
mov edi, eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x4000
rep stosd dword es:[edi], eax
push 0x8000
mov ecx, esi
call fcn.00408030
mov dword [esp + 0x2c], 0
mov ecx, esi
mov dword [esp + 0xc], 1
call fcn.00407a90
push eax
mov ecx, esi
call fcn.00407940
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x423030
mov ecx, esi
call fcn.00407940
cmp edi, eax
jae 0x423030
push edi
mov ecx, esi
call fcn.0041b240
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
push str.GetCurrentDirectory
lea ecx, [esp + 0x1c]
call fcn.00406fd0
push 0x484d28
lea eax, [esp + 0x1c]
push eax
call fcn.0044fc3b
int3
Function at 0x423670
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x470250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x14], 0
call fcn.0040dcb0
push esi
lea edx, [esp + 0x18]
lea ecx, [esp + 0x24]
mov ebx, eax
call fcn.004230d0
add esp, 4
test al, al
je 0x4237f0
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x20], ecx
je 0x4236f0
add ecx, 0xffffffe8
call fcn.00407890
sub dword [esp + 0x24], 0x18
lea ecx, [esp + 0x2c]
call fcn.004075c0
mov byte [esp + 0x80], 1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004066e0
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea edi, [ebp*2]
mov dword [esp + 0x1c], eax
add edi, ebp
lea eax, [esp + 0x20]
shl edi, 3
push eax
lea ecx, [esp + 0x20]
add esi, edi
call fcn.004066e0
push esi
push dword [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.00428050
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
add esp, 8
cmp ebp, esi
je 0x4237e7
sub esi, ebp
push 0xffffffffffffffff
push 0
push 0x49013c
lea ecx, [esp + 0x38]
call fcn.00403560
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push 0
add eax, edi
push eax
lea ecx, [esp + 0x38]
call fcn.00403560
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.0040a2b0
push eax
call fcn.00458c70
add esp, 8
cmp eax, 0xffffffff
jne 0x4237e1
lea ecx, [esp + 0x2c]
call fcn.0040a2b0
push eax
call fcn.00457352
add esp, 4
test eax, eax
je 0x4237d2
call fcn.004521b2
mov eax, dword [eax]
push eax
lea edx, [esp + 0x30]
mov ecx, ebx
call fcn.00423510
add esp, 4
add edi, 0x18
dec esi
jne 0x423773
lea ecx, [esp + 0x2c]
call fcn.00407890
mov esi, dword [esp + 0x20]
test esi, esi
je 0x42381b
mov edi, dword [esp + 0x24]
cmp esi, edi
je 0x423812
mov ecx, esi
call fcn.00407890
add esi, 0x18
cmp esi, edi
jne 0x423800
mov esi, dword [esp + 0x20]
push esi
call fcn.0044e3fd
add esp, 4
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret