joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d349
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x1006a1fc]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.10020dd0
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.10032391
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.10032391
push 0x1005af1c
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.10032391
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10020dd0
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d3ee
sub ecx, edx
cmp ecx, 6
jbe 0x1001d415
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.10032391
pop ecx
pop ecx
test eax, eax
jne 0x1001d415
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1001d41c
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x1005af13
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.10032391
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.10020850
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001d496
mov ax, word [0x1005af48]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001df6b
add esp, 0x824
ret

Function at 0x10032391
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x100323a0
pop dword [ebp - 0x34]
mov eax, 0x9d78d56c
add eax, 0x728a4e34
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x424a8
push 0
mov eax, 0x9b585d38
sub eax, 0x8b542a7c
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x62bc3c1b
add ecx, 0x9d440b4a
mov ebx, eax
mov edx, 0x10098e00
add edx, dword [ebp - 0x34]
mov edi, 0x95508629
mov esi, dword [edx]
sub dword [ebp - 0x18], 0x40403781
add esi, edi
xor dword [ebp - 0x2c], 0xdea37b77
mov dword [ebx], esi
add dword [ebp - 4], edi
add ebx, 0xc376a6ef
sub ebx, 0xc376a6eb
add edx, 4
loop 0x100323f3
add eax, 0x11067
xor ebx, ebx
add ebx, eax
add eax, 0x9b72d89c
sub eax, 0x9b72d897
mov ecx, 0x419390fa
add ecx, 0xce6c6f06
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10001000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x10003004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateProcessW]
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0x44
xor eax, eax
movlpd qword [ebp - 0x44], xmm0
push eax
push 0x100020c8
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x16], xmm0
movlpd qword [ebp - 0xe], xmm0
mov word [ebp - 6], ax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], ax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x100010cb
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push 0
push str.C:Program_Files__x86_Internet_ExplorerABAAInternet_Exploreriexplore.exe
call ebx
test eax, eax
je 0x100010c1
push 0xffffffffffffffff
push dword [ebp - 0x54]
call edi
push dword [ebp - 0x54]
call esi
push dword [ebp - 0x58]
call esi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x15
idiv ecx
add edx, 0xa
imul eax, edx, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001040
Function at 0x401f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401f8b
cmp byte [esi + ebx - 1], 0xa
je 0x401f5f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4040f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4020d0
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x4048
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
call fcn.00401048
sub esp, eax
mov ebx, ecx
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
mov dword [esp], 0xfffffff5
add ebx, 8
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [ebp - 0x401c], 0
sub esp, 4
mov dword [ebp - 0x402c], eax
mov dword [esp + 0x18], ebx
lea ebx, [ebp - 0x4018]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], ebx
mov dword [esp], 4
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vswprintf]
mov edx, 0xffffffff
lea ecx, [ebp - 0x4020]
mov dword [esp + 4], ebx
test eax, eax
mov dword [esp + 0x10], 0
cmovns edx, eax
mov dword [esp + 0xc], ecx
mov dword [esp], edi
mov dword [esp + 8], edx
mov esi, edx
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
jne 0x4021b5
cmp dword [ebp - 0x402c], edi
lea ecx, [ebp - 0x4020]
je 0x4021d0
lea eax, [esi + esi]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov eax, dword [ebp - 0x401c]
add eax, dword [ebp - 0x4020]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [0x404040]
test eax, eax
jne 0x402192
lea eax, [ebp - 0x401c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0x405660
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_WriteFile]
lea ecx, [ebp - 0x4020]
mov dword [0x404040], 1
sub esp, 0x14
jmp 0x402192
Function at 0x4031c0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x4018f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
mov word [ebp - 4], ax
xor ecx, ecx
mov word [ebp - 8], cx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x18]
cmp edx, 0x10b
jne 0x401948
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
mov ax, word [edx + 6]
mov word [ebp - 8], ax
jmp 0x401982
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
jne 0x40197b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0x18]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x18]
mov ax, word [edx + 6]
mov word [ebp - 8], ax
jmp 0x401982
xor eax, eax
jmp 0x401a16
mov ecx, 0x28
imul edx, ecx, 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + edx + 0x14]
jae 0x40199b
mov eax, dword [ebp + 8]
jmp 0x401a16
xor edx, edx
mov word [ebp - 4], dx
jmp 0x4019af
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
movzx edx, word [ebp - 8]
cmp ecx, edx
jge 0x401a14
movzx eax, word [ebp - 4]
imul ecx, eax, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + ecx + 0xc]
jb 0x401a12
movzx ecx, word [ebp - 4]
imul edx, ecx, 0x28
movzx eax, word [ebp - 4]
imul ecx, eax, 0x28
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + edx + 0xc]
mov eax, dword [ebp - 0xc]
add edx, dword [eax + ecx + 0x10]
cmp dword [ebp + 8], edx
jae 0x401a12
movzx ecx, word [ebp - 4]
imul edx, ecx, 0x28
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax + edx + 0xc]
movzx edx, word [ebp - 4]
imul eax, edx, 0x28
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + eax + 0x14]
mov eax, ecx
jmp 0x401a16
jmp 0x4019a3
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40a950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x1c], 0
push 0x100
lea ecx, [ebp - 0x40]
call fcn.00409710
mov dword [ebp - 0x10], 0
jmp 0x40a97c
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x100
jge 0x40a993
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 0x10]
mov byte [ecx + edx], al
jmp 0x40a973
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 4]
sub eax, dword [edx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
jmp 0x40a9c1
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x40aa33
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax]
add ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
xor edx, edx
div dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx edx, byte [eax + edx]
add ecx, edx
and ecx, 0x800000ff
jns 0x40a9ff
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 8]
mov dl, byte [eax + ecx]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x28]
mov al, byte [eax]
mov byte [ecx + edx], al
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp - 1]
mov byte [ecx + edx], al
jmp 0x40a9b8
mov dword [ebp - 0x18], 0
jmp 0x40aa45
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp + 0x10]
jae 0x40ab04
mov eax, dword [ebp - 0xc]
add eax, 1
and eax, 0x800000ff
jns 0x40aa65
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0xc]
movzx eax, byte [ecx + edx]
add eax, dword [ebp - 0x14]
and eax, 0x800000ff
jns 0x40aa83
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0xc]
mov al, byte [ecx + edx]
mov byte [ebp - 2], al
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [ecx]
mov byte [edx + eax], cl
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 2]
mov byte [edx + eax], cl
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x34]
movzx ecx, byte [eax]
add ecx, edx
and ecx, 0x800000ff
jns 0x40aae5
dec ecx
or ecx, 0xffffff00
inc ecx
mov edx, dword [ebp - 0x40]
movzx eax, byte [edx + ecx]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x18]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
mov byte [eax], dl
jmp 0x40aa3c
lea ecx, [ebp - 0x40]
call fcn.0040b2b0
mov esp, ebp
pop ebp
ret
Function at 0x440aa0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004406a8

Function at 0x444b6f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004443bb

Function at 0x444b7a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004445f6

Function at 0x4459ba
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004457f8

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 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40c470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40c47f
pop dword [ebp - 0x20]
mov eax, 0x40c47f
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x916a392e
sub dword [ebp - 0x30], 0x4317f3e3
mov dword [ebp - 0x2c], 0x40bb43aa
add dword [ebp - 0x2c], 0xf178089b
mov dword [ebp - 0x28], 0x21481bd1
add dword [ebp - 0x28], 0x2b04285d
mov dword [ebp - 0x24], 0xd50a70f8
add dword [ebp - 0x24], 0x2af58f08
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x8c0bd7d
add dword [ebp - 0x30], 0x6bb1abd9
mov dword [ebp - 0x2c], 0x1cb004f5
add dword [ebp - 0x2c], 0x24bc5c80
mov dword [ebp - 0x28], 0xd896baee
add dword [ebp - 0x28], 0x8ad8b17e
mov dword [ebp - 0x24], 0x3bb337a0
sub dword [ebp - 0x24], 0x3bb337a0
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xed1ae600
add eax, 0x13274b24
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3df1b
push 0
call eax
mov ecx, 0xc7a8aca7
sub ecx, 0xc7a8639d
mov edx, eax
mov esi, 0x4e01813e
add esi, 0xb241c2c2
add esi, dword [ebp - 0x20]
mov ebx, 0x48b421d2
sub dword [ebp - 4], ecx
mov edi, dword [esi]
xor edi, ebx
xor dword [ebp - 8], edx
mov dword [edx], edi
add edx, 0xb4bea784
sub edx, 0xb4bea780
add esi, 0x50702b4c
add esi, 0xaf8fd4b8
loop 0x40c591
add eax, 0x116fb
mov ebx, eax
add eax, 0xe2f460c4
sub eax, 0xe2f460bf
mov ecx, 0xd51395b7
sub ecx, 0xd4d395b7
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x40d400
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x40d40b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
movzx eax, byte [esi]
shl eax, 7
sub edx, 1
js 0x40d433
nop dword [eax + eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
imul eax, eax, 0xf4243
xor eax, ecx
sub edx, 1
jns 0x40d420
xor eax, edx
mov ecx, 0xfffffffe
cmp eax, 0xffffffff
pop esi
cmove eax, ecx
ret
Function at 0x416400
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00418cb0
mov eax, dword [0x44b300]
xor eax, esp
mov dword [esp + 0x10050], eax
mov eax, dword [esp + 0x10058]
xor ecx, ecx
push 0x28
push eax
lea eax, [esp + 8]
mov word [esp + 0x58], cx
push eax
mov word [esp + 0xc], cx
call fcn.00414d20
add esp, 0xc
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x41647d
cmp eax, 0x10000
ja 0x41647d
lea eax, [esp + 0x50]
push eax
call fcn.004276fc
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.00418a34
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.00418a34
add esp, 0x10054
ret
Function at 0x416d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
cmp byte [0x44c537], 0
push esi
jne 0x416dac
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x44c2b4], eax
mov esi, dword [eax]
lea ecx, [eax + 4]
mov dword [0x44c2b4], ecx
mov eax, dword [ecx]
add ecx, 4
push eax
push ecx
push 0
mov dword [0x44c2b4], ecx
call fcn.00415410
add esp, 0xc
cmp eax, esi
jne 0x416f11
mov byte [0x44c537], 1
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x436704
push edi
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416de0
test dl, dl
je 0x416ddc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416de0
add eax, 2
add ecx, 2
test dl, dl
jne 0x416dc0
xor eax, eax
jmp 0x416de5
sbb eax, eax
or eax, 1
test eax, eax
je 0x416e5d
cmp byte [0x44c536], 1
je 0x416e5d
mov esi, dword [sym.imp.python37.dll_PyDict_New]
call esi
mov dword [0x44cb70], eax
call esi
mov dword [0x44cb74], eax
call esi
mov dword [0x44cb78], eax
call esi
mov dword [0x44cb7c], eax
call esi
mov dword [0x44cb80], eax
call esi
mov dword [0x44cb84], eax
call esi
mov dword [0x44cb88], eax
call esi
mov edi, dword [sym.imp.python37.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x44cb8c], eax
nop dword [eax + eax]
push esi
call edi
mov dword [esi*4 + 0x44d734], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x416e40
mov byte [0x44c536], 1
mov esi, dword [0x44c2b4]
mov eax, ebx
mov ecx, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x416e87
test dl, dl
je 0x416e83
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x416e87
add eax, 2
add ecx, 2
test dl, dl
jne 0x416e67
xor edx, edx
jmp 0x416e8c
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416e91
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
je 0x416ef5
add esi, eax
mov ecx, ebx
mov eax, esi
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x416ed0
test dl, dl
je 0x416ecc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x416ed0
add ecx, 2
add eax, 2
test dl, dl
jne 0x416eb0
xor edx, edx
jmp 0x416ed5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416ee0
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x416ea6
movzx eax, word [esi]
push eax
lea eax, [esi + 2]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.00413ea0
add esp, 0x10
pop edi
pop ebx
pop esi
ret
push str.Error__corrupted_constants_object
call fcn.00425934
add esp, 4
call fcn.0041d262
int3
Function at 0x418840
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x44b300]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x60]
push 0x28
push eax
lea eax, [esp + 0xc]
mov word [esp + 0xc], cx
push eax
call fcn.00414d20
add esp, 0xc
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
call fcn.00418a34
add esp, 0x54
ret

Function at 0x418910
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x58
mov eax, dword [0x44b300]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [0x44c508]
push ebp
mov ebp, dword [esp + 0x6c]
test eax, eax
jne 0x418954
push 0x436544
call dword [sym.imp.python37.dll_PyImport_ImportModule]
add esp, 4
mov dword [0x44c508], eax
test eax, eax
je 0x418a2e
push esi
push edi
push str.environ
push eax
call dword [sym.imp.python37.dll_PyObject_GetAttrString]
push ebx
mov esi, eax
call dword [sym.imp.python37.dll_PyUnicode_FromString]
add esp, 0xc
mov edi, eax
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x28
push ebx
push eax
call fcn.00414d20
add esp, 0xc
lea eax, [esp + 0x14]
test ebp, ebp
je 0x4189d5
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0xffffffffffffffff
push ebp
call dword [sym.imp.python37.dll_PyUnicode_FromWideChar]
mov ebx, eax
push ebx
push edi
push esi
call dword [sym.imp.python37.dll_PyObject_SetItem]
add esp, 0x14
test eax, eax
je 0x4189c5
push 1
call dword [sym.imp.python37.dll_PyErr_PrintEx]
push 1
call dword [sym.imp.python37.dll_Py_Exit]
add esp, 8
add dword [ebx], 0xffffffff
jne 0x4189f9
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
jmp 0x4189f6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
call dword [sym.imp.python37.dll_PyObject_DelItem]
add esp, 8
test eax, eax
je 0x4189f9
push dword [esp + 0x10]
call fcn.0040ae70
add esp, 4
add dword [edi], 0xffffffff
jne 0x418a0a
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
add dword [esi], 0xffffffff
jne 0x418a1b
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418a34
add esp, 0x58
ret
call fcn.0041d262
int3

Function at 0x41939e
Capabilities:
Parse pe header

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