joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c9e90
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x2044
call fcn.004e6a80
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2040], eax
mov eax, dword [esp + 0x205c]
push ebx
mov ebx, dword [esp + 0x2058]
push ebp
mov ebp, dword [esp + 0x2058]
push esi
mov esi, dword [esp + 0x2058]
push edi
mov edi, dword [esp + 0x2070]
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004e7970
add esp, 0xc
cmp byte [esp + 0x2068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x501
jne 0x4c9f06
mov dword [esp + 0x18], 0x541
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
call fcn.00453750
mov dword [esp + 0x3c], 0x502588
test eax, eax
je 0x4c9f24
mov dword [esp + 0x3c], eax
push esi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], ebx
call fcn.00453550
cmp eax, esi
jne 0x4c9f56
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x1000
call fcn.00497580
lea eax, [esp + 0x5c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov edi, dword [0x501434]
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
mov byte [0x53d32b], bl
call edi
mov ebp, dword [0x5013dc]
mov esi, eax
test esi, esi
jne 0x4c9fb4
call ebp
cmp eax, 0x4c7
jne 0x4c9f9c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c9f95
mov dword [eax], 0
mov al, bl
jmp 0x4ca064
cmp dword [esp + 0x20], 0
je 0x4c9fb4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], 0
call edi
mov esi, eax
mov byte [0x53d32b], 0
test esi, esi
je 0x4ca062
call ebp
cmp eax, 0x483
je 0x4ca062
cmp byte [esp + 0x2068], 0
jne 0x4ca05e
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x4ca011
mov eax, dword [0x579780]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x579740], ecx
mov dword [eax*4 + 0x579700], edx
inc eax
and eax, 0x8000000f
jns 0x4ca00a
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x579780], eax
jmp 0x4ca054
mov edi, dword [0x50115c]
xor esi, esi
lea esp, [esp]
mov eax, dword [esi + 0x579700]
cmp eax, dword [esp + 0x34]
jne 0x4ca048
mov ecx, dword [esi + 0x579740]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x4ca048
mov edx, dword [esi + 0x579740]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x4ca020
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ca05e
mov dword [eax], ecx
mov al, bl
jmp 0x4ca064
xor al, al
mov ecx, dword [esp + 0x2050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6a64
add esp, 0x2044
ret 0x1c
Function at 0x4cbfe0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4ffb8e
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
test byte [0x5819d4], 1
jne 0x4cc039
or dword [0x5819d4], 1
mov dword [esp + 0x14], 0
mov ecx, 0x57d8b0
call fcn.004c9650
push 0x500720
call fcn.004ea7e0
add esp, 4
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esp + 0x1c]
push 1
push esi
mov ecx, 0x57d8b0
call fcn.004ca580
mov bl, byte [esp + 0x20]
push 0
test bl, bl
push 0x57d8b0
sete al
movzx ecx, al
push ecx
push 0
push 0
push esi
push 0
call fcn.004c9e90
test al, al
jne 0x4cc0b8
call dword [0x5013dc]
mov esi, eax
mov eax, dword [0x57d8b8]
cmp eax, 0xffffffff
je 0x4cc091
push eax
call dword [0x5011e4]
mov dword [0x57d8b8], 0xffffffff
mov ecx, 0x5818d2
call fcn.00466bc0
cmp esi, 0x4c7
sete al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8
test bl, bl
je 0x4cc0d5
push 0x57d8b0
push 0x10000
push 0x4cb470
call fcn.004ebcc6
add esp, 0xc
jmp 0x4cc0fa
mov eax, dword [0x57d8b8]
cmp eax, 0xffffffff
je 0x4cc0f0
push eax
call dword [0x5011e4]
mov dword [0x57d8b8], 0xffffffff
mov ecx, 0x5818d2
call fcn.00466bc0
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x4cc110
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4ffbbe
mov eax, dword fs:[0]
push eax
mov eax, 0x1004
call fcn.004e6a80
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov eax, dword [0x519bc0]
xor eax, esp
push eax
lea eax, [esp + 0x100c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x101c]
test esi, esi
je 0x4cc195
push 0x50a804
push esi
call fcn.00453770
test al, al
jne 0x4cc16f
call fcn.004c9b10
test al, al
je 0x4cc195
push 0x30
push 0x65
call fcn.00463430
push eax
push 0x596
call fcn.00463430
push eax
mov eax, dword [0x53f484]
push eax
call dword [0x5015fc]
jmp 0x4cc2c0
cmp byte [0x53d329], 0
jne 0x4cc1d1
push 0
push 0
push 1
push 0
push 0
push esi
push 0
call fcn.004c9e90
test al, al
jne 0x4cc2c0
push esi
push 0x201
call fcn.00463430
push eax
call fcn.004c2a40
add esp, 8
jmp 0x4cc2c0
push 1
call fcn.004b0260
push 1
push 0x800
push 0x551806
push str.Rar_EX
call fcn.004b4450
test al, al
je 0x4cc2c0
push 0x800
push 0x55ac02
mov ecx, 0x54be10
call fcn.0047b060
mov ecx, dword [0x54be14]
mov dword [0x557bb0], ecx
push 0x502a18
mov ecx, 0x55bc04
call fcn.00469920
push 0x800
lea edx, [esp + 0xc]
push edx
push esi
push 0x551806
mov dword [0x556ba0], 4
call fcn.00452d40
push 0
push 0
mov ecx, 0x54be10
call fcn.0047d350
cmp byte [0x53d328], 0
jne 0x4cc2c0
test byte [0x585afc], 1
jne 0x4cc298
or dword [0x585afc], 1
mov dword [esp + 0x1014], 0
mov ecx, 0x5819d8
call fcn.004c9650
push 0x500770
call fcn.004ea7e0
add esp, 4
mov dword [esp + 0x1014], 0xffffffff
push 0
lea eax, [esp + 0xc]
push eax
mov ecx, 0x5819d8
call fcn.004ca580
push 0x5819d8
push 0x10000
push 0x4cb470
call fcn.004ebcc6
add esp, 0xc
mov ecx, dword [esp + 0x100c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004e6a64
add esp, 0x1010
ret 4
Function at 0x4d20f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push 0x5a9a28
mov esi, ecx
call fcn.0043a9e0
mov edx, dword [esp + 8]
mov dword [esi + 4], 0x12345678
mov dword [esi + 8], 0x23456789
mov dword [esi + 0xc], 0x34567890
mov cl, byte [edx]
test cl, cl
je 0x4d216e
lea esp, [esp]
mov eax, dword [esi + 4]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5a9a28]
shr eax, 8
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 0xc]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 8], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x5a9a28]
inc edx
mov dword [esi + 0xc], ecx
mov cl, byte [edx]
test cl, cl
jne 0x4d2120
pop esi
ret 4
Function at 0x4d2560
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp byte [0x554918], 0
je 0x4d25ee
push ebx
mov ebx, dword [esp + 0xc]
imul ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
test ebx, ebx
je 0x4d25ec
push esi
push edi
movsx edx, byte [ebp]
mov edi, dword [ecx + 4]
xor edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x5a9a28]
mov eax, dword [ecx + 0xc]
shr edi, 8
xor edx, edi
mov dword [ecx + 4], edx
movzx edx, dl
add edx, dword [ecx + 8]
mov esi, eax
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 8], edx
shr edx, 0x18
xor edx, eax
shr eax, 8
and edx, 0xff
xor eax, dword [edx*4 + 0x5a9a28]
and esi, 0xfffd
mov dword [ecx + 0xc], eax
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
shr eax, 8
xor byte [ebp], al
inc ebp
sub ebx, 1
jne 0x4d2582
pop edi
pop esi
pop ebp
pop ebx
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push edx
mov edx, dword [esp + 0xc]
push eax
push edx
call fcn.004d15d0
ret 0xc
Function at 0x4e2ee0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x5bb7b4]
mov eax, dword [esp + 4]
mov edx, ecx
shr ecx, 8
xor edx, eax
and edx, 0xff
xor ecx, dword [edx*4 + 0x5aa238]
mov edx, dword [0x5bb7bc]
mov dword [0x5bb7b4], ecx
movzx ecx, cl
add ecx, dword [0x5bb7b8]
imul ecx, ecx, 0x8088405
inc ecx
mov dword [0x5bb7b8], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
shr edx, 8
xor edx, dword [ecx*4 + 0x5aa238]
mov dword [0x5bb7bc], edx
ret 4

Function at 0x4e2f40
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
push 0x5aa238
call fcn.0043a9e0
mov edi, dword [esp + 0xc]
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x5bb7b4], eax
mov dword [0x5bb7b8], edx
mov dword [0x5bb7bc], esi
mov cl, byte [edi]
test cl, cl
je 0x4e2fd0
jmp 0x4e2f80
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5aa238]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x5aa238]
mov dword [0x5bb7b4], eax
mov dword [0x5bb7b8], edx
mov dword [0x5bb7bc], esi
mov cl, byte [edi]
test cl, cl
jne 0x4e2f80
pop edi
pop esi
ret 4
Function at 0x4e3820
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0xdc]
cmp eax, 0xffffffff
je 0x4e3891
cmp eax, 0x40
jbe 0x4e3847
lea edx, [esi + 0x40]
mov al, 1
call fcn.004e3770
mov dword [esi + 0xdc], 0x14
mov eax, dword [esi + 0xdc]
mov ecx, 0x40
sub ecx, eax
push ecx
add eax, esi
push 0
push eax
call fcn.004e7970
add esp, 0xc
xor eax, eax
xor dword [esi + eax*4], 0x36363636
inc eax
cmp eax, 0x10
jb 0x4e3864
push edi
lea edi, [esi + 0x40]
push edi
call fcn.00468510
push 1
push 0x40
push esi
push edi
call fcn.00468550
mov dword [esi + 0xdc], 0xffffffff
pop edi
test ebx, ebx
je 0x4e38a6
mov edx, dword [esp + 8]
push 1
push ebx
push edx
add esi, 0x40
push esi
call fcn.00468550
pop esi
ret 4

Function at 0x4e38b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x28], eax
cmp dword [edi + 0xdc], 0xffffffff
push ebx
push ebp
mov ebp, dword [esp + 0x38]
je 0x4e38d8
push 0
mov eax, edi
xor ebx, ebx
call fcn.004e3820
push esi
lea ebx, [edi + 0x40]
mov al, 1
lea esi, [esp + 0x20]
mov edx, ebx
call fcn.004e3770
xor eax, eax
pop esi
lea esp, [esp]
xor dword [edi + eax*4], 0x6a6a6a6a
inc eax
cmp eax, 0x10
jb 0x4e38f0
push ebx
call fcn.00468510
push 1
push 0x40
push edi
push ebx
call fcn.00468550
push 1
push 0x14
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00468550
push 1
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.00468610
xor eax, eax
lea esp, [esp]
mov edx, eax
and edx, 3
mov ecx, 3
sub ecx, edx
add ecx, ecx
mov edx, eax
shr edx, 2
mov edx, dword [esp + edx*4 + 8]
add ecx, ecx
add ecx, ecx
shr edx, cl
inc eax
mov byte [esp + eax + 0x1b], dl
cmp eax, 0x14
jb 0x4e3930
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x4e396e
push eax
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.004e7600
add esp, 0xc
mov ecx, dword [esp + 0x30]
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6a64
add esp, 0x2c
ret 8
Function at 0x4e3990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x2e8], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push pe_nt_image_headers32
mov esi, ecx
lea ecx, [esp + 0x10c]
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], eax
call fcn.004e7970
mov edi, dword [ebp + 8]
add esp, 0xc
push esi
lea esi, [esp + 0x10c]
call fcn.004e37b0
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, 0x38
lea edi, [esp + 0x1ec]
lea eax, [esp + 0x1ec]
rep movsd dword es:[edi], dword [esi]
call fcn.004e3820
mov edx, dword [ebp + 0x18]
dec edx
mov eax, 0xcccccccd
mul edx
shr edx, 4
add edx, 1
mov dword [esp + 0x20], edx
je 0x4e3b93
mov ebx, 1
lea eax, [esp + 0x2cc]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x2cc], eax
mov dword [esp + 0x2d0], eax
mov dword [esp + 0x2d4], eax
mov dword [esp + 0x2d8], eax
mov dword [esp + 0x2dc], eax
mov eax, ebx
shr eax, 8
mov ecx, 0x38
lea esi, [esp + 0x1e8]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
mov byte [esp + 0x2e2], al
mov eax, dword [ebp + 0x10]
shr ecx, 0x18
mov byte [esp + 0x2e1], dl
mov byte [esp + 0x2e0], cl
mov byte [esp + 0x2e3], bl
mov edx, 4
test eax, eax
jbe 0x4e3b54
mov dword [esp + 0x18], eax
lea ebx, [ebx]
lea ecx, [esp + 0x2e0]
push ecx
lea eax, [esp + 0x2c]
mov ebx, edx
call fcn.004e3820
push 0x14
lea edx, [esp + 0x2e4]
push edx
lea edi, [esp + 0x30]
call fcn.004e38b0
xor edx, edx
jmp 0x4e3ae0
movzx eax, byte [esp + edx + 0x2e0]
xor byte [esp + edx + 0x2cc], al
movzx ecx, byte [esp + edx + 0x2e1]
movzx eax, byte [esp + edx + 0x2e2]
xor byte [esp + edx + 0x2cd], cl
xor byte [esp + edx + 0x2ce], al
movzx ecx, byte [esp + edx + 0x2e3]
movzx eax, byte [esp + edx + 0x2e4]
xor byte [esp + edx + 0x2cf], cl
xor byte [esp + edx + 0x2d0], al
add edx, 5
cmp edx, 0x14
jb 0x4e3ae0
sub dword [esp + 0x18], 1
mov ecx, 0x38
lea esi, [esp + 0x108]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
jne 0x4e3ab0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, dword [ebp + 0x18]
jae 0x4e3b74
mov edx, dword [esp + 0x10]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x24]
mov byte [eax + esi], dl
inc ecx
inc eax
cmp ecx, 0x14
jb 0x4e3b5a
mov eax, 0x14
add dword [esp + 0x14], eax
sub dword [esp + 0x10], eax
inc ebx
lea eax, [ebx - 1]
mov dword [esp + 0x1c], ebx
cmp eax, dword [esp + 0x20]
jb 0x4e3a34
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e6a64
mov esp, ebp
pop ebp
ret 0x14
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x30d32821
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3a8b24ab
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40abd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x46e81c], eax
pop edi
pop esi
pop ebp
ret

Function at 0x40ac70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x43e100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x38], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + ecx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
xor edx, edx
mov word [ebp - 0x20], dx
mov dword [ebp - 0x24], 0
jmp 0x40ace2
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x3c]
jae 0x40ad5e
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403b60
push 0x14d
lea edx, [ebp - 0x1c]
push edx
call fcn.0040b250
add esp, 8
cmp eax, dword [ebp + 0xc]
jne 0x40ad48
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov edx, dword [ebp - 0x24]
mov ax, word [ecx + edx*2]
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
movzx eax, word [ebp - 0x20]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40ad5e
mov edx, dword [ebp - 0x2c]
add edx, 4
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x1c]
call fcn.00405300
jmp 0x40acd9
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411a06
mov esp, ebp
pop ebp
ret
Function at 0x412051
Capabilities:
Parse pe header

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

Function at 0x41ebcc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4333c8
push 0x4333c0
push str.FlsAlloc
push 0x1e
call fcn.0041ea39
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ec00
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f194]
call esi
jmp 0x41ec06
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ec4a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4333d8
push 0x4333d0
push str.FlsGetValue
push 0x20
call fcn.0041ea39
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ec81
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x421768
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042140a

Function at 0x421773
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00421599
Function at 0x4229ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004123f0
mov eax, dword [0x43e100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00420161
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4229ef
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x422b4b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042dbf0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4407e0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00422dd3
mov ecx, dword [esi*4 + 0x4407e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x422b44
cmp eax, dword [edi + ecx + 0x24]
jne 0x422b44
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422b44
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422dd3
add esp, 0x14
test edx, edx
jl 0x422b44
jg 0x422aba
test eax, eax
jb 0x422b44
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422b44
jl 0x422ad4
cmp dword [ebp - 0x1008], eax
ja 0x422b44
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x422af2
test ebx, ebx
je 0x422b2b
cmp ecx, edi
jae 0x422b2b
mov al, byte [ecx]
cmp al, 0xd
jne 0x422b0c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x422b18
cmp byte [ecx + 1], 0xa
jne 0x422b18
inc ecx
jmp 0x422b18
movzx eax, al
movsx eax, byte [eax + 0x43ea40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x422af2
cmp edx, ebx
jne 0x422af2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422b49
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00411a06
leave
ret
Function at 0x42610d
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 0x4261aa
push ebx
push esi
call fcn.004260d6
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.00424d5b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x426157
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4261a9
push edi
push eax
call fcn.0041f1ff
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x426177
call fcn.0041e3fb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4261a8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00424d5b
add esp, 0x20
test eax, eax
jne 0x426196
push edi
call fcn.0041e3fb
jmp 0x42619e
push ebx
call fcn.0041e3fb
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 0x42acf6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4407e0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42ad36
cmp byte [ebx], 0xa
jne 0x42ad36
or byte [eax + edi + 0x28], 4
jmp 0x42ad3b
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42ae39
mov al, byte [edx]
cmp al, 0x1a
je 0x42ae1b
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42ad6a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42ad8f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x42ad99
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x42ad4c
jmp 0x42ae39
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ae16
cmp dword [ebp - 0xc], 0
je 0x42ae16
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4407e0]
test byte [eax + edi + 0x28], 0x48
je 0x42adf0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42addb
mov byte [esi], dl
jmp 0x42adec
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4407e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42ae39
cmp byte [ebp - 1], 0xa
jne 0x42adff
cmp esi, ebx
jne 0x42adff
mov byte [esi], 0xa
jmp 0x42ae38
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00422df1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42ae39
mov byte [esi], 0xd
jmp 0x42ae38
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4407e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42ae35
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42ae39
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret