joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ea40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5467a3
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
call fcn.00538086
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x98ad50
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x98ac98
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x54b0a8]
push eax
mov ecx, edi
call fcn.0053d8b6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0053f42c
test eax, eax
je 0x48eb5c
mov ecx, dword [esp + 0x3c]
call fcn.0053d8e3
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x54b724]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x48eb20
push edi
mov ecx, esi
call fcn.0053aeba
mov ecx, esi
call fcn.0048ed00
cmp dword [esp + 0x38], 1
jne 0x48eb55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0053aff5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x490d40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x490d73
push esi
call fcn.0049f050
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x490d6c
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 0x490df9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x490de2
mov eax, dword [esi + 8]
test eax, eax
je 0x490d97
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 0x490dde
cmp eax, 2
je 0x490de2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x490d8a
cmp eax, 3
je 0x490dbd
cmp eax, 1
jne 0x490d8a
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 0x490d8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x490d8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00490e20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x490e08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00490e20
add esp, 4
pop esi
ret
Function at 0x4adb57
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x546df6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x14]
call fcn.00535925
mov eax, dword [0xa7db40]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x48], eax
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ebx, edi
mov byte [esp + 0x18], 1
mov dword [esi], 0x98cf84
mov dword [esi + 4], edi
mov dword [esi + 8], ecx
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
je 0x4adbb4
push ebx
call dword [0x54b39c]
inc eax
push eax
call fcn.005367dd
add esp, 4
mov dword [esi + 4], eax
push ebx
push eax
call dword [0x54b3a4]
mov ecx, dword [esp + 0x10]
or eax, 0xffffffff
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b8dd4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x4b8f8d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x4b8f06
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x4b8f06
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x4b8eed
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4b8eed
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.004ba040
mov ebp, eax
test ebp, ebp
je 0x4b8ee5
push ebp
mov ecx, esi
call fcn.004bb500
test eax, eax
je 0x4b8ee5
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x4b8ee5
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x4b8ea6
xor eax, eax
jmp 0x4b8eae
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.004bbed0
inc ebx
xor ebp, ebp
jmp 0x4b8e37
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x4b8e10
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.004ba350
test eax, eax
pop ebx
je 0x4b8f8d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.004ba040
mov edi, eax
cmp edi, ebp
je 0x4b8f8d
push edi
mov ecx, esi
call fcn.004bb500
test eax, eax
je 0x4b8f8d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.004ba590
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.004ba600
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.004bbed0
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x4c31f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5480f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x98dfa4
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.00534cde
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.00534cde
mov edi, dword [0x54b6bc]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], 0x98df90
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [0x54b608]
lea ecx, [esp + 0xb0]
push ecx
call dword [0x54b0b0]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004c3d10
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4f3170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xad17c0]
xor edx, edx
cmp eax, edx
jne 0x4f3196
xor eax, eax
mov byte [eax + 0xad16c0], al
inc eax
cmp eax, 0x100
jl 0x4f317e
mov dword [0xad17c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xad16c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4f3227
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4f31fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4f31c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4f32a0
Capabilities:
Encode data using xor

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

Function at 0x4f9c80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54a42e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004fa5a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x991854
call fcn.005367dd
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4f9d13
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005367dd
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4f9d0c
push 0
mov ecx, eax
call fcn.004f0db0
mov dword [esi + 0xc], eax
jmp 0x4f9d15
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f9d15
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x50b0a0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x50b0b0
mov esi, 1
push esi
call fcn.00521ba7
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x50b102
call fcn.005226cd
mov edi, eax
call fcn.0050dc00
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x50b0e6
mov edx, dword [0x9d2b68]
mov dword [0x9d2b64], edx
test al, 0x18
je 0x50b0f7
push esi
push 0x24
push 5
call fcn.0050e450
add esp, 0xc
test edi, edi
je 0x50b11d
push 1
call fcn.005239c7
test byte [esp + 0x14], 0x20
je 0x50b11d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x50c220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x50c314
cmp byte [edx], 0
je 0x50c307
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0050c1a0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0050c1a0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0050c110
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x50c2d1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.0050c150
fmul qword [0x9920f0]
push ecx
fstp qword [esp]
call fcn.005204f8
fadd qword [0x9920e8]
add esp, 8
call fcn.005205c8
mov byte [ebx], al
inc ebx
dec edi
jne 0x50c2a4
lea ecx, [esp + 0x20]
push ecx
call fcn.0050c150
fmul qword [0x9920f0]
push ecx
fstp qword [esp]
call fcn.005204f8
add esp, 8
call fcn.005205c8
cmp esi, ebx
je 0x50c2fd
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x50c2f6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4151e1
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41c108
call fcn.0041599a
push 1
call fcn.00415264
pop ecx
test al, al
jne 0x415098
push 7
call fcn.00415762
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041522f
mov byte [ebp - 0x24], al
mov eax, dword [0x41fc3c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x415091
test eax, eax
jne 0x415102
mov dword [0x41fc3c], ecx
push 0x418358
push 0x418344
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4150e5
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4151db
push 0x418340
push 0x418318
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x41fc3c], 2
jmp 0x415107
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004153d1
pop ecx
call fcn.00415756
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x415137
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415137
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004156eb
call esi
call fcn.0041575c
mov esi, eax
cmp dword [esi], edi
je 0x415155
push esi
call fcn.00415347
pop ecx
test al, al
je 0x415155
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00415878
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.004158ab
test al, al
jne 0x415180
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x415189
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004153ee
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4151db
call fcn.004159df
ret
call fcn.00414f1f
jmp 0x415079

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4053ff
Capabilities:
Parse pe header

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

Function at 0x412470
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4245c8
push 0x4245c0
push str.FlsAlloc
push 0x1f
call fcn.0041232f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4124a4
push dword [ebp + 8]
mov ecx, esi
call dword [0x422188]
call esi
jmp 0x4124aa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4124ee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4245d8
push 0x4245d0
push str.FlsGetValue
push 0x21
call fcn.0041232f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412525
push dword [ebp + 8]
mov ecx, esi
call dword [0x422188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41252d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4245e0
push 0x4245d8
push str.FlsSetValue
push 0x22
call fcn.0041232f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412567
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x422188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x416608
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 0x4166a5
push ebx
push esi
call fcn.004165d1
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.00416565
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x416652
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4166a4
push edi
push eax
call fcn.00413473
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416672
call fcn.004121c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4166a3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416565
add esp, 0x20
test eax, eax
jne 0x416691
push edi
call fcn.004121c2
jmp 0x416699
push ebx
call fcn.004121c2
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 0x4166a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4166b9
pop esi
ret
push ebx
push edi
push esi
call fcn.004165d1
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00413473
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4166e1
push ebx
push esi
push edi
call fcn.00406940
add esp, 0xc
push 0
call fcn.004121c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x416e3b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416956
Function at 0x41e055
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0041dfd1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41e1c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x41e1c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x41e179
jg 0x41e0b1
test eax, eax
je 0x41e16f
push 1
push 0x1000
call fcn.00412165
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41e0d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41e166
push 0x8000
push ebx
call fcn.004100bd
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41e0fd
jg 0x41e0f8
cmp ecx, 0x1000
jb 0x41e0fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00419d29
add esp, 0x10
cmp eax, 0xffffffff
je 0x41e142
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x41e0f8
jl 0x41e129
test ecx, ecx
jne 0x41e0ea
push dword [ebp - 0xc]
push ebx
call fcn.004100bd
push esi
call fcn.004121c2
add esp, 0xc
xor ebx, ebx
jmp 0x41e1d2
cmp byte [edi + 0x24], 0
je 0x41e159
cmp dword [edi + 0x20], 5
jne 0x41e159
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x41e164
mov ebx, dword [edi + 0x18]
jmp 0x41e166
xor ebx, ebx
push esi
call fcn.004121c2
pop ecx
jmp 0x41e1d2
test ecx, ecx
jg 0x41e13b
jl 0x41e179
test eax, eax
jae 0x41e13b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ed54
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x41e199
cmp byte [edi + 0x1c], 0
je 0x41e13b
jmp 0x41e1ca
push ebx
call fcn.0041725f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41e13b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x41e1d2
cmp byte [edi + 0x1c], 0
je 0x41e1cf
mov ebx, dword [edi + 0x18]
jmp 0x41e1d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041ed54
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret