joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d230
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x48dbac]
mov ecx, 0x2b497bc1
sub ecx, eax
xor ecx, 0xa945c696
cmp ecx, 0xf47b9037
jl 0x41d265
mov eax, dword [0x48b41c]
inc eax
mov dword [0x48b41c], eax
imul eax, eax, 0x5c2f9060
add eax, 0x1d427aef
mov dword [0x489ad0], eax
push ebx
push edi
push esi
mov ax, word [0x491772]
add eax, 0x7ea1
mov word [0x491772], ax
cmp dword [0x492210], 0
jne 0x41d2b2
mov eax, dword [0x48bf38]
not eax
mov ecx, dword [0x48882c]
imul ecx, eax
and dword [0x489b20], ecx
call fcn.00412d34
mov dword [0x492210], eax
mov eax, dword [0x487094]
imul eax, eax, 0x666773c7
mov dword [0x487094], eax
mov ebx, dword [esp + 0x10]
or dword [0x48b418], 0x6ee33403
push 3
push 0x48f0
call fcn.00422ac4
add esp, 8
mov edi, eax
mov eax, dword [0x48ade0]
sar eax, 4
add eax, 0x105a12bd
and eax, 0xaa04d0b3
cmp eax, 0xef1d5bfe
jg 0x41d2fa
mov eax, dword [0x489054]
imul eax, eax, 0x8f908a12
mov dword [0x489054], eax
push edi
push ebx
call fcn.0043e036
add esp, 8
mov esi, eax
mov ax, word [0x48f31e]
add eax, 0x152
mov word [0x48f31e], ax
push edi
push 3
call fcn.004228ac
add esp, 8
or dword [0x489230], 0xb38c6889
test esi, esi
je 0x41d342
mov ax, word [0x48e398]
cwde
add dword [0x4874d4], eax
jmp 0x41d437
mov eax, dword [0x489a24]
and eax, 0x607a4441
cmp eax, 0x1cbf3e1d
jb 0x41d376
mov eax, dword [0x48c488]
lea ecx, [eax - 1]
mov dword [0x48c488], ecx
or eax, 0x7516
mov cx, word [0x48e536]
sub ecx, eax
mov word [0x48e536], cx
push 0x418
call dword [0x486ea8]
and dword [0x489b10], 0x4f492d48
push 3
push 0x48f0
call fcn.00422ac4
add esp, 8
mov edi, eax
mov eax, dword [0x48bac8]
mov ecx, dword [0x48777c]
imul ecx, eax
mov dword [0x48777c], ecx
push edi
push ebx
call fcn.0043e036
add esp, 8
mov esi, eax
mov eax, dword [0x488804]
lea ecx, [eax - 1]
mov dword [0x488804], ecx
add eax, 0x2f35575f
cmp eax, 0x8a2e5e10
jg 0x41d3ec
mov eax, dword [0x48d200]
lea ecx, [eax - 1]
mov dword [0x48d200], ecx
and dword [0x489e00], eax
jmp 0x41d412
mov eax, dword [0x48d3d8]
add eax, 0x62ccdcdd
cmp eax, 0xe7bfbffe
jg 0x41d412
mov eax, dword [0x4871f4]
dec eax
mov dword [0x4871f4], eax
or eax, 0xf598b208
mov dword [0x489398], eax
push edi
push 3
call fcn.004228ac
add esp, 8
mov word [0x48e420], 0x74f8
mov ax, word [0x48e398]
cwde
add dword [0x4874d4], eax
test esi, esi
je 0x41d487
mov eax, dword [0x48bfe0]
imul eax, eax, 0x9200200
mov dword [0x48bfe0], eax
push esi
push 1
push 4
push 0x492210
call fcn.0043e3df
add esp, 0x10
mov eax, dword [0x48cd1c]
lea eax, [eax*8 + 0x3eaa2fe]
or eax, 0xfc3830f1
mov dword [0x48b314], eax
push esi
call fcn.0043e4c5
add esp, 4
mov eax, dword [0x48c7d0]
xor eax, 0xbb0c3aa6
mov dword [0x488454], eax
mov eax, dword [0x48b59c]
shl eax, 5
or eax, 0x4bc4
mov cx, word [0x491070]
imul ecx, eax
mov word [0x491070], cx
pop esi
pop edi
pop ebx
ret
Function at 0x41d668
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov dword [0x48cb04], 0x4ecc258
call fcn.004134bc
test al, al
jne 0x41d7d2
mov dword [0x48c7e4], 0x7b37cfff
add dword [0x48ae8c], 0x4c7da553
lea ecx, [esp]
call fcn.0042c4f2
mov word [0x4915fc], 0x6554
mov word [0x48fe08], 0x808
mov ecx, esi
call fcn.0042ecd0
mov edi, eax
mov ecx, esi
call fcn.00428146
cmp edi, eax
je 0x41d75f
lea ebx, [esp]
mov eax, dword [0x48c7f4]
mov eax, dword [0x48d0d8]
lea ecx, [eax - 1]
mov dword [0x48d0d8], ecx
mov dword [0x48a4c8], eax
mov ebp, dword [0x486df8]
mov ecx, edi
call fcn.00428876
push eax
call ebp
test eax, eax
je 0x41d743
mov ax, word [0x490b24]
and eax, 0xe73a
mov word [0x490b24], ax
mov ecx, ebx
push edi
call fcn.00415d14
mov eax, dword [0x48c5b8]
cmp eax, 0x2000344a
jne 0x41d743
mov eax, dword [0x48be5c]
and eax, 0xc
shl eax, 8
or eax, 0x71eb
mov cx, word [0x491018]
imul ecx, eax
mov word [0x491018], cx
add dword [0x489e68], 0x50084690
add edi, 0x14
mov ecx, esi
call fcn.00428146
cmp edi, eax
jne 0x41d6d1
mov ax, word [0x48f468]
add eax, 0xfffff67c
mov word [0x48f468], ax
lea ebx, [esp]
mov ecx, ebx
call fcn.00413586
mov edi, eax
mov ecx, ebx
call fcn.00424538
cmp edi, eax
je 0x41d7ba
lea ebx, [esp]
mov eax, dword [0x487f98]
xor eax, 0x730a
mov word [0x490374], ax
mov ecx, esi
push edi
call fcn.0042282e
and dword [0x48db48], 0x4807020d
add edi, 0x14
mov ecx, ebx
call fcn.00424538
cmp edi, eax
jne 0x41d78a
mov eax, dword [0x48dae8]
imul eax, eax, 0x3ea18810
mov dword [0x48dae8], eax
lea ecx, [esp]
call fcn.00416506
mov eax, dword [0x4883e0]
imul eax, eax, 0x61440811
mov dword [0x4883e0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x425a9f
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dx, word [0x4906c6]
movsx edx, dx
add edx, 0xe8578cdc
xor edx, 0x9b1b9158
cmp edx, 0xff5bf7ee
jg 0x425af0
mov edx, dword [0x48b914]
dec edx
mov dword [0x48b914], edx
mov esi, dword [0x48de5c]
mov edi, dword [0x488d04]
imul edi, esi
imul edi, edx
add edi, edi
mov dword [0x488d04], edi
inc dword [0x48b5cc]
and dword [0x48c30c], 0xb03331a
mov edx, dword [0x4880ac]
sar edx, 8
mov esi, dword [0x48b5dc]
and esi, edx
and dword [0x489948], esi
mov edx, dword [0x488cb8]
imul edx, edx, 0x7e31e482
mov dword [0x488cb8], edx
dec dword [0x48c070]
mov word [0x490ff4], 0xffe5
mov esi, eax
shr esi, 8
mov edx, eax
shr edx, 0x10
mov edi, dword [0x48c5b8]
imul edi, edi, 0x772fb12d
or edi, 0x91e1b9e5
and dword [0x48b08c], edi
mov ebx, eax
shr ebx, 0x18
test ecx, 0x3fffffff
je 0x425c1b
mov edi, dword [esp + 0x14]
shl ecx, 2
and dword [0x48d50c], 0x93adc591
shl ebx, 0x18
shl edx, 0x10
and edx, 0xff0000
or edx, ebx
shl esi, 8
movzx ebx, si
or ebx, edx
movzx esi, al
or esi, ebx
xor dword [edi], esi
mov bp, word [0x49174a]
add ebp, 0xffffc6f2
mov word [0x49174a], bp
shld eax, esi, 0x1c
shr ebx, 0xc
shr edx, 0x14
mov esi, dword [0x487e54]
lea ebp, [esi + 1]
mov dword [0x487e54], ebp
mov ebp, dword [0x48bf48]
xor ebp, esi
xor ebp, 0x8a444418
mov dword [0x48bf48], ebp
add edx, ebx
dec dword [0x48906c]
movzx ebx, bl
movzx esi, dl
add esi, ebx
mov bx, word [0x490e02]
mov bx, word [0x48f89e]
inc ebx
mov word [0x48f89e], bx
mov dword [0x4894dc], 0x3f7bb237
add edi, 4
mov ebx, eax
shr ebx, 0x18
add ecx, 0xfffffffc
jne 0x425b72
mov ecx, dword [0x48a2ec]
shl ecx, 6
mov edi, 0xfa4e3c52
sub edi, ecx
and dword [0x488f28], edi
shl ebx, 0x18
shl edx, 0x10
and edx, 0xff0000
shl esi, 8
movzx ecx, si
movzx eax, al
or eax, ebx
or eax, edx
or eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x425cb8
Capabilities:
Terminate process

Disassembly:
add dword [0x48b994], 0xaf9ff9a1
push dword [0x491ac4]
call fcn.004280e1
add esp, 4
mov ax, word [0x48e09e]
cwde
add eax, 0xb643eacf
mov ecx, dword [0x487104]
or ecx, 0x4104fe7d
xor ecx, 0xbefb0182
cmp eax, ecx
jge 0x425d26
mov ax, word [0x48f608]
cwde
shl eax, 5
mov cx, word [0x48f80a]
movsx ecx, cx
shl ecx, 7
mov edx, 0x5e3a44fe
sub edx, ecx
xor edx, eax
cmp edx, 0xffebdfe0
jl 0x425d2f
mov dword [0x48a50c], 0x5ddcefe0
jmp 0x425d2f
mov word [0x48e758], 0xa584
push 1
call fcn.00442691
add esp, 4
int3
Function at 0x42be68
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dx, word [0x490b28]
movsx edx, dx
mov esi, dword [0x4878e0]
xor esi, edx
xor esi, 0x72e3fc4a
mov dword [0x4878e0], esi
mov edx, dword [0x4872d8]
lea esi, [edx - 1]
mov dword [0x4872d8], esi
mov esi, 0x537adc2d
sub esi, edx
xor dword [0x48b2b0], esi
cmp dword [eax], ecx
jae 0x42bec8
mov dword [0x487170], 0x828cd7b0
mov ecx, dword [eax]
xor dword [0x48cbb8], 0x945a04aa
mov dx, word [0x490532]
mov esi, dword [eax]
mov edx, dword [0x48beec]
mov edi, 0x133b3432
sub edi, edx
mov bx, word [0x48e0cc]
and ebx, edi
mov edx, esi
sub edx, ecx
mov word [0x48e0cc], bx
je 0x42bf33
lea edi, [eax + 8]
mov ebx, dword [0x4894ec]
xor ebx, 0xf094
mov bp, word [0x48f6e4]
sub ebp, ebx
mov word [0x48f6e4], bp
mov bl, byte [ecx + edi]
mov byte [edi], bl
mov ebx, dword [0x48a124]
sar ebx, 3
add ebx, 0x83a58ad5
xor dword [0x4882cc], ebx
dec esi
inc edi
cmp ecx, esi
jne 0x42bef7
mov cx, word [0x490076]
inc ecx
mov word [0x490076], cx
or ecx, 0x1945
xor ecx, 0x4418
mov si, word [0x48fdf2]
or esi, ecx
mov word [0x48fdf2], si
mov dword [eax], edx
mov eax, dword [0x487ac4]
mov ecx, dword [0x4893e8]
imul ecx, eax
mov dword [0x4893e8], ecx
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4605c2
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004603b6

Function at 0x462856
Capabilities:
Set environment variable

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

Function at 0x462861
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046226b
Function at 0x415708
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov edi, 0x532250
xor eax, eax
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x5322f0
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x532380
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x532410
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x5324a0
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x532530
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x5325c0
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x532650
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x5326e0
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x532770
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x532800
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x532890
cld
mov ecx, 0x22
rep stosd dword es:[edi], eax
mov edi, 0x533980
cld
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov edi, 0x533d80
cld
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov edi, 0x534180
cld
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov edi, 0x532d80
cld
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov edi, 0x534a80
cld
mov ecx, 0x100
rep stosd dword es:[edi], eax
add esp, 0xfffffff4
mov eax, dword [0x4c700c]
push dword [eax + 4]
call fcn.004155e8
mov eax, dword [0x4c6ca0]
add esp, 0x10
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x415814
mov dword [0x532220], eax
mov eax, dword [0x4c523c]
push dword [0x532220]
push 0x4156f4
push 0
push 0
mov eax, dword [eax + 0x28]
call eax
xor ecx, ecx
mov edx, 0x533580
mov esi, edx
mov ebx, 0x533180
xor eax, eax
lea esi, [esi]
mov dword [esi + eax], ecx
cmp ecx, 0x7f
jle 0x41584e
lea edi, [ecx - 0x7f]
mov dword [edx + eax], edi
mov dword [ebx + eax], 0xffffffff
mov dword [eax + 0x534580], 0x64
add eax, 4
inc ecx
cmp ecx, 0xff
jle 0x415840
mov esi, 0x5324a0
mov ebx, 0x532530
mov edi, 0x532800
mov edx, 0x532890
xor eax, eax
mov ecx, 0x21
mov esi, esi
mov dword [esi + eax], 1
mov dword [ebx + eax], 0xff
mov dword [edi + eax], 0xffffffff
mov dword [edx + eax], 0xffffffff
add eax, 4
dec ecx
jns 0x415888
mov eax, dword [0x4c700c]
movzx ecx, word [eax + 0x1c]
mov word [0x532d30], cx
mov word [0x532d20], 0x1e0
mov edx, 0x1e0
mov eax, edx
xor dx, dx
div cx
mov ecx, eax
movzx eax, cx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
mov dword [0x4c6604], 0
mov dword [0x4c6608], 0x7a120
mov dword [0x4c660c], 0
mov dword [0x4c6610], 0
mov dword [0x4c6614], 0
mov dword [0x4c6618], 0
mov dword [0x4c661c], 0x18
mov dword [0x4c6620], 0x80
mov dword [0x4c662c], 0
mov dword [0x4c6630], 0
mov dword [0x4c6634], 0xffffffff
mov dword [0x4c6638], 0xffffffff
mov dword [0x4c663c], 0
mov ecx, 1
mov dword [0x534e90], 0
mov eax, 0x5a5250
fstp qword [0x532d40]
fld dword [0x415700]
fstp dword [0x4c6624]
fld dword [0x415704]
fstp dword [0x4c6628]
nop
cmp dword [eax + ecx*4], 0
je 0x41599c
mov dword [0x534e90], ecx
inc ecx
cmp ecx, 0xff
jle 0x415990
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x42331c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x53a170], eax
mov dword [0x4c6c70], 1
mov ecx, 0x53a170
mov esi, esi
mov edx, dword [0x4c6c70]
mov eax, dword [ecx + edx*4 - 4]
shr eax, 0x1e
xor eax, dword [ecx + edx*4 - 4]
imul eax, eax, 0x6c078965
add eax, edx
mov dword [ecx + edx*4], eax
lea eax, [edx + 1]
mov dword [0x4c6c70], eax
mov edx, eax
cmp edx, 0x26f
jle 0x423338
leave
ret

Function at 0x423468
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push esi
push ebx
mov eax, dword [0x4c6c70]
cmp eax, 0x26f
jle 0x423563
cmp eax, 0x271
jne 0x423495
add esp, 0xfffffff4
push 0x1571
call fcn.0042331c
xor ebx, ebx
mov esi, 0x53a170
mov edi, 0x4c6c74
xor ecx, ecx
nop
mov edx, dword [esi + ecx]
and edx, 0x80000000
mov eax, dword [esi + ecx + 4]
and eax, 0x7fffffff
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [esi + ecx + 0x634]
and edx, 1
xor eax, dword [edi + edx*4]
mov dword [esi + ecx], eax
add ecx, 4
inc ebx
cmp ebx, 0xe2
jle 0x4234a4
cmp ebx, 0x26e
jg 0x423528
mov esi, 0x53a170
mov edi, 0x4c6c74
lea ecx, [ebx*4]
lea esi, [esi]
mov edx, dword [esi + ecx]
and edx, 0x80000000
mov eax, dword [esi + ecx + 4]
and eax, 0x7fffffff
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [esi + ecx - 0x38c]
and edx, 1
xor eax, dword [edi + edx*4]
mov dword [esi + ecx], eax
add ecx, 4
inc ebx
cmp ebx, 0x26e
jle 0x4234f4
mov edx, dword [0x53ab2c]
and edx, 0x80000000
mov eax, dword [0x53a170]
and eax, 0x7fffffff
or edx, eax
mov eax, edx
shr eax, 1
xor eax, dword [0x53a7a0]
and edx, 1
xor eax, dword [edx*4 + 0x4c6c74]
mov dword [0x53ab2c], eax
mov dword [0x4c6c70], 0
mov eax, dword [0x4c6c70]
shl eax, 2
mov edx, dword [eax + 0x53a170]
inc dword [0x4c6c70]
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor edx, eax
mov eax, edx
shl eax, 0xf
and eax, 0xefc60000
xor edx, eax
mov eax, edx
shr eax, 0x12
xor edx, eax
mov eax, edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x44cc40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push edi
push esi
push ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test ebx, ebx
jne 0x44cc66
mov eax, dword [0x4c700c]
test eax, eax
je 0x44cdcf
mov ebx, dword [eax + 4]
add esp, 0xfffffff4
push edi
call fcn.0048c3cc
mov edi, eax
mov eax, dword [0x4c523c]
push edi
push 0x44cc0a
push 0
push 0
mov eax, dword [eax + 0x28]
call eax
add esp, 0x20
call sub.msvcrt.dll__errno
mov dword [eax], 0
add esp, 0xfffffffc
push 0
push 1
push ebx
call fcn.0044bbe4
mov dword [ebp - 0x204], eax
add esp, 0x10
test eax, eax
jne 0x44ccf4
add esp, 0xfffffff4
mov ebx, dword [0x4c523c]
call sub.msvcrt.dll__errno
cmp dword [eax], 0
je 0x44ccd4
add esp, 0xfffffff4
call sub.msvcrt.dll__errno
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 0x10
jmp 0x44ccd9
mov eax, 0x44cc18
push eax
push edi
push 0x44ae05
push 0
push 2
mov eax, dword [ebx + 0x28]
call eax
mov eax, 0xffffffff
jmp 0x44cdd1
call sub.msvcrt.dll__errno
mov dword [eax], 0
add esp, 0xfffffff8
push 0x44cc28
push edi
call sub.msvcrt.dll_fopen
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x44cd70
add esp, 0xfffffff4
mov ebx, dword [0x4c523c]
call sub.msvcrt.dll__errno
cmp dword [eax], 0
je 0x44cd40
add esp, 0xfffffff4
call sub.msvcrt.dll__errno
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 0x10
jmp 0x44cd45
mov eax, 0x44cc18
push eax
push edi
push 0x44ae05
push 0
push 2
mov eax, dword [ebx + 0x28]
call eax
add esp, 0x20
add esp, 0xfffffff4
mov eax, dword [ebp - 0x204]
push eax
call fcn.0040d268
mov eax, 0xffffffff
jmp 0x44cdd1
lea ebx, [ebp - 0x200]
jmp 0x44cd85
push esi
push eax
push 1
push ebx
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [ebp - 0x204]
push eax
push 0x200
push 1
push ebx
call fcn.0040d2f8
add esp, 0x10
test eax, eax
jg 0x44cd78
mov eax, dword [0x4c523c]
push edi
push 0x44cc2b
push 0
push 0
mov eax, dword [eax + 0x28]
call eax
add esp, 0xfffffff4
push esi
call sub.msvcrt.dll_fclose
add esp, 0x20
add esp, 0xfffffff4
mov eax, dword [ebp - 0x204]
push eax
call fcn.0040d268
xor eax, eax
lea esp, [ebp - 0x228]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x46dc2c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
push esi
push ebx
add esp, 0xfffffff4
push 0x46dba3
call sub.msvcrt.dll_getenv
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46dc84
add esp, 0xfffffff4
push 0x46dba8
call sub.msvcrt.dll_getenv
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x46dc84
add esp, 0xfffffffc
mov eax, dword [0x4c523c]
push 0x46dbc8
push 2
push 0
mov eax, dword [eax + 0x28]
call eax
xor eax, eax
jmp 0x46dd30
add esp, 0xfffffffc
push esi
push 0x46dbf2
lea ebx, [ebp - 0x200]
push ebx
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push 0
push ebx
call sub.msvcrt.dll__open
add esp, 0x20
mov edi, ebx
test eax, eax
jge 0x46dd1c
add esp, 0xfffffffc
push esi
push 0x46dc02
push edi
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push 0
push edi
call sub.msvcrt.dll__open
add esp, 0x20
test eax, eax
jge 0x46dd1c
add esp, 0xfffffffc
push esi
push 0x46dc13
push edi
call sub.msvcrt.dll_sprintf
add esp, 0xfffffff8
push 0
push edi
call sub.msvcrt.dll__open
add esp, 0x20
test eax, eax
jge 0x46dd1c
add esp, 0xfffffff4
mov ebx, dword [0x4c523c]
add esp, 0xfffffff4
call sub.msvcrt.dll__errno
push dword [eax]
call sub.msvcrt.dll_strerror
push eax
push edi
push 0x46dc24
push 2
push 0
mov eax, dword [ebx + 0x28]
call eax
xor eax, eax
jmp 0x46dd30
add esp, 0xfffffff4
push eax
call sub.msvcrt.dll__close
add esp, 0xfffffff8
push 0
push edi
call fcn.0046ab0c
lea esp, [ebp - 0x218]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x472cb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
add esp, 0xfffffff8
push 0x3f2
lea ebx, [ebp - 0x400]
push ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
push 0x472c6a
push ebx
call sub.msvcrt.dll_strcat
add esp, 0xfffffff8
push 0
push ebx
call sub.msvcrt.dll__open
add esp, 0x20
test eax, eax
jl 0x472d12
add esp, 0xfffffff4
push eax
call sub.msvcrt.dll__close
add esp, 0xfffffff8
push 0
push ebx
call fcn.0046ab0c
add esp, 0x20
test eax, eax
je 0x472da0
add esp, 0xfffffffc
push 0x3ff
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
add esp, 4
test eax, eax
je 0x472d7e
mov byte [ebp - 1], 0
add esp, 0xfffffff8
push 0x5c
push ebx
call sub.msvcrt.dll_strrchr
add esp, 0x10
test eax, eax
je 0x472d7e
mov byte [eax + 1], 0
add esp, 0xfffffff8
push 0x472c78
push ebx
call sub.msvcrt.dll_strcat
add esp, 0xfffffff8
push 0
push ebx
call sub.msvcrt.dll__open
add esp, 0x20
test eax, eax
jl 0x472d7e
add esp, 0xfffffff4
push eax
call sub.msvcrt.dll__close
add esp, 0xfffffff8
push 0
push ebx
call fcn.0046ab0c
add esp, 0x20
test eax, eax
je 0x472da0
call fcn.0046dc2c
test eax, eax
je 0x472da0
add esp, 0xfffffffc
mov eax, dword [0x4c523c]
push 0x472c88
push 2
push 0
mov eax, dword [eax + 0x28]
call eax
jmp 0x472daa
mov dword [0x58d570], 1
xor eax, eax
mov ebx, dword [ebp - 0x418]
leave
ret
Function at 0x4761bc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
add esp, 0xfffffff4
push 1
call sub.msvcrt.dll__isatty
add esp, 0x10
test eax, eax
je 0x4761f8
add esp, 0xfffffff4
push 0x472390
call sub.msvcrt.dll_getenv
add esp, 0x10
test eax, eax
je 0x4761f8
add esp, 0xfffffff8
push 0x472396
push eax
call sub.msvcrt.dll__popen
jmp 0x476200
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
leave
ret
Function at 0x47bd60
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
push esi
push ebx
cmp dword [0x4d5500], 0xffffffff
je 0x47be3a
add esp, 0xfffffff4
push 1
call fcn.0047c940
add esp, 0xfffffff8
push 0x47bd3c
lea ebx, [ebp - 0x100]
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x20
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_OutputDebugStringA
push dword [0x5919a0]
call sub.WINMM.DLL_waveOutReset
push dword [0x5919a0]
call sub.WINMM.DLL_waveOutClose
add esp, 0xfffffff4
push 0x47bd4f
lea ebx, [ebp - 0x200]
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x20
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_OutputDebugStringA
xor esi, esi
add esp, 0xc
cmp esi, dword [0x4d5504]
jge 0x47be22
xor edi, edi
mov ebx, edi
add ebx, dword [0x591970]
add esp, 0xfffffff4
push dword [ebx + 0x10]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebx + 0x10]
call sub.KERNEL32.dll_GlobalFree
push dword [ebx + 8]
call sub.KERNEL32.dll_GlobalUnlock
push dword [ebx + 8]
call sub.KERNEL32.dll_GlobalFree
add esp, 0xc
add edi, 0x1c
inc esi
cmp esi, dword [0x4d5504]
jl 0x47bde8
add esp, 0xfffffff4
push dword [0x591970]
call sub.msvcrt.dll_free
mov dword [0x4d5500], 0xffffffff
lea esp, [ebp - 0x218]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x47c638
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push edi
push esi
push ebx
add esp, 0xfffffff8
push 0x47c60a
lea ebx, [ebp - 0x100]
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_OutputDebugStringA
mov edx, dword [0x591970]
mov dword [edx], 0
mov dword [edx + 4], 0
lea eax, [edx + 0x1c]
mov dword [edx + 0x18], eax
mov esi, 1
add esp, 0x1c
mov eax, dword [0x4d5504]
dec eax
lea edi, [ebp - 0x200]
cmp esi, eax
jge 0x47c6bc
lea ebx, [edx + 0x38]
mov ecx, 0x1c
mov esi, esi
mov dword [edx + ecx], esi
mov dword [edx + ecx + 4], 0
mov dword [edx + ecx + 0x18], ebx
add ebx, 0x1c
add ecx, 0x1c
inc esi
mov eax, dword [0x4d5504]
dec eax
cmp esi, eax
jl 0x47c69c
mov eax, dword [0x591970]
lea edx, [esi*8]
sub edx, esi
shl edx, 2
mov dword [eax + edx], esi
mov dword [eax + edx + 4], 0
mov dword [eax + edx + 0x18], 0
mov dword [0x591980], eax
mov dword [0x591990], 0
add esp, 0xfffffffc
mov eax, dword [0x591990]
push eax
push 0x47c624
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xfffffff4
push edi
call sub.KERNEL32.dll_OutputDebugStringA
lea esp, [ebp - 0x218]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x47c744
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push ebx
add esp, 0xfffffffc
mov eax, dword [0x591990]
push eax
push 0x47c717
lea ebx, [ebp - 0x100]
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_OutputDebugStringA
push 0x5f20c0
call sub.KERNEL32.dll_EnterCriticalSection
add esp, 0x1c
mov eax, dword [0x591980]
test eax, eax
je 0x47c7cc
mov esi, eax
mov eax, dword [esi + 0x18]
mov dword [0x591980], eax
mov eax, dword [0x591990]
inc eax
mov dword [0x591990], eax
cmp dword [esi + 4], 0
je 0x47c7c0
add esp, 0xfffffffc
push 0x20
push dword [esi + 0x14]
push dword [0x5919a0]
call sub.WINMM.DLL_waveOutUnprepareHeader
mov dword [esi + 4], 0
add esp, 4
mov dword [esi + 0x18], 0
jmp 0x47c7ce
xor esi, esi
add esp, 0xfffffff4
push 0x5f20c0
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xfffffff8
mov eax, dword [0x591990]
push eax
push 0x47c72f
lea ebx, [ebp - 0x200]
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x20
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_OutputDebugStringA
mov eax, esi
lea esp, [ebp - 0x218]
pop ebx
pop esi
leave
ret

Function at 0x47c838
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push ebx
mov esi, dword [ebp + 8]
add esp, 0xfffffffc
mov eax, dword [0x591990]
push eax
push 0x47c80d
lea ebx, [ebp - 0x100]
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_OutputDebugStringA
mov eax, dword [0x591980]
mov dword [esi + 0x18], eax
mov dword [0x591980], esi
mov eax, dword [0x591990]
dec eax
mov dword [0x591990], eax
add esp, 0xfffffff8
mov eax, dword [0x591990]
push eax
push 0x47c825
lea ebx, [ebp - 0x200]
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x30
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_OutputDebugStringA
lea esp, [ebp - 0x218]
pop ebx
pop esi
leave
ret