joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478965
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x478a7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x478a7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a5f61
mov esi, eax
test esi, esi
je 0x478a7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x478a7d
mov ecx, esi
call fcn.004788f0
cmp edi, eax
jge 0x478a7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x478a03
mov dword [esp + 0x34], 1
jmp 0x478a5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x478a7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00477e90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47f030
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x500f88]
xor edx, edx
cmp eax, edx
jne 0x47f056
xor eax, eax
mov byte [eax + 0x500e88], al
inc eax
cmp eax, 0x100
jl 0x47f03e
mov dword [0x500f88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x500e88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47f0e7
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 0x47f0ba
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 0x47f088
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x47f0f0
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 0x47f143
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 0x47f12a
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 0x485ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b345e
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.004863e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4c2bbc
call fcn.004a4278
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x485b53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a4278
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x485b4c
push 0
mov ecx, eax
call fcn.0047cc60
mov dword [esi + 0xc], eax
jmp 0x485b55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x485b55
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 0x4a6905
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a693d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a4992
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a496a
jmp 0x4a6949
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a7fff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a8041
call fcn.004ae0d9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a8041
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a8038
xor eax, eax
jmp 0x4a8049
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a804f
pop edi
pop esi
pop ebx
ret 4
Function at 0x4ad7be
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ad7ec
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ad80a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ad724
jmp 0x4ad80a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ad80a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ad724
test edi, edi
mov eax, edi
jne 0x4ad7f4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404230
Capabilities:
Parse pe header

Disassembly:
push ebx
push edi
push esi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x4043ba
nop
test eax, eax
nop
mov eax, dword [0x43f008]
mov ecx, dword [section..data]
imul ecx, eax
imul ecx, dword [0x43f004]
cmp ecx, 0x80000000
jne 0x404271
push eax
push str.solving_addr___d
call fcn.0040137b
add esp, 8
nop
test eax, eax
nop
mov eax, dword [0x43f008]
mov ecx, dword [section..data]
imul ecx, eax
imul ecx, dword [0x43f004]
cmp ecx, 0x80000000
jne 0x4042a1
push eax
push str.solving_addr___d
call fcn.0040137b
add esp, 8
movzx eax, word [edi]
cmp eax, 0x5a4d
jne 0x4043ba
nop
test eax, eax
nop
mov eax, dword [0x43f008]
mov ecx, dword [section..data]
imul ecx, eax
imul ecx, dword [0x43f004]
cmp ecx, 0x80000000
jne 0x4042df
push eax
push str.solving_addr___d
call fcn.0040137b
add esp, 8
mov ebx, dword [edi + 0x3c]
nop
test eax, eax
nop
mov eax, dword [0x43f008]
mov ecx, dword [section..data]
imul ecx, eax
imul ecx, dword [0x43f004]
cmp ecx, 0x80000000
jne 0x404312
push eax
push str.solving_addr___d
call fcn.0040137b
add esp, 8
cmp ebx, 0x400
jg 0x4043ba
nop
test eax, eax
nop
mov eax, dword [0x43f008]
mov ecx, dword [section..data]
imul ecx, eax
imul ecx, dword [0x43f004]
cmp ecx, 0x80000000
jne 0x40434e
push eax
push str.solving_addr___d
call fcn.0040137b
add esp, 8
add edi, ebx
nop
test eax, eax
nop
mov eax, dword [0x43f008]
mov ecx, dword [section..data]
imul ecx, eax
imul ecx, dword [0x43f004]
cmp ecx, 0x80000000
jne 0x404380
push eax
push str.solving_addr___d
call fcn.0040137b
add esp, 8
cmp dword [edi], 0x4550
jne 0x4043ba
nop
test eax, eax
nop
mov eax, dword [0x43f008]
mov ecx, dword [section..data]
imul ecx, eax
imul ecx, dword [0x43f004]
cmp ecx, 0x80000000
jne 0x4043b8
push eax
push str.solving_addr___d
call fcn.0040137b
add esp, 8
mov esi, edi
mov eax, esi
pop esi
pop edi
pop ebx
ret 4
Function at 0x408030
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
call fcn.00409880
test al, al
je 0x408064
push 2
call dword [0x43f01c]
add esp, 4
push ebx
push edi
push esi
push str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0x__n
push eax
call fcn.004078f0
add esp, 0x14
pop esi
pop edi
pop ebx
jmp fcn.00409980

Function at 0x4092a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x4092b1
jmp dword [eax*4 + 0x438e80]
cmp dword [0x43f290], 0
je 0x4093b3
push 0x43f294
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x43f2ac]
test edi, edi
je 0x4093a8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4092fb
mov edi, dword [edi + 8]
test edi, edi
je 0x4093a8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x4092f0
test esi, esi
je 0x4092f0
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x4092f0
cmp dword [0x43f290], 0
jne 0x409330
push 0x43f294
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x43f290], 1
jmp case.default.0x4092b1
call fcn.004070a0
jmp case.default.0x4092b1
cmp dword [0x43f290], 0
je case.default.0x4092b1
push 0x43f294
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x43f2ac]
test edi, edi
je 0x409403
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x409387
mov edi, dword [edi + 8]
test edi, edi
je 0x409403
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x409380
test esi, esi
je 0x409380
mov ecx, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x409380
push 0x43f294
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x43f290]
cmp eax, 1
jne case.default.0x4092b1
mov eax, dword [0x43f2ac]
test eax, eax
je 0x4093e2
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call fcn.0042beda
add esp, 4
mov eax, esi
test esi, esi
jne 0x4093d0
mov dword [0x43f2ac], 0
mov dword [0x43f290], 0
push 0x43f294
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x4092b1
push 0x43f294
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x409530
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x42c004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x409596
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x409596
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x409596
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x409596
mov edx, dword [esp + 0xc]
sub edx, dword [0x42c004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x409586
add esi, 0x28
dec ecx
je 0x409596
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x409580
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x409580
mov eax, esi
pop esi
pop edi
ret
Function at 0x4097d0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
cmp byte [0x440273], 1
jne 0x4097ee
cmp byte [0x440272], 0
jne 0x40980d
jmp 0x409828
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440273], 1
test eax, eax
setne byte [0x440272]
je 0x409828
push 2
call dword [0x43f01c]
add esp, 4
push edi
push esi
push str.libunwind:___unw_init_local_cursor_p__context_p__n
push eax
call fcn.004098c0
add esp, 0x10
mov dword [esi], 0x43906c
mov dword [esi + 4], 0x440268
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 8], xmm0
movups xmmword [esi + 0x18], xmm1
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x38], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x48], xmm0
movups xmmword [esi + 0x58], xmm0
movups xmmword [esi + 0x62], xmm0
mov ecx, esi
push 0
call fcn.0040a4a0
xor eax, eax
pop esi
pop edi
ret

Function at 0x409880
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x440273], 1
jne 0x409894
cmp byte [0x440272], 0
setne al
ret
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x440272]
mov byte [0x440273], 1
ret

Function at 0x4098e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x440273], 1
jne 0x409904
cmp byte [0x440272], 0
jne 0x409923
jmp 0x40993f
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440273], 1
test eax, eax
setne byte [0x440272]
je 0x40993f
push 2
call dword [0x43f01c]
add esp, 4
push ebx
push ebp
push esi
push str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
push eax
call fcn.004098c0
add esp, 0x14
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push ebp
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x409972
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push ebp
call edi
mov dword [ebx], eax
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409980
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp byte [0x440273], 1
jne 0x4099a7
cmp byte [0x440272], 0
jne 0x4099c6
jmp 0x4099e2
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440273], 1
test eax, eax
setne byte [0x440272]
je 0x4099e2
push 2
call dword [0x43f01c]
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_x__n
push eax
call fcn.004098c0
add esp, 0x14
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push ebx
call edi
mov edi, 0xffffe672
test al, al
je 0x409a72
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push ebp
push ebx
call edi
xor edi, edi
cmp ebx, 0xffffffff
jne 0x409a72
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section..00cfg]
mov eax, esp
mov ecx, esi
push eax
call ebx
mov eax, dword [esi]
mov ebx, dword [eax + 0x34]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push 0
call ebx
cmp dword [esp + 0x10], 0
je 0x409a72
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push 0xfffffffffffffffe
call ebx
mov ebx, eax
add ebx, dword [esp + 0x10]
mov eax, dword [esi]
mov ebp, dword [eax + 0x10]
mov ecx, ebp
call dword [section..00cfg]
mov ecx, esi
push ebx
push 0xfffffffffffffffe
call ebp
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x409a80
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x440273], 1
jne 0x409a9a
cmp byte [0x440272], 0
jne 0x409ab9
jmp 0x409ad3
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440273], 1
test eax, eax
setne byte [0x440272]
je 0x409ad3
push 2
call dword [0x43f01c]
add esp, 4
push esi
push str.libunwind:___unw_step_cursor_p__n
push eax
call fcn.004098c0
add esp, 0xc
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0
call edi
pop esi
pop edi
ret

Function at 0x409af0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x440273], 1
jne 0x409b0a
cmp byte [0x440272], 0
jne 0x409b29
jmp 0x409b43
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440273], 1
test eax, eax
setne byte [0x440272]
je 0x409b43
push 2
call dword [0x43f01c]
add esp, 4
push esi
push str.libunwind:___unw_step_stage2_cursor_p__n
push eax
call fcn.004098c0
add esp, 0xc
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 1
call edi
pop esi
pop edi
ret
Function at 0x409b60
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x440273], 1
jne 0x409b7f
cmp byte [0x440272], 0
jne 0x409b9e
jmp 0x409bb9
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440273], 1
test eax, eax
setne byte [0x440272]
je 0x409bb9
push 2
call dword [0x43f01c]
add esp, 4
push ebx
push esi
push str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
push eax
call fcn.004098c0
add esp, 0x10
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push ebx
call edi
xor ecx, ecx
cmp dword [ebx + 4], 0
mov eax, 0xffffe66b
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret

Function at 0x409be0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x440273], 1
jne 0x409bfa
cmp byte [0x440272], 0
jne 0x409c19
jmp 0x409c33
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440273], 1
test eax, eax
setne byte [0x440272]
je 0x409c33
push 2
call dword [0x43f01c]
add esp, 4
push esi
push str.libunwind:___unw_resume_cursor_p__n
push eax
call fcn.004098c0
add esp, 0xc
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
mov eax, 0xffffe674
pop esi
pop edi
ret

Function at 0x409c50
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x440273], 1
jne 0x409c74
cmp byte [0x440272], 0
jne 0x409c93
jmp 0x409caf
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440273], 1
test eax, eax
setne byte [0x440272]
je 0x409caf
push 2
call dword [0x43f01c]
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
push eax
call fcn.004098c0
add esp, 0x14
mov eax, dword [esi]
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push dword [esp + 0x20]
push ebp
push ebx
call edi
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40a150
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x440271], 1
jne 0x40a164
cmp byte [0x440270], 0
setne al
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x440270]
mov byte [0x440271], 1
ret
Function at 0x40d360
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x101c
call fcn.00407604
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push 0x1000
push edx
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x40d4c2
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x40d519
shr ecx, 2
cmp ecx, 2
mov eax, 1
cmovae eax, ecx
mov dword [esp + 0xc], eax
mov bl, 1
mov dword [esp + 0x10], ecx
jmp 0x40d3da
mov edx, dword [esp + 0x14]
inc edx
mov ecx, dword [esp + 0x10]
cmp edx, ecx
setb bl
xor eax, eax
cmp edx, dword [esp + 0xc]
je 0x40d519
mov byte [esp + 3], bl
mov dword [esp + 0x14], edx
mov esi, dword [esp + edx*4 + 0x1c]
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + eax + 0x14]
mov edx, dword [esp + 0x1034]
mov dword [edx], esi
mov dword [esp + 8], esi
movzx esi, word [esi + eax + 6]
test esi, esi
je 0x40d3c0
add eax, dword [esp + 8]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp + 4], 0
xor ebx, ebx
jmp 0x40d426
add ebp, 0x28
dec esi
je 0x40d3c0
mov edi, dword [ebp + 0xc]
add edi, dword [esp + 8]
push 8
push str..text
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x40d460
push 8
push str..eh_frame
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x40d490
test bl, 1
jne 0x40d4af
jmp 0x40d420
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esp + 0x1030]
cmp eax, ecx
movzx eax, bl
mov ebx, eax
mov edx, 1
cmova ebx, edx
cmp edi, ecx
cmova ebx, eax
test bl, 1
jne 0x40d4af
jmp 0x40d420
mov ecx, dword [esp + 0x1034]
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov al, 1
mov dword [esp + 4], eax
test bl, 1
je 0x40d420
mov eax, dword [esp + 4]
and al, 1
je 0x40d420
movzx eax, byte [esp + 3]
jmp 0x40d519
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x440271], 1
jne 0x40d4de
cmp byte [0x440270], 0
jne 0x40d4fd
jmp 0x40d517
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x440271], 1
test eax, eax
setne byte [0x440270]
je 0x40d517
push 2
call dword [0x43f01c]
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call fcn.004098c0
add esp, 0xc
xor eax, eax
and al, 1
add esp, 0x101c
pop esi
pop edi
pop ebx
pop ebp
ret 8