joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd008
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bd1ac
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4c3580]
mov edx, 0x4bd1c0
call fcn.00405364
je 0x4bd06c
lea eax, [ebp - 0x28]
mov edx, dword [0x4c3580]
call fcn.004057ec
mov eax, dword [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, 0x4bd1cc
call fcn.004821b0
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00405928
jne 0x4bd151
mov byte [ebp - 0x23], 0xf1
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x300]
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], 0x82
mov byte [ebp - 0x20], 0x15
mov al, byte [ebp - 8]
mov byte [ebp - 0x1f], al
xor eax, eax
mov edx, dword [ebp - 8]
lea edx, [edx + edx*4]
add edx, eax
add edx, edx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edx*8 + 0x6f8]
mov edx, eax
shl edx, 2
add edx, 5
mov bl, byte [ecx + 0xc]
mov byte [ebp + edx - 0x23], bl
mov bl, byte [ecx]
mov byte [ebp + edx - 0x22], bl
mov bl, byte [ecx + 4]
mov byte [ebp + edx - 0x21], bl
mov cl, byte [ecx + 8]
mov byte [ebp + edx - 0x20], cl
inc eax
cmp eax, 5
jne 0x4bd08c
mov byte [ebp - 0xa], 0
mov eax, 0x18
lea edx, [ebp - 0x22]
mov cl, byte [edx]
xor byte [ebp - 0xa], cl
inc edx
dec eax
jne 0x4bd0d5
mov byte [ebp - 9], 0xf2
mov eax, dword [0x4c3578]
mov edx, dword [eax + 0x304]
mov eax, dword [0x4c3578]
call fcn.004bba34
lea edx, [ebp - 0x23]
mov ecx, 0x1a
mov eax, dword [0x4c3578]
call fcn.004bbb10
mov edx, 6
mov eax, dword [0x4c3578]
call fcn.004bbc9c
mov eax, dword [0x4c3578]
call fcn.004bbb04
push 0xc8
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4c10a8]
mov eax, dword [eax]
call fcn.0047f668
mov edx, 0x4c3580
mov eax, dword [0x4c3578]
call fcn.004bbf0c
mov eax, dword [0x4c3578]
call fcn.004bc240
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xa
jne 0x4bd02d
mov eax, dword [0x4c3580]
mov edx, 0x4bd1c0
call fcn.00405364
jne 0x4bd191
mov eax, dword [0x4c0f7c]
cmp byte [eax], 3
je 0x4bd191
mov eax, dword [0x4c1160]
mov eax, dword [eax]
call fcn.004b55e0
mov eax, dword [0x4c1160]
mov eax, dword [eax]
call fcn.004b4f80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd1b3
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004056b8
ret

Function at 0x4be518
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, 0x4c3578
mov esi, esp
mov byte [esi], 0xf1
mov al, byte [eax + 0x300]
mov byte [esi + 1], al
mov byte [esi + 2], 0x90
mov byte [esi + 3], 0
mov byte [esi + 4], 0
mov edx, 3
lea eax, [esi + 1]
mov cl, byte [eax]
xor byte [esi + 4], cl
inc eax
dec edx
jne 0x4be544
mov byte [esi + 5], 0xf2
mov eax, dword [ebx]
mov edx, dword [eax + 0x304]
mov eax, dword [ebx]
call fcn.004bba34
mov edx, esi
mov ecx, 5
mov eax, dword [ebx]
call fcn.004bbb10
mov edx, 0x14
mov eax, dword [ebx]
call fcn.004bbc9c
mov eax, dword [ebx]
call fcn.004bbb04
mov edx, 0x4c3580
mov eax, dword [ebx]
call fcn.004bbf0c
mov eax, dword [ebx]
call fcn.004bc240
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x2f5c41f6
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x34d638a3
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x40fc30
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413c48
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x41d008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x41ec42
call fcn.00412f13
mov eax, dword [esi]
test eax, eax
je 0x40fc7d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0040dee0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x40fca6
add eax, 8
jmp 0x40fca8
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x40fcb8
cmp dword [edi + 0x14], 8
jb 0x40fcba
mov edi, dword [edi]
jmp 0x40fcba
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x40fcdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fcdb
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040e020
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411cf3
mov esp, ebp
pop ebp
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x79d7e0
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79d7e6
pop ebp
sub ebp, 6
sub ebp, 0x39d7e0
jmp 0x79d844
jmp 0x79d84d
mov eax, 0x39d7e0
add eax, ebp
add eax, 0x93
mov ecx, 0x620
mov edx, 0xf85e5cd8
xor byte [eax], dl
inc eax
dec ecx
jne 0x79d864
jmp 0x79d877
mov dl, 0x98
mov al, 0xd8
enter 0xffffffffffffd8d8, 0xffffffffffffffb0
fcom dword [esp + esi*8]
fsubr st(3)
sbb byte [eax + 0x781c4d27], cl
call 0x15cd6167
push ebx
push ecx
in al, 0xd8
fcomp st(0)
pop ecx
sbb dword [eax], esp
fcomp st(0)
fcomp st(3)
adc eax, 0xd8d8dc60
fsub dword [edx - 0x10]
fcomp st(0)
fsubr dword [edi]
fcomp st(0)
das
cmp bl, bl
adc byte [ebx + 0x59], dl
aam 0xd8
fcomp st(0)
fistp dword [0xedbab088]
rcr eax, 1
mov al, 0xa3
jp 0x79d8a5
fcomp st(1)
hlt
Function at 0x4014e0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x401508
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x401516
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x40152f
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x40153d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x401556
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x401564
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40157d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40158b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x4015d2
add dword [esp], 5
retf

Function at 0x4016a0
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x817148
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4017c9
cmp dword fs:[0xc0], eax
je 0x4016cb
mov dword [0x817144], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x81702c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x817030], eax
movzx edx, word [esi + 0xac]
mov dword [0x817034], edx
mov eax, dword [esi + 0xb0]
mov dword [0x817038], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40172b
push 0x7f
push eax
push 0x81703c
call fcn.00403dc0
mov edx, dword [0x817034]
add esp, 0xc
jmp 0x401733
xor eax, eax
mov word [0x81703c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x81713c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x81713e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x817140], ax
mov ecx, eax
mov byte [0x817142], 0
cmp byte [0x7ffe0268], 0
je 0x40177a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x817142], bl
cmp ebx, 1
pop ebx
jne 0x401794
and ecx, 0xffef
mov word [0x817140], cx
test edx, edx
jne 0x4017c9
call fcn.004016a0
cmp dword [0x81702c], 6
ja 0x4017c9
jb 0x4017b1
cmp dword [0x817030], 4
jae 0x4017c9
call fcn.004016a0
cmp dword [0x81702c], 0xa
jae 0x4017c9
mov dword [0x817034], 1
ret
Function at 0x4017d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x8180ec]
sub esp, 0x11c
test eax, eax
jne 0x4018ce
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00403e20
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x401820
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x401830
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41c104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x401865
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00403540
pop edi
pop esi
pop ebx
test eax, eax
je 0x4018c9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4018c9
mov dword [0x8180ec], eax
add esp, 0x11c
ret
mov eax, dword [0x8180ec]
add esp, 0x11c
ret
Function at 0x402990
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x817008]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x402b3d
cmp dword [0x81700c], 0
jne 0x402b29
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00403e20
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x4029e0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41c0d4]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x4029f0
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41c0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402a25
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00403e20
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402a84
sub edx, esi
sar edx, 1
je 0x402b3d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402aa0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x402b3d
xor eax, eax
push ebx
test edx, edx
je 0x402ad8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402ad8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402ac1
xor eax, eax
test edx, edx
je 0x402af2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402af2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402ae0
xor eax, eax
test edx, edx
je 0x402b0f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x402b0f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402b00
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x817008]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x403540
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40359b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403560
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40357c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00403dc0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4035bd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40362f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40362f
test esi, esi
je 0x40362f
cmp word [esi + 0x24], 2
jbe 0x403629
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x403629
cmp dword [esi + 0x18], 0
je 0x403629
test ebp, ebp
je 0x4035e5
cmp ebp, eax
jne 0x403629
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00403dc0
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x40360a
cmp edx, dword [esi + 0x18]
jne 0x403629
cmp dword [esp + 0x14], eax
je 0x40363c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00403fd0
add esp, 8
test eax, eax
je 0x40363c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4035c3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret
Function at 0x403e50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x403e9b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x403e8b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x403e71
jmp 0x403e90
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x403eeb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x403eb0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403eb0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x403ecc
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00403dc0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x403f0d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x403f80
mov esi, dword [ebx]
cmp esi, ebx
je 0x403f80
test esi, esi
je 0x403f80
cmp word [esi + 0x24], 2
jbe 0x403f7a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x403f7a
cmp dword [esi + 0x18], 0
je 0x403f7a
test ebp, ebp
je 0x403f35
cmp ebp, eax
jne 0x403f7a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00403dc0
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403f5a
cmp eax, dword [esi + 0x18]
jne 0x403f7a
cmp dword [esp + 0x10], 0
je 0x403f8d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.00403fd0
add esp, 8
test eax, eax
je 0x403f8d
mov esi, dword [esi]
cmp esi, ebx
jne 0x403f13
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x41bd32
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x4165f3
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push 0x1000
push 0x4037b4
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov ecx, dword [0x431004]
sub ecx, edi
cmp ecx, 0x1000
jbe 0x416619
mov ecx, 0x1000
push 0x4067b4
push ecx
push edi
push 0x4037b4
push esi
push str.Environment
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
add edi, eax
cmp edi, dword [0x431004]
jae 0x416a37
ret

Function at 0x41671a
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push edi
push ecx
add ecx, dword [0x431527]
push 2
push ecx
push dword [0x4015fc]
call dword [sym.imp.KERNEL32.DLL_GlobalReAlloc]
or eax, eax
je 0x416a37
mov dword [0x4015fc], eax
push dword [0x4015fc]
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
add eax, dword [0x431527]
lea edi, [eax - 1]
pop ecx
add dword [0x431527], ecx
rep movsb byte es:[edi], byte [esi]
xor al, al
stosb byte es:[edi], al
push dword [0x4015fc]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
pop edi
ret

Function at 0x417157
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov edi, dword [0x43102c]
call fcn.00417090
mov esi, dword [0x431018]
call fcn.00416b9b
cmp edi, dword [0x43100c]
jae 0x416a37
mov eax, edi
sub eax, ebx
dec eax
mov dword [ebx - 0x34], eax
mov eax, edi
sub eax, ebx
mov dword [ebx - 0x2c], eax
add eax, 0x40
mov dword [ebx - 0x20], eax
call fcn.004170b1
sub esi, dword [section..bss]
mov dword [ebx - 0x1c], esi
mov edx, dword [0x431020]
call fcn.00416676
jb 0x416a55
mov edx, dword [0x43102c]
mov ecx, dword [edx + 0x14]
add ecx, 0x40
call fcn.004166a5
jb 0x416a55
mov edx, dword [section..bss]
mov ecx, esi
call fcn.004166a5
jb 0x416a55
call fcn.004166db
ret
Function at 0x417454
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push 0x42ffb4
jmp fcn.00416c5c
lea esi, [edi - 1]
push ecx
push esi
mov dword [0x431060], 0
jmp 0x4182ba
pop esi
pop ecx
ret
push dword [0x43102c]
push dword [0x43105c]
mov dword [0x43105c], 0
push dword [0x4310a8]
push dword [edx + 4]
mov dword [edx + 4], 1
push edx
mov ebx, esi
mov esi, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [0x43104c], eax
mov dword [0x4310a8], 0
xor ebp, ebp
mov al, byte [esi]
or al, al
je 0x418401
cmp al, 0x7b
je 0x418401
inc esi
cmp al, 0x5b
jne 0x41831a
mov ebp, esi
inc esi
inc dword [0x4310a8]
call fcn.00418352
lodsb al, byte [esi]
cmp al, 0x2c
je 0x418336
cmp al, 0x5d
je 0x41833e
cmp al, 0x26
je 0x418401
dec esi
jmp 0x418401
cmp byte [ebx], 0x2c
jne 0x4182fa
inc ebx
jmp 0x4182fa
cmp byte [ebx], 0x2c
jne 0x418401
inc ebx
inc dword [0x4310a8]
mov esi, ebp
jmp 0x4182fa
cmp byte [ebx], 0
jne 0x416aa7
mov eax, dword [esp + 4]
dec eax
call fcn.00418900
pop edx
pop dword [edx + 4]
pop dword [0x4310a8]
pop dword [0x43105c]
pop dword [0x43102c]
jmp 0x4179f6

Function at 0x417468
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push dword [0x431004]
push esi
mov al, 2
xor edx, edx
call fcn.00416701
push eax
xor al, al
xor edx, edx
call fcn.00416701
pop ecx
mov edx, dword [0x431004]
dec edx
mov byte [edx], 0x1a
sub edx, ecx
jb 0x416a37
mov esi, edx
cmp edx, edi
jbe 0x416a37
mov dword [0x431004], edx
call fcn.004166bb
call fcn.004166db
pop edx
xor ecx, ecx
mov ebx, esi
inc ecx
mov dword [0x431048], edi
mov eax, edx
stosd dword es:[edi], eax
mov eax, ecx
stosd dword es:[edi], eax
mov eax, esi
sub eax, ebx
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
push ebx
push edx
call fcn.004174eb
call fcn.00417780
pop edx
pop ebx
cmp byte [esi - 1], 0
je 0x4174e3
cmp byte [esi - 1], 0x1a
jne 0x4174b4
pop dword [0x431004]
clc
ret
Function at 0x4174eb
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push 0x43018f
jmp fcn.00416c5c
push 0x4301de
jmp fcn.00416c5c
push 0x43021d
jmp fcn.00416c5c
push ecx
test byte [0x431195], 0xf
je 0x4174fb
mov ax, 0x3b
stosw word es:[edi], ax
cmp edi, dword [0x431004]
jae 0x416a37
lodsb al, byte [esi]
cmp al, 0x20
je 0x4174fb
cmp al, 9
je 0x4174fb
mov ah, al
mov ebx, 0x43119b
xlatb
or al, al
je 0x41755d
cmp ah, 0x27
je 0x4175b3
cmp ah, 0x22
je 0x4175b3
mov byte [edi], 0x1a
scasw ax, word es:[edi]
xchg ah, al
stosb byte es:[edi], al
mov ebx, 0x43119b
xor ecx, ecx
lodsb al, byte [esi]
stosb byte es:[edi], al
xlatb
or al, al
loopne 0x41753d
neg ecx
cmp ecx, 0xff
ja 0x416bfc
mov ebx, edi
sub ebx, ecx
mov byte [ebx - 2], cl
dec edi
mov ah, byte [esi - 1]
xchg ah, al
cmp al, 0x20
jb 0x417574
je 0x4174fb
cmp al, 0x3b
je 0x417702
cmp al, 0x5c
je 0x4175e2
stosb byte es:[edi], al
jmp 0x4174fb
cmp al, 0x1a
je 0x41771b
cmp al, 0xd
je 0x4175a4
cmp al, 0xa
je 0x417595
cmp al, 9
je 0x4174fb
or al, al
jne 0x417565
jmp 0x41771b
lodsb al, byte [esi]
cmp al, 0xd
je 0x41771b
dec esi
jmp 0x41771b
lodsb al, byte [esi]
cmp al, 0xa
je 0x41771b
dec esi
jmp 0x41771b
mov al, 0x22
stosb byte es:[edi], al
scasd eax, dword es:[edi]
mov ebx, edi
lodsb al, byte [esi]
stosb byte es:[edi], al
cmp al, 0xa
je 0x41763a
cmp al, 0xd
je 0x41763a
or al, al
je 0x41763a
cmp al, 0x1a
je 0x41763a
cmp al, ah
jne 0x4175b9
lodsb al, byte [esi]
cmp al, ah
je 0x4175b9
dec esi
dec edi
mov eax, edi
sub eax, ebx
mov dword [ebx - 4], eax
jmp 0x4174fb
mov byte [edi], 0
lodsb al, byte [esi]
cmp al, 0x20
je 0x4176b8
cmp al, 9
je 0x4176b8
cmp al, 0x1a
je 0x41771b
or al, al
je 0x41771b
cmp al, 0xa
je 0x4176ec
cmp al, 0xd
je 0x4176f4
cmp al, 0x3b
je 0x4176d9
mov al, 0x1a
stosb byte es:[edi], al
mov ecx, edi
mov ax, 0x5c01
stosw word es:[edi], ax
dec esi
lodsb al, byte [esi]
cmp al, 0x5c
jne 0x417643
stosb byte es:[edi], al
inc byte [ecx]
je 0x416bfc
jmp 0x41762a
mov byte [ebx - 5], 0
jmp 0x416c18
cmp al, 0x1a
je 0x416c2d
or al, al
je 0x416c2d
cmp al, 0xa
je 0x416c2d
cmp al, 0xd
je 0x416c2d
cmp al, 0x20
je 0x416c2d
cmp al, 9
je 0x416c2d
cmp al, 0x22
je 0x416c2d
cmp al, 0x27
je 0x416c2d
cmp al, 0x3b
je 0x416c2d
mov ah, al
mov ebx, 0x43119b
xlatb
or al, al
je 0x4176ae
mov al, ah
stosb byte es:[edi], al
xlatb
or al, al
je 0x417559
inc byte [ecx]
je 0x416bfc
lodsb al, byte [esi]
jmp 0x417699
mov al, ah
stosb byte es:[edi], al
inc byte [ecx]
jmp 0x4174fb
lodsb al, byte [esi]
cmp al, 0x20
je 0x4176b8
cmp al, 9
je 0x4176b8
cmp al, 0x1a
je 0x41771b
or al, al
je 0x41771b
cmp al, 0xa
je 0x4176ec
cmp al, 0xd
je 0x4176f4
cmp al, 0x3b
jne 0x416c2d
lodsb al, byte [esi]
cmp al, 0xa
je 0x4176ec
cmp al, 0xd
je 0x4176f4
or al, al
je 0x4176fa
cmp al, 0x1a
jne 0x4176d9
jmp 0x41771b
lodsb al, byte [esi]
cmp al, 0xd
je 0x4176fa
dec esi
jmp 0x4176fa
lodsb al, byte [esi]
cmp al, 0xa
je 0x4176fa
dec esi
inc dword [esp]
jmp 0x4174fb
lodsb al, byte [esi]
cmp al, 0xa
je 0x417595
cmp al, 0xd
je 0x4175a4
or al, al
je 0x41771b
cmp al, 0x1a
jne 0x417702
xor al, al
stosb byte es:[edi], al
pop ecx
ret